PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pic::PoissonDescriptor Class Reference

The PoissonDescriptor class. More...

#include <poisson_descriptor.hpp>

Public Member Functions

 PoissonDescriptor (int kernelSize=16, unsigned int seed=1)
 PoissonDescriptor. More...
 
 ~PoissonDescriptor ()
 
void release ()
 release deallocates memory. More...
 
unsigned int * get (Image *img, int x0, int y0, unsigned int *desc=NULL)
 get computes a descriptor at position (x0,y0) with size n for a given image img. More...
 
int getDescriptorSize ()
 getDescriptorSize returns the descriptor size. More...
 

Protected Member Functions

void generateSamples (unsigned int kernelSize)
 generateSamples More...
 
unsigned int * getAux (Image *img, int x0, int y0, unsigned int *desc=NULL)
 getAux computes a descriptor at position (x0,y0) with size n. More...
 

Protected Attributes

int kernelSize
 
int nSamples
 
unsigned int subBlock
 
std::mt19937 * m
 
RandomSampler< 2 > * rs
 

Detailed Description

The PoissonDescriptor class.

Constructor & Destructor Documentation

◆ PoissonDescriptor()

pic::PoissonDescriptor::PoissonDescriptor ( int  kernelSize = 16,
unsigned int  seed = 1 
)
inline

PoissonDescriptor.

Parameters
kernelSize

◆ ~PoissonDescriptor()

pic::PoissonDescriptor::~PoissonDescriptor ( )
inline

Member Function Documentation

◆ generateSamples()

void pic::PoissonDescriptor::generateSamples ( unsigned int  kernelSize)
inlineprotected

generateSamples

Parameters
kernelSize

◆ get()

unsigned int* pic::PoissonDescriptor::get ( Image img,
int  x0,
int  y0,
unsigned int *  desc = NULL 
)
inline

get computes a descriptor at position (x0,y0) with size n for a given image img.

Parameters
imgis the input image
x0is the x-coordinate where to compute the descriptor
y0is the y-coordinate where to compute the descriptor
descis the output descriptor, if it is NULL, memory will be allocated
Returns
it returns a pointer to the descriptor

◆ getAux()

unsigned int* pic::PoissonDescriptor::getAux ( Image img,
int  x0,
int  y0,
unsigned int *  desc = NULL 
)
inlineprotected

getAux computes a descriptor at position (x0,y0) with size n.

Parameters
img
x0
y0
desc
Returns

◆ getDescriptorSize()

int pic::PoissonDescriptor::getDescriptorSize ( )
inline

getDescriptorSize returns the descriptor size.

Returns
the descriptor size.

◆ release()

void pic::PoissonDescriptor::release ( )
inline

release deallocates memory.

Member Data Documentation

◆ kernelSize

int pic::PoissonDescriptor::kernelSize
protected

◆ m

std::mt19937* pic::PoissonDescriptor::m
protected

◆ nSamples

int pic::PoissonDescriptor::nSamples
protected

◆ rs

RandomSampler<2>* pic::PoissonDescriptor::rs
protected

◆ subBlock

unsigned int pic::PoissonDescriptor::subBlock
protected

The documentation for this class was generated from the following file: