cv::OneWayDescriptorBase Class Reference

#include <features2d.hpp>

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

List of all members.

Public Member Functions

void Allocate (int train_feature_count)
void AllocatePCADescriptors ()
void clear ()
void ConvertDescriptorsArrayToTree ()
void CreateDescriptorsFromImage (IplImage *src, const std::vector< cv::KeyPoint > &features)
void CreatePCADescriptors ()
void FindDescriptor (IplImage *src, cv::Point2f pt, int &desc_idx, int &pose_idx, float &distance) const
void FindDescriptor (IplImage *patch, int n, std::vector< int > &desc_idxs, std::vector< int > &pose_idxs, std::vector< float > &distances, std::vector< float > &_scales, float *scale_ranges=0) const
void FindDescriptor (IplImage *patch, int &desc_idx, int &pose_idx, float &distance, float *_scale=0, float *scale_ranges=0) const
void GeneratePCA (const char *img_path, const char *images_list, int pose_count=500)
const OneWayDescriptorGetDescriptor (int desc_idx) const
int GetDescriptorCount () const
int GetLowPCA (CvMat **avg, CvMat **eigenvectors)
CvSize GetPatchSize () const
int GetPCADimHigh () const
int GetPCADimLow () const
int GetPoseCount () const
int GetPyrLevels () const
void InitializeDescriptor (int desc_idx, IplImage *train_image, const cv::KeyPoint &keypoint, const char *feature_label)
void InitializeDescriptor (int desc_idx, IplImage *train_image, const char *feature_label)
void InitializeDescriptors (IplImage *train_image, const vector< cv::KeyPoint > &features, const char *feature_label="", int desc_start_idx=0)
void InitializePoses ()
void InitializePoseTransforms ()
void InitializeTransformsFromPoses ()
int LoadPCADescriptors (const FileNode &fn)
int LoadPCADescriptors (const char *filename)
 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 (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)
void Read (const FileNode &fn)
void SavePCADescriptors (CvFileStorage *fs) const
void SavePCADescriptors (const char *filename)
void SetPCAHigh (CvMat *avg, CvMat *eigenvectors)
void SetPCALow (CvMat *avg, CvMat *eigenvectors)
void Write (FileStorage &fs) const
virtual ~OneWayDescriptorBase ()

Static Public Member Functions

static string GetPCAFilename ()

Protected Member Functions

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

Protected Attributes

OneWayDescriptorm_descriptors
CvSize m_patch_size
CvMatm_pca_avg
OneWayDescriptorm_pca_descriptors
CvMatm_pca_descriptors_matrix
cv::flann::Index * m_pca_descriptors_tree
int m_pca_dim_high
int m_pca_dim_low
CvMatm_pca_eigenvectors
CvMatm_pca_hr_avg
CvMatm_pca_hr_eigenvectors
int m_pose_count
CvAffinePosem_poses
int m_pyr_levels
int m_train_feature_count
CvMat ** m_transforms
float scale_max
float scale_min
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 std::vector< cv::KeyPoint > &  features 
)
void cv::OneWayDescriptorBase::CreatePCADescriptors (  ) 
void cv::OneWayDescriptorBase::FindDescriptor ( IplImage src,
cv::Point2f  pt,
int &  desc_idx,
int &  pose_idx,
float &  distance 
) const
void cv::OneWayDescriptorBase::FindDescriptor ( IplImage patch,
int  n,
std::vector< int > &  desc_idxs,
std::vector< int > &  pose_idxs,
std::vector< float > &  distances,
std::vector< float > &  _scales,
float *  scale_ranges = 0 
) const
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::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 (  )  [inline, static]
int cv::OneWayDescriptorBase::GetPoseCount (  )  const [inline]
int cv::OneWayDescriptorBase::GetPyrLevels (  )  const [inline]
void cv::OneWayDescriptorBase::InitializeDescriptor ( int  desc_idx,
IplImage train_image,
const cv::KeyPoint keypoint,
const char *  feature_label 
)
void cv::OneWayDescriptorBase::InitializeDescriptor ( int  desc_idx,
IplImage train_image,
const char *  feature_label 
)
void cv::OneWayDescriptorBase::InitializeDescriptors ( IplImage train_image,
const vector< cv::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 FileNode fn  ) 
int cv::OneWayDescriptorBase::LoadPCADescriptors ( const char *  filename  ) 
void cv::OneWayDescriptorBase::Read ( const FileNode fn  ) 
void cv::OneWayDescriptorBase::SavePCAall ( FileStorage fs  )  const [protected]
void cv::OneWayDescriptorBase::SavePCADescriptors ( CvFileStorage fs  )  const
void cv::OneWayDescriptorBase::SavePCADescriptors ( const char *  filename  ) 
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

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Thu Dec 23 11:40:55 2010 for opencv by  doxygen 1.6.3