OpenCV  2.4.13.2
Open Source Computer Vision
cv::OneWayDescriptorObject Class Reference

#include <legacy.hpp>

Inheritance diagram for cv::OneWayDescriptorObject:
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
 
- Public Member Functions inherited from 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)
 
 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 OneWayDescriptorGetDescriptor (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
 

Protected Attributes

intm_part_id
 
vector< KeyPointm_train_features
 
int m_object_feature_count
 
- Protected Attributes inherited from cv::OneWayDescriptorBase
CvSize m_patch_size
 
int m_pose_count
 
int m_train_feature_count
 
OneWayDescriptorm_descriptors
 
CvMatm_pca_avg
 
CvMatm_pca_eigenvectors
 
CvMatm_pca_hr_avg
 
CvMatm_pca_hr_eigenvectors
 
OneWayDescriptorm_pca_descriptors
 
cv::flann::Indexm_pca_descriptors_tree
 
CvMatm_pca_descriptors_matrix
 
CvAffinePosem_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
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::OneWayDescriptorBase
static string GetPCAFilename ()
 
- Protected Member Functions inherited from cv::OneWayDescriptorBase
void SavePCAall (FileStorage &fs) const
 
void LoadPCAall (const FileNode &fn)
 

Constructor & Destructor Documentation

§ OneWayDescriptorObject() [1/2]

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 
)

§ OneWayDescriptorObject() [2/2]

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 
)

§ ~OneWayDescriptorObject()

virtual cv::OneWayDescriptorObject::~OneWayDescriptorObject ( )
virtual

Member Function Documentation

§ _GetLabeledFeatures()

vector<KeyPoint> cv::OneWayDescriptorObject::_GetLabeledFeatures ( ) const

§ Allocate()

void cv::OneWayDescriptorObject::Allocate ( int  train_feature_count,
int  object_feature_count 
)

§ GetDescriptorPart()

int cv::OneWayDescriptorObject::GetDescriptorPart ( int  desc_idx) const

§ GetLabeledFeatures() [1/2]

vector<KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures ( )
inline

§ GetLabeledFeatures() [2/2]

const vector<KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures ( ) const
inline

§ GetObjectFeatureCount()

int cv::OneWayDescriptorObject::GetObjectFeatureCount ( ) const
inline

§ InitializeObjectDescriptors()

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 
)

§ IsDescriptorObject()

int cv::OneWayDescriptorObject::IsDescriptorObject ( int  desc_idx) const

§ MatchPointToPart()

int cv::OneWayDescriptorObject::MatchPointToPart ( CvPoint  pt) const

§ SetLabeledFeatures()

void cv::OneWayDescriptorObject::SetLabeledFeatures ( const vector< KeyPoint > &  features)
inline

Member Data Documentation

§ m_object_feature_count

int cv::OneWayDescriptorObject::m_object_feature_count
protected

§ m_part_id

int* cv::OneWayDescriptorObject::m_part_id
protected

§ m_train_features

vector<KeyPoint> cv::OneWayDescriptorObject::m_train_features
protected

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