#include <one_way_descriptor.h>
Public Member Functions | |
void | Allocate (int pose_count, CvSize size, int nChannels) |
void | Allocate (int pose_count, CvSize size, int nChannels) |
CvOneWayDescriptor () | |
CvOneWayDescriptor () | |
void | EstimatePose (IplImage *patch, int &pose_idx, float &distance) const |
void | EstimatePose (IplImage *patch, int &pose_idx, float &distance) const |
void | EstimatePosePCA (CvArr *patch, int &pose_idx, float &distance, CvMat *avg, CvMat *eigenvalues) const |
void | EstimatePosePCA (CvArr *patch, int &pose_idx, float &distance, CvMat *avg, CvMat *eigenvalues) const |
void | GenerateSamples (int pose_count, IplImage *frontal, int norm=0) |
void | GenerateSamples (int pose_count, IplImage *frontal, int norm=0) |
void | GenerateSamplesFast (IplImage *frontal, CvMat *pca_hr_avg, CvMat *pca_hr_eigenvectors, CvOneWayDescriptor *pca_descriptors) |
void | GenerateSamplesFast (IplImage *frontal, CvMat *pca_hr_avg, CvMat *pca_hr_eigenvectors, CvOneWayDescriptor *pca_descriptors) |
CvPoint | GetCenter () const |
CvPoint | GetCenter () const |
const char * | GetFeatureName () const |
const char * | GetFeatureName () const |
CvSize | GetInputPatchSize () const |
CvSize | GetInputPatchSize () const |
IplImage * | GetPatch (int index) |
IplImage * | GetPatch (int index) |
CvSize | GetPatchSize () const |
CvSize | GetPatchSize () const |
CvMat ** | GetPCACoeffs () const |
CvMat ** | GetPCACoeffs () const |
int | GetPCADimHigh () const |
int | GetPCADimHigh () const |
int | GetPCADimLow () const |
int | GetPCADimLow () const |
CvAffinePose | GetPose (int index) const |
CvAffinePose | GetPose (int index) const |
void | Initialize (int pose_count, IplImage *frontal, const char *feature_name=0, int norm=0) |
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, CvOneWayDescriptor *pca_descriptors) |
void | InitializeFast (int pose_count, IplImage *frontal, const char *feature_name, CvMat *pca_hr_avg, CvMat *pca_hr_eigenvectors, CvOneWayDescriptor *pca_descriptors) |
void | InitializePCACoeffs (CvMat *avg, CvMat *eigenvectors) |
void | InitializePCACoeffs (CvMat *avg, CvMat *eigenvectors) |
void | ProjectPCASample (IplImage *patch, CvMat *avg, CvMat *eigenvectors, CvMat *pca_coeffs) const |
void | ProjectPCASample (IplImage *patch, CvMat *avg, CvMat *eigenvectors, CvMat *pca_coeffs) const |
int | ReadByName (CvFileStorage *fs, CvFileNode *parent, const char *name) |
int | ReadByName (CvFileStorage *fs, CvFileNode *parent, const char *name) |
void | Save (const char *path) |
void | Save (const char *path) |
void | SetPCADimHigh (int pca_dim_high) |
void | SetPCADimHigh (int pca_dim_high) |
void | SetPCADimLow (int pca_dim_low) |
void | SetPCADimLow (int pca_dim_low) |
void | SetTransforms (CvAffinePose *poses, CvMat **transforms) |
void | SetTransforms (CvAffinePose *poses, CvMat **transforms) |
void | Write (CvFileStorage *fs, const char *name) |
void | Write (CvFileStorage *fs, const char *name) |
~CvOneWayDescriptor () | |
~CvOneWayDescriptor () | |
Protected Attributes | |
CvAffinePose * | m_affine_poses |
CvPoint | m_center |
std::string | m_feature_name |
IplImage * | m_input_patch |
CvSize | m_patch_size |
CvMat ** | m_pca_coeffs |
int | m_pca_dim_high |
int | m_pca_dim_low |
int | m_pose_count |
IplImage ** | m_samples |
IplImage * | m_train_patch |
CvMat ** | m_transforms |
Definition at line 127 of file detail/one_way_descriptor.h.
Definition at line 77 of file one_way_descriptor.cpp.
Definition at line 90 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Allocate | ( | int | pose_count, |
CvSize | size, | ||
int | nChannels | ||
) |
Definition at line 111 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Allocate | ( | int | pose_count, |
CvSize | size, | ||
int | nChannels | ||
) |
void CvOneWayDescriptor::EstimatePose | ( | IplImage * | patch, |
int & | pose_idx, | ||
float & | distance | ||
) | const |
Definition at line 483 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::EstimatePose | ( | IplImage * | patch, |
int & | pose_idx, | ||
float & | distance | ||
) | const |
void CvOneWayDescriptor::EstimatePosePCA | ( | CvArr * | patch, |
int & | pose_idx, | ||
float & | distance, | ||
CvMat * | avg, | ||
CvMat * | eigenvalues | ||
) | const |
void CvOneWayDescriptor::EstimatePosePCA | ( | CvArr * | patch, |
int & | pose_idx, | ||
float & | distance, | ||
CvMat * | avg, | ||
CvMat * | eigenvalues | ||
) | const |
Definition at line 396 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::GenerateSamples | ( | int | pose_count, |
IplImage * | frontal, | ||
int | norm = 0 |
||
) |
Definition at line 228 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::GenerateSamples | ( | int | pose_count, |
IplImage * | frontal, | ||
int | norm = 0 |
||
) |
void CvOneWayDescriptor::GenerateSamplesFast | ( | IplImage * | frontal, |
CvMat * | pca_hr_avg, | ||
CvMat * | pca_hr_eigenvectors, | ||
CvOneWayDescriptor * | pca_descriptors | ||
) |
Definition at line 268 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::GenerateSamplesFast | ( | IplImage * | frontal, |
CvMat * | pca_hr_avg, | ||
CvMat * | pca_hr_eigenvectors, | ||
CvOneWayDescriptor * | pca_descriptors | ||
) |
CvPoint CvOneWayDescriptor::GetCenter | ( | ) | const |
Definition at line 1047 of file one_way_descriptor.cpp.
CvPoint CvOneWayDescriptor::GetCenter | ( | ) | const |
const char * CvOneWayDescriptor::GetFeatureName | ( | ) | const |
Definition at line 1042 of file one_way_descriptor.cpp.
const char* CvOneWayDescriptor::GetFeatureName | ( | ) | const |
CvSize CvOneWayDescriptor::GetInputPatchSize | ( | ) | const [inline] |
Definition at line 209 of file one_way_descriptor.h.
CvSize CvOneWayDescriptor::GetInputPatchSize | ( | ) | const [inline] |
Definition at line 209 of file detail/one_way_descriptor.h.
IplImage* CvOneWayDescriptor::GetPatch | ( | int | index | ) |
IplImage * CvOneWayDescriptor::GetPatch | ( | int | index | ) |
Definition at line 603 of file one_way_descriptor.cpp.
CvSize CvOneWayDescriptor::GetPatchSize | ( | ) | const [inline] |
Definition at line 202 of file one_way_descriptor.h.
CvSize CvOneWayDescriptor::GetPatchSize | ( | ) | const [inline] |
Definition at line 202 of file detail/one_way_descriptor.h.
CvMat** CvOneWayDescriptor::GetPCACoeffs | ( | ) | const [inline] |
Definition at line 251 of file one_way_descriptor.h.
CvMat** CvOneWayDescriptor::GetPCACoeffs | ( | ) | const [inline] |
Definition at line 251 of file detail/one_way_descriptor.h.
int CvOneWayDescriptor::GetPCADimHigh | ( | ) | const |
int CvOneWayDescriptor::GetPCADimHigh | ( | ) | const |
Definition at line 1057 of file one_way_descriptor.cpp.
int CvOneWayDescriptor::GetPCADimLow | ( | ) | const |
int CvOneWayDescriptor::GetPCADimLow | ( | ) | const |
Definition at line 1052 of file one_way_descriptor.cpp.
CvAffinePose CvOneWayDescriptor::GetPose | ( | int | index | ) | const |
CvAffinePose CvOneWayDescriptor::GetPose | ( | int | index | ) | const |
Definition at line 608 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Initialize | ( | int | pose_count, |
IplImage * | frontal, | ||
const char * | feature_name = 0 , |
||
int | norm = 0 |
||
) |
Definition at line 345 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Initialize | ( | int | pose_count, |
IplImage * | frontal, | ||
const char * | feature_name = 0 , |
||
int | norm = 0 |
||
) |
void CvOneWayDescriptor::InitializeFast | ( | int | pose_count, |
IplImage * | frontal, | ||
const char * | feature_name, | ||
CvMat * | pca_hr_avg, | ||
CvMat * | pca_hr_eigenvectors, | ||
CvOneWayDescriptor * | pca_descriptors | ||
) |
Definition at line 356 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::InitializeFast | ( | int | pose_count, |
IplImage * | frontal, | ||
const char * | feature_name, | ||
CvMat * | pca_hr_avg, | ||
CvMat * | pca_hr_eigenvectors, | ||
CvOneWayDescriptor * | pca_descriptors | ||
) |
void CvOneWayDescriptor::InitializePCACoeffs | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
void CvOneWayDescriptor::InitializePCACoeffs | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
Definition at line 373 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::ProjectPCASample | ( | IplImage * | patch, |
CvMat * | avg, | ||
CvMat * | eigenvectors, | ||
CvMat * | pca_coeffs | ||
) | const |
void CvOneWayDescriptor::ProjectPCASample | ( | IplImage * | patch, |
CvMat * | avg, | ||
CvMat * | eigenvectors, | ||
CvMat * | pca_coeffs | ||
) | const |
Definition at line 381 of file one_way_descriptor.cpp.
int CvOneWayDescriptor::ReadByName | ( | CvFileStorage * | fs, |
CvFileNode * | parent, | ||
const char * | name | ||
) |
Definition at line 578 of file one_way_descriptor.cpp.
int CvOneWayDescriptor::ReadByName | ( | CvFileStorage * | fs, |
CvFileNode * | parent, | ||
const char * | name | ||
) |
void CvOneWayDescriptor::Save | ( | const char * | path | ) |
Definition at line 538 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Save | ( | const char * | path | ) |
void CvOneWayDescriptor::SetPCADimHigh | ( | int | pca_dim_high | ) | [inline] |
Definition at line 245 of file detail/one_way_descriptor.h.
void CvOneWayDescriptor::SetPCADimHigh | ( | int | pca_dim_high | ) | [inline] |
Definition at line 245 of file one_way_descriptor.h.
void CvOneWayDescriptor::SetPCADimLow | ( | int | pca_dim_low | ) | [inline] |
Definition at line 246 of file one_way_descriptor.h.
void CvOneWayDescriptor::SetPCADimLow | ( | int | pca_dim_low | ) | [inline] |
Definition at line 246 of file detail/one_way_descriptor.h.
void CvOneWayDescriptor::SetTransforms | ( | CvAffinePose * | poses, |
CvMat ** | transforms | ||
) |
void CvOneWayDescriptor::SetTransforms | ( | CvAffinePose * | poses, |
CvMat ** | transforms | ||
) |
Definition at line 334 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Write | ( | CvFileStorage * | fs, |
const char * | name | ||
) |
Definition at line 556 of file one_way_descriptor.cpp.
void CvOneWayDescriptor::Write | ( | CvFileStorage * | fs, |
const char * | name | ||
) |
CvAffinePose * CvOneWayDescriptor::m_affine_poses [protected] |
Definition at line 260 of file detail/one_way_descriptor.h.
CvPoint CvOneWayDescriptor::m_center [protected] |
Definition at line 264 of file detail/one_way_descriptor.h.
std::string CvOneWayDescriptor::m_feature_name [protected] |
Definition at line 263 of file detail/one_way_descriptor.h.
IplImage * CvOneWayDescriptor::m_input_patch [protected] |
Definition at line 257 of file detail/one_way_descriptor.h.
CvSize CvOneWayDescriptor::m_patch_size [protected] |
Definition at line 255 of file detail/one_way_descriptor.h.
CvMat ** CvOneWayDescriptor::m_pca_coeffs [protected] |
Definition at line 259 of file detail/one_way_descriptor.h.
int CvOneWayDescriptor::m_pca_dim_high [protected] |
Definition at line 266 of file detail/one_way_descriptor.h.
int CvOneWayDescriptor::m_pca_dim_low [protected] |
Definition at line 267 of file detail/one_way_descriptor.h.
int CvOneWayDescriptor::m_pose_count [protected] |
Definition at line 254 of file detail/one_way_descriptor.h.
IplImage ** CvOneWayDescriptor::m_samples [protected] |
Definition at line 256 of file detail/one_way_descriptor.h.
IplImage * CvOneWayDescriptor::m_train_patch [protected] |
Definition at line 258 of file detail/one_way_descriptor.h.
CvMat ** CvOneWayDescriptor::m_transforms [protected] |
Definition at line 261 of file detail/one_way_descriptor.h.