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

§ OneWayDescriptorBase() [1/2]

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() [2/2]

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 
)

§ ~OneWayDescriptorBase()

virtual cv::OneWayDescriptorBase::~OneWayDescriptorBase ( )
virtual

Member Function Documentation

§ Allocate()

void cv::OneWayDescriptorBase::Allocate ( int  train_feature_count)

§ AllocatePCADescriptors()

void cv::OneWayDescriptorBase::AllocatePCADescriptors ( )

§ clear()

void cv::OneWayDescriptorBase::clear ( )

§ ConvertDescriptorsArrayToTree()

void cv::OneWayDescriptorBase::ConvertDescriptorsArrayToTree ( )

§ CreateDescriptorsFromImage()

void cv::OneWayDescriptorBase::CreateDescriptorsFromImage ( IplImage src,
const vector< KeyPoint > &  features 
)

§ CreatePCADescriptors()

void cv::OneWayDescriptorBase::CreatePCADescriptors ( )

§ empty()

virtual bool cv::OneWayDescriptorBase::empty ( ) const
inlinevirtual

§ FindDescriptor() [1/3]

void cv::OneWayDescriptorBase::FindDescriptor ( IplImage patch,
int desc_idx,
int pose_idx,
float &  distance,
float *  _scale = 0,
float *  scale_ranges = 0 
) const

§ FindDescriptor() [2/3]

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

§ FindDescriptor() [3/3]

void cv::OneWayDescriptorBase::FindDescriptor ( IplImage src,
cv::Point2f  pt,
int desc_idx,
int pose_idx,
float &  distance 
) const

§ GeneratePCA()

void cv::OneWayDescriptorBase::GeneratePCA ( const char *  img_path,
const char *  images_list,
int  pose_count = 500 
)

§ GetDescriptor()

const OneWayDescriptor* cv::OneWayDescriptorBase::GetDescriptor ( int  desc_idx) const
inline

§ GetDescriptorCount()

int cv::OneWayDescriptorBase::GetDescriptorCount ( ) const
inline

§ GetLowPCA()

int cv::OneWayDescriptorBase::GetLowPCA ( CvMat **  avg,
CvMat **  eigenvectors 
)
inline

§ GetPatchSize()

CvSize cv::OneWayDescriptorBase::GetPatchSize ( ) const
inline

§ GetPCADimHigh()

int cv::OneWayDescriptorBase::GetPCADimHigh ( ) const
inline

§ GetPCADimLow()

int cv::OneWayDescriptorBase::GetPCADimLow ( ) const
inline

§ GetPCAFilename()

static string cv::OneWayDescriptorBase::GetPCAFilename ( )
inlinestatic

§ GetPoseCount()

int cv::OneWayDescriptorBase::GetPoseCount ( ) const
inline

§ GetPyrLevels()

int cv::OneWayDescriptorBase::GetPyrLevels ( ) const
inline

§ InitializeDescriptor() [1/2]

void cv::OneWayDescriptorBase::InitializeDescriptor ( int  desc_idx,
IplImage train_image,
const char *  feature_label 
)

§ InitializeDescriptor() [2/2]

void cv::OneWayDescriptorBase::InitializeDescriptor ( int  desc_idx,
IplImage train_image,
const KeyPoint keypoint,
const char *  feature_label 
)

§ InitializeDescriptors()

void cv::OneWayDescriptorBase::InitializeDescriptors ( IplImage train_image,
const vector< KeyPoint > &  features,
const char *  feature_label = "",
int  desc_start_idx = 0 
)

§ InitializePoses()

void cv::OneWayDescriptorBase::InitializePoses ( )

§ InitializePoseTransforms()

void cv::OneWayDescriptorBase::InitializePoseTransforms ( )

§ InitializeTransformsFromPoses()

void cv::OneWayDescriptorBase::InitializeTransformsFromPoses ( )

§ LoadPCAall()

void cv::OneWayDescriptorBase::LoadPCAall ( const FileNode fn)
protected

§ LoadPCADescriptors() [1/2]

int cv::OneWayDescriptorBase::LoadPCADescriptors ( const char *  filename)

§ LoadPCADescriptors() [2/2]

int cv::OneWayDescriptorBase::LoadPCADescriptors ( const FileNode fn)

§ Read()

void cv::OneWayDescriptorBase::Read ( const FileNode fn)

§ SavePCAall()

void cv::OneWayDescriptorBase::SavePCAall ( FileStorage fs) const
protected

§ SavePCADescriptors() [1/2]

void cv::OneWayDescriptorBase::SavePCADescriptors ( const char *  filename)

§ SavePCADescriptors() [2/2]

void cv::OneWayDescriptorBase::SavePCADescriptors ( CvFileStorage fs) const

§ SetPCAHigh()

void cv::OneWayDescriptorBase::SetPCAHigh ( CvMat avg,
CvMat eigenvectors 
)

§ SetPCALow()

void cv::OneWayDescriptorBase::SetPCALow ( CvMat avg,
CvMat eigenvectors 
)

§ Write()

void cv::OneWayDescriptorBase::Write ( FileStorage fs) const

Member Data Documentation

§ m_descriptors

OneWayDescriptor* cv::OneWayDescriptorBase::m_descriptors
protected

§ m_patch_size

CvSize cv::OneWayDescriptorBase::m_patch_size
protected

§ m_pca_avg

CvMat* cv::OneWayDescriptorBase::m_pca_avg
protected

§ m_pca_descriptors

OneWayDescriptor* cv::OneWayDescriptorBase::m_pca_descriptors
protected

§ m_pca_descriptors_matrix

CvMat* cv::OneWayDescriptorBase::m_pca_descriptors_matrix
protected

§ m_pca_descriptors_tree

cv::flann::Index* cv::OneWayDescriptorBase::m_pca_descriptors_tree
protected

§ m_pca_dim_high

int cv::OneWayDescriptorBase::m_pca_dim_high
protected

§ m_pca_dim_low

int cv::OneWayDescriptorBase::m_pca_dim_low
protected

§ m_pca_eigenvectors

CvMat* cv::OneWayDescriptorBase::m_pca_eigenvectors
protected

§ m_pca_hr_avg

CvMat* cv::OneWayDescriptorBase::m_pca_hr_avg
protected

§ m_pca_hr_eigenvectors

CvMat* cv::OneWayDescriptorBase::m_pca_hr_eigenvectors
protected

§ m_pose_count

int cv::OneWayDescriptorBase::m_pose_count
protected

§ m_poses

CvAffinePose* cv::OneWayDescriptorBase::m_poses
protected

§ m_pyr_levels

int cv::OneWayDescriptorBase::m_pyr_levels
protected

§ m_train_feature_count

int cv::OneWayDescriptorBase::m_train_feature_count
protected

§ m_transforms

CvMat** cv::OneWayDescriptorBase::m_transforms
protected

§ scale_max

float cv::OneWayDescriptorBase::scale_max
protected

§ scale_min

float cv::OneWayDescriptorBase::scale_min
protected

§ scale_step

float cv::OneWayDescriptorBase::scale_step
protected

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