#include <legacy.hpp>
Inherits cv::OneWayDescriptorBase.
Public Member Functions | |
OneWayDescriptorObject (CvSize patch_size, int pose_count, const char *train_path, const char *pca_config, const char *pca_hr_config=0, const char *pca_desc_config=0, int pyr_levels=1) | |
OneWayDescriptorObject (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) | |
virtual | ~OneWayDescriptorObject () |
void | Allocate (int train_feature_count, int object_feature_count) |
void | SetLabeledFeatures (const vector< KeyPoint > &features) |
vector< KeyPoint > & | GetLabeledFeatures () |
const vector< KeyPoint > & | GetLabeledFeatures () const |
vector< KeyPoint > | _GetLabeledFeatures () const |
int | IsDescriptorObject (int desc_idx) const |
int | MatchPointToPart (CvPoint pt) const |
int | GetDescriptorPart (int desc_idx) const |
void | InitializeObjectDescriptors (IplImage *train_image, const vector< KeyPoint > &features, const char *feature_label, int desc_start_idx=0, float scale=1.0f, int is_background=0) |
int | GetObjectFeatureCount () const |
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) |
Protected Attributes | |
int * | m_part_id |
vector< KeyPoint > | m_train_features |
int | m_object_feature_count |
CvSize | m_patch_size |
int | m_pose_count |
int | m_train_feature_count |
OneWayDescriptor * | m_descriptors |
CvMat * | m_pca_avg |
CvMat * | m_pca_eigenvectors |
CvMat * | m_pca_hr_avg |
CvMat * | m_pca_hr_eigenvectors |
OneWayDescriptor * | m_pca_descriptors |
cv::flann::Index * | m_pca_descriptors_tree |
CvMat * | m_pca_descriptors_matrix |
CvAffinePose * | m_poses |
CvMat ** | m_transforms |
int | m_pca_dim_high |
int | m_pca_dim_low |
int | m_pyr_levels |
float | scale_min |
float | scale_max |
float | scale_step |
cv::OneWayDescriptorObject::OneWayDescriptorObject | ( | CvSize | patch_size, |
int | pose_count, | ||
const char * | train_path, | ||
const char * | pca_config, | ||
const char * | pca_hr_config = 0 , |
||
const char * | pca_desc_config = 0 , |
||
int | pyr_levels = 1 |
||
) |
cv::OneWayDescriptorObject::OneWayDescriptorObject | ( | 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 |
||
) |
|
virtual |
vector<KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures | ( | ) |
const vector<KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures | ( | ) | const |
vector<KeyPoint> cv::OneWayDescriptorObject::_GetLabeledFeatures | ( | ) | const |
void cv::OneWayDescriptorObject::InitializeObjectDescriptors | ( | IplImage * | train_image, |
const vector< KeyPoint > & | features, | ||
const char * | feature_label, | ||
int | desc_start_idx = 0 , |
||
float | scale = 1.0f , |
||
int | is_background = 0 |
||
) |
int cv::OneWayDescriptorObject::GetObjectFeatureCount | ( | ) | const |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
|
virtualinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |