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

#include <sift_descriptor.hpp>

Public Member Functions

 SIFTDescriptor (float thr_weak=0.01f, int patchSize=16, int subPatchSize=4, int nBin=8)
 
void update (float thr_weak=0.05f, int patchSize=16, int subPatchSize=4, int nBin=8)
 update More...
 
int getDescriptorSize ()
 getDescriptorSize returns the descriptor size. More...
 
float computePatchOrientation (Image *imgGrad, int x0, int y0)
 computePatchOrientation More...
 
float * get (Image *imgGrad, int x0, int y0, float *desc=NULL)
 get computes a descriptor at position (x0,y0) with size n for a given image gradient imgGrad. More...
 

Static Public Member Functions

static float match (float *fv0, float *fv1, int nfv)
 

Protected Attributes

float thr_weak
 
float sigma
 
float sigma_sq_2
 
float * reference_angles
 
float sector_angle
 
float nBinf
 
float reference_angles_orientation [36]
 
float sector_angle_orientation
 
int patchSize
 
int half_patchSize
 
int subPatchSize
 
int subPatchSize_sq
 
int nBin
 
int tot
 

Constructor & Destructor Documentation

◆ SIFTDescriptor()

pic::SIFTDescriptor::SIFTDescriptor ( float  thr_weak = 0.01f,
int  patchSize = 16,
int  subPatchSize = 4,
int  nBin = 8 
)
inline

Member Function Documentation

◆ computePatchOrientation()

float pic::SIFTDescriptor::computePatchOrientation ( Image imgGrad,
int  x0,
int  y0 
)
inline

computePatchOrientation

Parameters
imgGrad
x0
y0
Returns

◆ get()

float* pic::SIFTDescriptor::get ( Image imgGrad,
int  x0,
int  y0,
float *  desc = NULL 
)
inline

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

Parameters
imgis the gradient of 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

◆ getDescriptorSize()

int pic::SIFTDescriptor::getDescriptorSize ( )
inline

getDescriptorSize returns the descriptor size.

Returns
the descriptor size.

◆ match()

static float pic::SIFTDescriptor::match ( float *  fv0,
float *  fv1,
int  nfv 
)
inlinestatic

◆ update()

void pic::SIFTDescriptor::update ( float  thr_weak = 0.05f,
int  patchSize = 16,
int  subPatchSize = 4,
int  nBin = 8 
)
inline

update

Parameters
thr_weak
patchSize
subPatchSize
nBin

Member Data Documentation

◆ half_patchSize

int pic::SIFTDescriptor::half_patchSize
protected

◆ nBin

int pic::SIFTDescriptor::nBin
protected

◆ nBinf

float pic::SIFTDescriptor::nBinf
protected

◆ patchSize

int pic::SIFTDescriptor::patchSize
protected

◆ reference_angles

float* pic::SIFTDescriptor::reference_angles
protected

◆ reference_angles_orientation

float pic::SIFTDescriptor::reference_angles_orientation[36]
protected

◆ sector_angle

float pic::SIFTDescriptor::sector_angle
protected

◆ sector_angle_orientation

float pic::SIFTDescriptor::sector_angle_orientation
protected

◆ sigma

float pic::SIFTDescriptor::sigma
protected

◆ sigma_sq_2

float pic::SIFTDescriptor::sigma_sq_2
protected

◆ subPatchSize

int pic::SIFTDescriptor::subPatchSize
protected

◆ subPatchSize_sq

int pic::SIFTDescriptor::subPatchSize_sq
protected

◆ thr_weak

float pic::SIFTDescriptor::thr_weak
protected

◆ tot

int pic::SIFTDescriptor::tot
protected

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