#include <cvaux.hpp>
Inherits cv::OneWayDescriptorBase.
Public Member Functions | |
OneWayDescriptorObject (CvSize patch_size, int pose_count, const char *train_path, const char *pca_config, const char *pca_hr_config=0, const char *pca_desc_config=0, int pyr_levels=1) | |
~OneWayDescriptorObject () | |
void | Allocate (int train_feature_count, int object_feature_count) |
void | SetLabeledFeatures (const vector< cv::KeyPoint > &features) |
vector< cv::KeyPoint > & | GetLabeledFeatures () |
const vector< cv::KeyPoint > & | GetLabeledFeatures () const |
vector< cv::KeyPoint > | _GetLabeledFeatures () const |
int | IsDescriptorObject (int desc_idx) const |
int | MatchPointToPart (CvPoint pt) const |
int | GetDescriptorPart (int desc_idx) const |
void | InitializeObjectDescriptors (IplImage *train_image, const vector< cv::KeyPoint > &features, const char *feature_label, int desc_start_idx=0, float scale=1.0f, int is_background=0) |
int | GetObjectFeatureCount () const |
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 std::vector< cv::KeyPoint > &features) |
void | CreatePCADescriptors () |
const OneWayDescriptor * | GetDescriptor (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, 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 *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 cv::KeyPoint &keypoint, const char *feature_label) |
void | InitializeDescriptors (IplImage *train_image, const vector< cv::KeyPoint > &features, const char *feature_label="", int desc_start_idx=0) |
int | LoadPCADescriptors (const char *filename) |
void | SavePCADescriptors (const char *filename) |
void | SetPCAHigh (CvMat *avg, CvMat *eigenvectors) |
void | SetPCALow (CvMat *avg, CvMat *eigenvectors) |
int | GetLowPCA (CvMat **avg, CvMat **eigenvectors) |
void | ConvertDescriptorsArrayToTree () |
Protected Attributes | |
int * | m_part_id |
vector< cv::KeyPoint > | m_train_features |
int | m_object_feature_count |
CvSize | m_patch_size |
int | m_pose_count |
int | m_train_feature_count |
OneWayDescriptor * | m_descriptors |
CvMat * | m_pca_avg |
CvMat * | m_pca_eigenvectors |
CvMat * | m_pca_hr_avg |
CvMat * | m_pca_hr_eigenvectors |
OneWayDescriptor * | m_pca_descriptors |
cv::flann::Index * | m_pca_descriptors_tree |
CvMat * | m_pca_descriptors_matrix |
CvAffinePose * | m_poses |
CvMat ** | m_transforms |
int | m_pca_dim_high |
int | m_pca_dim_low |
int | m_pyr_levels |
cv::OneWayDescriptorObject::OneWayDescriptorObject | ( | CvSize | patch_size, | |
int | pose_count, | |||
const char * | train_path, | |||
const char * | pca_config, | |||
const char * | pca_hr_config = 0 , |
|||
const char * | pca_desc_config = 0 , |
|||
int | pyr_levels = 1 | |||
) |
cv::OneWayDescriptorObject::~OneWayDescriptorObject | ( | ) |
void cv::OneWayDescriptorObject::Allocate | ( | int | train_feature_count, | |
int | object_feature_count | |||
) |
void cv::OneWayDescriptorObject::SetLabeledFeatures | ( | const vector< cv::KeyPoint > & | features | ) |
vector<cv::KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures | ( | ) |
const vector<cv::KeyPoint>& cv::OneWayDescriptorObject::GetLabeledFeatures | ( | ) | const |
vector<cv::KeyPoint> cv::OneWayDescriptorObject::_GetLabeledFeatures | ( | ) | const |
int cv::OneWayDescriptorObject::IsDescriptorObject | ( | int | desc_idx | ) | const |
int cv::OneWayDescriptorObject::MatchPointToPart | ( | CvPoint | pt | ) | const |
int cv::OneWayDescriptorObject::GetDescriptorPart | ( | int | desc_idx | ) | const |
void cv::OneWayDescriptorObject::InitializeObjectDescriptors | ( | IplImage * | train_image, | |
const vector< cv::KeyPoint > & | features, | |||
const char * | feature_label, | |||
int | desc_start_idx = 0 , |
|||
float | scale = 1.0f , |
|||
int | is_background = 0 | |||
) |
int cv::OneWayDescriptorObject::GetObjectFeatureCount | ( | ) | const |
void cv::OneWayDescriptorBase::Allocate | ( | int | train_feature_count | ) | [inherited] |
void cv::OneWayDescriptorBase::AllocatePCADescriptors | ( | ) | [inherited] |
CvSize cv::OneWayDescriptorBase::GetPatchSize | ( | ) | const [inherited] |
int cv::OneWayDescriptorBase::GetPoseCount | ( | ) | const [inherited] |
int cv::OneWayDescriptorBase::GetPyrLevels | ( | ) | const [inherited] |
int cv::OneWayDescriptorBase::GetDescriptorCount | ( | ) | const [inherited] |
void cv::OneWayDescriptorBase::CreateDescriptorsFromImage | ( | IplImage * | src, | |
const std::vector< cv::KeyPoint > & | features | |||
) | [inherited] |
void cv::OneWayDescriptorBase::CreatePCADescriptors | ( | ) | [inherited] |
const OneWayDescriptor* cv::OneWayDescriptorBase::GetDescriptor | ( | int | desc_idx | ) | const [inherited] |
void cv::OneWayDescriptorBase::FindDescriptor | ( | IplImage * | patch, | |
int & | desc_idx, | |||
int & | pose_idx, | |||
float & | distance, | |||
float * | _scale = 0 , |
|||
float * | scale_ranges = 0 | |||
) | const [inherited] |
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 [inherited] |
void cv::OneWayDescriptorBase::FindDescriptor | ( | IplImage * | src, | |
cv::Point2f | pt, | |||
int & | desc_idx, | |||
int & | pose_idx, | |||
float & | distance | |||
) | const [inherited] |
void cv::OneWayDescriptorBase::InitializePoses | ( | ) | [inherited] |
void cv::OneWayDescriptorBase::InitializeTransformsFromPoses | ( | ) | [inherited] |
void cv::OneWayDescriptorBase::InitializePoseTransforms | ( | ) | [inherited] |
void cv::OneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, | |
IplImage * | train_image, | |||
const char * | feature_label | |||
) | [inherited] |
void cv::OneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, | |
IplImage * | train_image, | |||
const cv::KeyPoint & | keypoint, | |||
const char * | feature_label | |||
) | [inherited] |
void cv::OneWayDescriptorBase::InitializeDescriptors | ( | IplImage * | train_image, | |
const vector< cv::KeyPoint > & | features, | |||
const char * | feature_label = "" , |
|||
int | desc_start_idx = 0 | |||
) | [inherited] |
int cv::OneWayDescriptorBase::LoadPCADescriptors | ( | const char * | filename | ) | [inherited] |
void cv::OneWayDescriptorBase::SavePCADescriptors | ( | const char * | filename | ) | [inherited] |
void cv::OneWayDescriptorBase::ConvertDescriptorsArrayToTree | ( | ) | [inherited] |
int* cv::OneWayDescriptorObject::m_part_id [protected] |
vector<cv::KeyPoint> cv::OneWayDescriptorObject::m_train_features [protected] |
int cv::OneWayDescriptorObject::m_object_feature_count [protected] |
CvSize cv::OneWayDescriptorBase::m_patch_size [protected, inherited] |
int cv::OneWayDescriptorBase::m_pose_count [protected, inherited] |
int cv::OneWayDescriptorBase::m_train_feature_count [protected, inherited] |
OneWayDescriptor* cv::OneWayDescriptorBase::m_descriptors [protected, inherited] |
CvMat* cv::OneWayDescriptorBase::m_pca_avg [protected, inherited] |
CvMat* cv::OneWayDescriptorBase::m_pca_eigenvectors [protected, inherited] |
CvMat* cv::OneWayDescriptorBase::m_pca_hr_avg [protected, inherited] |
CvMat* cv::OneWayDescriptorBase::m_pca_hr_eigenvectors [protected, inherited] |
OneWayDescriptor* cv::OneWayDescriptorBase::m_pca_descriptors [protected, inherited] |
cv::flann::Index* cv::OneWayDescriptorBase::m_pca_descriptors_tree [protected, inherited] |
CvMat* cv::OneWayDescriptorBase::m_pca_descriptors_matrix [protected, inherited] |
CvAffinePose* cv::OneWayDescriptorBase::m_poses [protected, inherited] |
CvMat** cv::OneWayDescriptorBase::m_transforms [protected, inherited] |
int cv::OneWayDescriptorBase::m_pca_dim_high [protected, inherited] |
int cv::OneWayDescriptorBase::m_pca_dim_low [protected, inherited] |
int cv::OneWayDescriptorBase::m_pyr_levels [protected, inherited] |