#include <legacy.hpp>
Public Member Functions | |
OneWayDescriptorBase (CvSize patch_size, int pose_count, const char *train_path=0, const char *pca_config=0, const char *pca_hr_config=0, const char *pca_desc_config=0, int pyr_levels=1, int pca_dim_high=100, int pca_dim_low=100) | |
OneWayDescriptorBase (CvSize patch_size, int pose_count, const string &pca_filename, const string &train_path=string(), const string &images_list=string(), float _scale_min=0.7f, float _scale_max=1.5f, float _scale_step=1.2f, int pyr_levels=1, int pca_dim_high=100, int pca_dim_low=100) | |
virtual | ~OneWayDescriptorBase () |
void | clear () |
void | Allocate (int train_feature_count) |
void | AllocatePCADescriptors () |
CvSize | GetPatchSize () const |
int | GetPoseCount () const |
int | GetPyrLevels () const |
int | GetDescriptorCount () const |
void | CreateDescriptorsFromImage (IplImage *src, const vector< KeyPoint > &features) |
void | CreatePCADescriptors () |
const OneWayDescriptor * | GetDescriptor (int desc_idx) const |
void | FindDescriptor (IplImage *patch, int &desc_idx, int &pose_idx, float &distance, float *_scale=0, float *scale_ranges=0) const |
void | FindDescriptor (IplImage *patch, int n, vector< int > &desc_idxs, vector< int > &pose_idxs, vector< float > &distances, vector< float > &_scales, float *scale_ranges=0) const |
void | FindDescriptor (IplImage *src, cv::Point2f pt, int &desc_idx, int &pose_idx, float &distance) const |
void | InitializePoses () |
void | InitializeTransformsFromPoses () |
void | InitializePoseTransforms () |
void | InitializeDescriptor (int desc_idx, IplImage *train_image, const char *feature_label) |
void | InitializeDescriptor (int desc_idx, IplImage *train_image, const KeyPoint &keypoint, const char *feature_label) |
void | InitializeDescriptors (IplImage *train_image, const vector< KeyPoint > &features, const char *feature_label="", int desc_start_idx=0) |
void | Write (FileStorage &fs) const |
void | Read (const FileNode &fn) |
int | LoadPCADescriptors (const char *filename) |
int | LoadPCADescriptors (const FileNode &fn) |
void | SavePCADescriptors (const char *filename) |
void | SavePCADescriptors (CvFileStorage *fs) const |
void | GeneratePCA (const char *img_path, const char *images_list, int pose_count=500) |
void | SetPCAHigh (CvMat *avg, CvMat *eigenvectors) |
void | SetPCALow (CvMat *avg, CvMat *eigenvectors) |
int | GetLowPCA (CvMat **avg, CvMat **eigenvectors) |
int | GetPCADimLow () const |
int | GetPCADimHigh () const |
void | ConvertDescriptorsArrayToTree () |
virtual bool | empty () const |
Static Public Member Functions | |
static string | GetPCAFilename () |
Protected Member Functions | |
void | SavePCAall (FileStorage &fs) const |
void | LoadPCAall (const FileNode &fn) |
cv::OneWayDescriptorBase::OneWayDescriptorBase | ( | CvSize | patch_size, |
int | pose_count, | ||
const char * | train_path = 0 , |
||
const char * | pca_config = 0 , |
||
const char * | pca_hr_config = 0 , |
||
const char * | pca_desc_config = 0 , |
||
int | pyr_levels = 1 , |
||
int | pca_dim_high = 100 , |
||
int | pca_dim_low = 100 |
||
) |
cv::OneWayDescriptorBase::OneWayDescriptorBase | ( | CvSize | patch_size, |
int | pose_count, | ||
const string & | pca_filename, | ||
const string & | train_path = string() , |
||
const string & | images_list = string() , |
||
float | _scale_min = 0.7f , |
||
float | _scale_max = 1.5f , |
||
float | _scale_step = 1.2f , |
||
int | pyr_levels = 1 , |
||
int | pca_dim_high = 100 , |
||
int | pca_dim_low = 100 |
||
) |
|
virtual |
void cv::OneWayDescriptorBase::AllocatePCADescriptors | ( | ) |
void cv::OneWayDescriptorBase::clear | ( | ) |
void cv::OneWayDescriptorBase::ConvertDescriptorsArrayToTree | ( | ) |
void cv::OneWayDescriptorBase::CreateDescriptorsFromImage | ( | IplImage * | src, |
const vector< KeyPoint > & | features | ||
) |
void cv::OneWayDescriptorBase::CreatePCADescriptors | ( | ) |
|
inlinevirtual |
void cv::OneWayDescriptorBase::FindDescriptor | ( | IplImage * | patch, |
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance, | ||
float * | _scale = 0 , |
||
float * | scale_ranges = 0 |
||
) | const |
void cv::OneWayDescriptorBase::FindDescriptor | ( | IplImage * | patch, |
int | n, | ||
vector< int > & | desc_idxs, | ||
vector< int > & | pose_idxs, | ||
vector< float > & | distances, | ||
vector< float > & | _scales, | ||
float * | scale_ranges = 0 |
||
) | const |
void cv::OneWayDescriptorBase::FindDescriptor | ( | IplImage * | src, |
cv::Point2f | pt, | ||
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance | ||
) | const |
void cv::OneWayDescriptorBase::GeneratePCA | ( | const char * | img_path, |
const char * | images_list, | ||
int | pose_count = 500 |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
void cv::OneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, |
IplImage * | train_image, | ||
const char * | feature_label | ||
) |
void cv::OneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, |
IplImage * | train_image, | ||
const KeyPoint & | keypoint, | ||
const char * | feature_label | ||
) |
void cv::OneWayDescriptorBase::InitializeDescriptors | ( | IplImage * | train_image, |
const vector< KeyPoint > & | features, | ||
const char * | feature_label = "" , |
||
int | desc_start_idx = 0 |
||
) |
void cv::OneWayDescriptorBase::InitializePoses | ( | ) |
void cv::OneWayDescriptorBase::InitializePoseTransforms | ( | ) |
void cv::OneWayDescriptorBase::InitializeTransformsFromPoses | ( | ) |
int cv::OneWayDescriptorBase::LoadPCADescriptors | ( | const char * | filename | ) |
|
protected |
void cv::OneWayDescriptorBase::SavePCADescriptors | ( | const char * | filename | ) |
void cv::OneWayDescriptorBase::SavePCADescriptors | ( | CvFileStorage * | fs | ) | const |
void cv::OneWayDescriptorBase::Write | ( | FileStorage & | fs | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |