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

#include <legacy.hpp>

Public Member Functions

 OneWayDescriptor ()
 
 ~OneWayDescriptor ()
 
void Allocate (int pose_count, CvSize size, int nChannels)
 
void GenerateSamples (int pose_count, IplImage *frontal, int norm=0)
 
void GenerateSamplesFast (IplImage *frontal, CvMat *pca_hr_avg, CvMat *pca_hr_eigenvectors, OneWayDescriptor *pca_descriptors)
 
void SetTransforms (CvAffinePose *poses, CvMat **transforms)
 
void Initialize (int pose_count, IplImage *frontal, const char *feature_name=0, int norm=0)
 
void InitializeFast (int pose_count, IplImage *frontal, const char *feature_name, CvMat *pca_hr_avg, CvMat *pca_hr_eigenvectors, OneWayDescriptor *pca_descriptors)
 
void ProjectPCASample (IplImage *patch, CvMat *avg, CvMat *eigenvectors, CvMat *pca_coeffs) const
 
void InitializePCACoeffs (CvMat *avg, CvMat *eigenvectors)
 
void EstimatePose (IplImage *patch, int &pose_idx, float &distance) const
 
void EstimatePosePCA (CvArr *patch, int &pose_idx, float &distance, CvMat *avg, CvMat *eigenvalues) const
 
CvSize GetPatchSize () const
 
CvSize GetInputPatchSize () const
 
IplImageGetPatch (int index)
 
CvAffinePose GetPose (int index) const
 
void Save (const char *path)
 
int ReadByName (CvFileStorage *fs, CvFileNode *parent, const char *name)
 
int ReadByName (const FileNode &parent, const char *name)
 
void Write (CvFileStorage *fs, const char *name)
 
const char * GetFeatureName () const
 
CvPoint GetCenter () const
 
void SetPCADimHigh (int pca_dim_high)
 
void SetPCADimLow (int pca_dim_low)
 
int GetPCADimLow () const
 
int GetPCADimHigh () const
 
CvMat ** GetPCACoeffs () const
 

Protected Attributes

int m_pose_count
 
CvSize m_patch_size
 
IplImage ** m_samples
 
IplImagem_input_patch
 
IplImagem_train_patch
 
CvMat ** m_pca_coeffs
 
CvAffinePosem_affine_poses
 
CvMat ** m_transforms
 
string m_feature_name
 
CvPoint m_center
 
int m_pca_dim_high
 
int m_pca_dim_low
 

Constructor & Destructor Documentation

§ OneWayDescriptor()

cv::OneWayDescriptor::OneWayDescriptor ( )

§ ~OneWayDescriptor()

cv::OneWayDescriptor::~OneWayDescriptor ( )

Member Function Documentation

§ Allocate()

void cv::OneWayDescriptor::Allocate ( int  pose_count,
CvSize  size,
int  nChannels 
)

§ EstimatePose()

void cv::OneWayDescriptor::EstimatePose ( IplImage patch,
int pose_idx,
float &  distance 
) const

§ EstimatePosePCA()

void cv::OneWayDescriptor::EstimatePosePCA ( CvArr patch,
int pose_idx,
float &  distance,
CvMat avg,
CvMat eigenvalues 
) const

§ GenerateSamples()

void cv::OneWayDescriptor::GenerateSamples ( int  pose_count,
IplImage frontal,
int  norm = 0 
)

§ GenerateSamplesFast()

void cv::OneWayDescriptor::GenerateSamplesFast ( IplImage frontal,
CvMat pca_hr_avg,
CvMat pca_hr_eigenvectors,
OneWayDescriptor pca_descriptors 
)

§ GetCenter()

CvPoint cv::OneWayDescriptor::GetCenter ( ) const

§ GetFeatureName()

const char* cv::OneWayDescriptor::GetFeatureName ( ) const

§ GetInputPatchSize()

CvSize cv::OneWayDescriptor::GetInputPatchSize ( ) const
inline

§ GetPatch()

IplImage* cv::OneWayDescriptor::GetPatch ( int  index)

§ GetPatchSize()

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

§ GetPCACoeffs()

CvMat** cv::OneWayDescriptor::GetPCACoeffs ( ) const
inline

§ GetPCADimHigh()

int cv::OneWayDescriptor::GetPCADimHigh ( ) const

§ GetPCADimLow()

int cv::OneWayDescriptor::GetPCADimLow ( ) const

§ GetPose()

CvAffinePose cv::OneWayDescriptor::GetPose ( int  index) const

§ Initialize()

void cv::OneWayDescriptor::Initialize ( int  pose_count,
IplImage frontal,
const char *  feature_name = 0,
int  norm = 0 
)

§ InitializeFast()

void cv::OneWayDescriptor::InitializeFast ( int  pose_count,
IplImage frontal,
const char *  feature_name,
CvMat pca_hr_avg,
CvMat pca_hr_eigenvectors,
OneWayDescriptor pca_descriptors 
)

§ InitializePCACoeffs()

void cv::OneWayDescriptor::InitializePCACoeffs ( CvMat avg,
CvMat eigenvectors 
)

§ ProjectPCASample()

void cv::OneWayDescriptor::ProjectPCASample ( IplImage patch,
CvMat avg,
CvMat eigenvectors,
CvMat pca_coeffs 
) const

§ ReadByName() [1/2]

int cv::OneWayDescriptor::ReadByName ( CvFileStorage fs,
CvFileNode parent,
const char *  name 
)

§ ReadByName() [2/2]

int cv::OneWayDescriptor::ReadByName ( const FileNode parent,
const char *  name 
)

§ Save()

void cv::OneWayDescriptor::Save ( const char *  path)

§ SetPCADimHigh()

void cv::OneWayDescriptor::SetPCADimHigh ( int  pca_dim_high)
inline

§ SetPCADimLow()

void cv::OneWayDescriptor::SetPCADimLow ( int  pca_dim_low)
inline

§ SetTransforms()

void cv::OneWayDescriptor::SetTransforms ( CvAffinePose poses,
CvMat **  transforms 
)

§ Write()

void cv::OneWayDescriptor::Write ( CvFileStorage fs,
const char *  name 
)

Member Data Documentation

§ m_affine_poses

CvAffinePose* cv::OneWayDescriptor::m_affine_poses
protected

§ m_center

CvPoint cv::OneWayDescriptor::m_center
protected

§ m_feature_name

string cv::OneWayDescriptor::m_feature_name
protected

§ m_input_patch

IplImage* cv::OneWayDescriptor::m_input_patch
protected

§ m_patch_size

CvSize cv::OneWayDescriptor::m_patch_size
protected

§ m_pca_coeffs

CvMat** cv::OneWayDescriptor::m_pca_coeffs
protected

§ m_pca_dim_high

int cv::OneWayDescriptor::m_pca_dim_high
protected

§ m_pca_dim_low

int cv::OneWayDescriptor::m_pca_dim_low
protected

§ m_pose_count

int cv::OneWayDescriptor::m_pose_count
protected

§ m_samples

IplImage** cv::OneWayDescriptor::m_samples
protected

§ m_train_patch

IplImage* cv::OneWayDescriptor::m_train_patch
protected

§ m_transforms

CvMat** cv::OneWayDescriptor::m_transforms
protected

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