OpenCV  2.4.13
Open Source Computer Vision
cv::OneWayDescriptorBase Class Reference

#include <legacy.hpp>

Inheritance diagram for cv::OneWayDescriptorBase:
cv::OneWayDescriptorObject

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 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
 

Static Public Member Functions

static string GetPCAFilename ()
 

Protected Member Functions

void SavePCAall (FileStorage &fs) const
 
void LoadPCAall (const FileNode &fn)
 

Protected Attributes

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
 

Constructor & Destructor Documentation

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 cv::OneWayDescriptorBase::~OneWayDescriptorBase ( )
virtual

Member Function Documentation

void cv::OneWayDescriptorBase::Allocate ( int  train_feature_count)
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 ( )
virtual bool cv::OneWayDescriptorBase::empty ( ) const
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 
)
const OneWayDescriptor* cv::OneWayDescriptorBase::GetDescriptor ( int  desc_idx) const
inline
int cv::OneWayDescriptorBase::GetDescriptorCount ( ) const
inline
int cv::OneWayDescriptorBase::GetLowPCA ( CvMat **  avg,
CvMat **  eigenvectors 
)
inline
CvSize cv::OneWayDescriptorBase::GetPatchSize ( ) const
inline
int cv::OneWayDescriptorBase::GetPCADimHigh ( ) const
inline
int cv::OneWayDescriptorBase::GetPCADimLow ( ) const
inline
static string cv::OneWayDescriptorBase::GetPCAFilename ( )
inlinestatic
int cv::OneWayDescriptorBase::GetPoseCount ( ) const
inline
int cv::OneWayDescriptorBase::GetPyrLevels ( ) const
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 ( )
void cv::OneWayDescriptorBase::LoadPCAall ( const FileNode fn)
protected
int cv::OneWayDescriptorBase::LoadPCADescriptors ( const char *  filename)
int cv::OneWayDescriptorBase::LoadPCADescriptors ( const FileNode fn)
void cv::OneWayDescriptorBase::Read ( const FileNode fn)
void cv::OneWayDescriptorBase::SavePCAall ( FileStorage fs) const
protected
void cv::OneWayDescriptorBase::SavePCADescriptors ( const char *  filename)
void cv::OneWayDescriptorBase::SavePCADescriptors ( CvFileStorage fs) const
void cv::OneWayDescriptorBase::SetPCAHigh ( CvMat avg,
CvMat eigenvectors 
)
void cv::OneWayDescriptorBase::SetPCALow ( CvMat avg,
CvMat eigenvectors 
)
void cv::OneWayDescriptorBase::Write ( FileStorage fs) const

Member Data Documentation

OneWayDescriptor* cv::OneWayDescriptorBase::m_descriptors
protected
CvSize cv::OneWayDescriptorBase::m_patch_size
protected
CvMat* cv::OneWayDescriptorBase::m_pca_avg
protected
OneWayDescriptor* cv::OneWayDescriptorBase::m_pca_descriptors
protected
CvMat* cv::OneWayDescriptorBase::m_pca_descriptors_matrix
protected
cv::flann::Index* cv::OneWayDescriptorBase::m_pca_descriptors_tree
protected
int cv::OneWayDescriptorBase::m_pca_dim_high
protected
int cv::OneWayDescriptorBase::m_pca_dim_low
protected
CvMat* cv::OneWayDescriptorBase::m_pca_eigenvectors
protected
CvMat* cv::OneWayDescriptorBase::m_pca_hr_avg
protected
CvMat* cv::OneWayDescriptorBase::m_pca_hr_eigenvectors
protected
int cv::OneWayDescriptorBase::m_pose_count
protected
CvAffinePose* cv::OneWayDescriptorBase::m_poses
protected
int cv::OneWayDescriptorBase::m_pyr_levels
protected
int cv::OneWayDescriptorBase::m_train_feature_count
protected
CvMat** cv::OneWayDescriptorBase::m_transforms
protected
float cv::OneWayDescriptorBase::scale_max
protected
float cv::OneWayDescriptorBase::scale_min
protected
float cv::OneWayDescriptorBase::scale_step
protected

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