Pyramid Kernel over Chi2 matched histograms.
Definition at line 25 of file PyramidChi2.h.
Public Member Functions | |
CPyramidChi2 (int32_t size, float64_t width2, int32_t *pyramidlevels2, int32_t numlevels2, int32_t numbinsinhistogram2, float64_t *weights2, int32_t numweights2) | |
CPyramidChi2 (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t size, float64_t width2, int32_t *pyramidlevels2, int32_t numlevels2, int32_t numbinsinhistogram2, float64_t *weights2, int32_t numweights2) | |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual | ~CPyramidChi2 () |
virtual void | cleanup () |
virtual bool | load_init (FILE *src) |
virtual bool | save_init (FILE *dest) |
virtual EKernelType | get_kernel_type () |
virtual const char * | get_name () const |
void | setstandardweights () |
bool | sanitycheck_weak () |
Protected Member Functions | |
virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
float64_t | width |
int32_t * | pyramidlevels |
int32_t | numlevels |
int32_t | numbinsinhistogram |
float64_t * | weights |
int32_t | numweights |
CPyramidChi2::CPyramidChi2 | ( | int32_t | size, | |
float64_t | width2, | |||
int32_t * | pyramidlevels2, | |||
int32_t | numlevels2, | |||
int32_t | numbinsinhistogram2, | |||
float64_t * | weights2, | |||
int32_t | numweights2 | |||
) |
constructor
size | size | |
width2 | width2 | |
pyramidlevels2 | pyramidlevels2 | |
numlevels2 | numlevels2 | |
numbinsinhistogram2 | numbinsinhistogram2 | |
weights2 | weights2 | |
numweights2 | numweights2 |
Definition at line 18 of file PyramidChi2.cpp.
CPyramidChi2::CPyramidChi2 | ( | CSimpleFeatures< float64_t > * | l, | |
CSimpleFeatures< float64_t > * | r, | |||
int32_t | size, | |||
float64_t | width2, | |||
int32_t * | pyramidlevels2, | |||
int32_t | numlevels2, | |||
int32_t | numbinsinhistogram2, | |||
float64_t * | weights2, | |||
int32_t | numweights2 | |||
) |
constructor
l | features lhs | |
r | features rhs | |
size | size | |
width2 | width2 | |
pyramidlevels2 | pyramidlevels2 | |
numlevels2 | numlevels2 | |
numbinsinhistogram2 | numbinsinhistogram2 | |
weights2 | weights2 | |
numweights2 | numweights2 |
Definition at line 62 of file PyramidChi2.cpp.
CPyramidChi2::~CPyramidChi2 | ( | ) | [virtual] |
Definition at line 85 of file PyramidChi2.cpp.
void CPyramidChi2::cleanup | ( | ) | [virtual] |
float64_t CPyramidChi2::compute | ( | int32_t | idx_a, | |
int32_t | idx_b | |||
) | [protected, virtual] |
compute kernel function for features a and b
idx_a | index of feature vector a | |
idx_b | index of feature vector b |
Implements CKernel.
Definition at line 155 of file PyramidChi2.cpp.
virtual EKernelType CPyramidChi2::get_kernel_type | ( | ) | [virtual] |
return what type of kernel we are Linear,Polynomial, Gaussian,...
Implements CKernel.
Definition at line 89 of file PyramidChi2.h.
virtual const char* CPyramidChi2::get_name | ( | ) | const [virtual] |
init
l | features lhs | |
r | reatures rhs |
Reimplemented from CSimpleKernel< float64_t >.
Definition at line 56 of file PyramidChi2.cpp.
bool CPyramidChi2::load_init | ( | FILE * | src | ) | [virtual] |
load kernel init_data
abstract base method
src | file to load from |
Implements CKernel.
Definition at line 90 of file PyramidChi2.cpp.
bool CPyramidChi2::sanitycheck_weak | ( | ) |
performs a weak check, does not test for correct feature length
Definition at line 101 of file PyramidChi2.cpp.
bool CPyramidChi2::save_init | ( | FILE * | dest | ) | [virtual] |
save kernel init_data
dest | destination file to save to |
Implements CKernel.
Definition at line 95 of file PyramidChi2.cpp.
void CPyramidChi2::setstandardweights | ( | ) |
sets standard weights
Definition at line 215 of file PyramidChi2.cpp.
int32_t CPyramidChi2::numbinsinhistogram [protected] |
numbinsinhistogram
Definition at line 122 of file PyramidChi2.h.
int32_t CPyramidChi2::numlevels [protected] |
length of vector pyramidlevels
Definition at line 120 of file PyramidChi2.h.
int32_t CPyramidChi2::numweights [protected] |
length of vector weights
Definition at line 127 of file PyramidChi2.h.
int32_t* CPyramidChi2::pyramidlevels [protected] |
pyramidlevels
Definition at line 117 of file PyramidChi2.h.
float64_t* CPyramidChi2::weights [protected] |
weights
Definition at line 124 of file PyramidChi2.h.
float64_t CPyramidChi2::width [protected] |
width
Definition at line 115 of file PyramidChi2.h.