#include <one_way_descriptor_base.h>
Public Member Functions | |
void | Allocate (int train_feature_count) |
void | Allocate (int train_feature_count) |
void | AllocatePCADescriptors () |
void | AllocatePCADescriptors () |
void | CreateDescriptorsFromImage (IplImage *src, const std::vector< KeyPointEx > &features) |
void | CreateDescriptorsFromImage (IplImage *src, const std::vector< KeyPointEx > &features) |
void | CreatePCADescriptors () |
void | CreatePCADescriptors () |
CvOneWayDescriptorBase (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) | |
CvOneWayDescriptorBase (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 | FindDescriptor (IplImage *patch, int &desc_idx, int &pose_idx, float &distance, float *_scale=0, 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 | 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 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 | FindDescriptor (IplImage *src, cv::Point2f pt, int &desc_idx, int &pose_idx, float &distance) const |
const CvOneWayDescriptor * | GetDescriptor (int desc_idx) const |
const CvOneWayDescriptor * | GetDescriptor (int desc_idx) const |
int | GetDescriptorCount () const |
int | GetDescriptorCount () const |
int | GetLowPCA (CvMat **avg, CvMat **eigenvectors) |
int | GetLowPCA (CvMat **avg, CvMat **eigenvectors) |
CvSize | GetPatchSize () const |
CvSize | GetPatchSize () const |
int | GetPoseCount () const |
int | GetPoseCount () const |
int | GetPyrLevels () const |
int | GetPyrLevels () const |
void | InitializeDescriptor (int desc_idx, IplImage *train_image, const char *feature_label) |
void | InitializeDescriptor (int desc_idx, IplImage *train_image, const char *feature_label) |
void | InitializeDescriptors (IplImage *train_image, const std::vector< KeyPointEx > &features, const char *feature_label="", int desc_start_idx=0) |
void | InitializeDescriptors (IplImage *train_image, const std::vector< KeyPointEx > &features, const char *feature_label="", int desc_start_idx=0) |
void | InitializePoses () |
void | InitializePoses () |
void | InitializePoseTransforms () |
void | InitializePoseTransforms () |
void | InitializeTransformsFromPoses () |
void | InitializeTransformsFromPoses () |
int | LoadPCADescriptors (const char *filename) |
int | LoadPCADescriptors (const char *filename) |
void | SavePCADescriptors (const char *filename) |
void | SavePCADescriptors (const char *filename) |
void | SetPCAHigh (CvMat *avg, CvMat *eigenvectors) |
void | SetPCAHigh (CvMat *avg, CvMat *eigenvectors) |
void | SetPCALow (CvMat *avg, CvMat *eigenvectors) |
void | SetPCALow (CvMat *avg, CvMat *eigenvectors) |
~CvOneWayDescriptorBase () | |
~CvOneWayDescriptorBase () | |
Protected Attributes | |
CvOneWayDescriptor * | m_descriptors |
CvSize | m_patch_size |
CvMat * | m_pca_avg |
CvOneWayDescriptor * | m_pca_descriptors |
int | m_pca_dim_high |
int | m_pca_dim_low |
CvMat * | m_pca_eigenvectors |
CvMat * | m_pca_hr_avg |
CvMat * | m_pca_hr_eigenvectors |
int | m_pose_count |
CvAffinePose * | m_poses |
int | m_pyr_levels |
int | m_train_feature_count |
CvMat ** | m_transforms |
Definition at line 59 of file detail/one_way_descriptor_base.h.
CvOneWayDescriptorBase::CvOneWayDescriptorBase | ( | 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 |
||
) |
Definition at line 55 of file one_way_descriptor_base.cpp.
Definition at line 111 of file one_way_descriptor_base.cpp.
CvOneWayDescriptorBase::CvOneWayDescriptorBase | ( | 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 CvOneWayDescriptorBase::Allocate | ( | int | train_feature_count | ) |
Definition at line 420 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::Allocate | ( | int | train_feature_count | ) |
Definition at line 271 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::CreateDescriptorsFromImage | ( | IplImage * | src, |
const std::vector< KeyPointEx > & | features | ||
) |
Definition at line 457 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::CreateDescriptorsFromImage | ( | IplImage * | src, |
const std::vector< KeyPointEx > & | features | ||
) |
Definition at line 281 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::FindDescriptor | ( | IplImage * | patch, |
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance, | ||
float * | _scale = 0 , |
||
float * | scale_ranges = 0 |
||
) | const |
void CvOneWayDescriptorBase::FindDescriptor | ( | IplImage * | patch, |
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance, | ||
float * | _scale = 0 , |
||
float * | scale_ranges = 0 |
||
) | const |
Definition at line 201 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::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 CvOneWayDescriptorBase::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 |
Definition at line 234 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::FindDescriptor | ( | IplImage * | src, |
cv::Point2f | pt, | ||
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance | ||
) | const |
void CvOneWayDescriptorBase::FindDescriptor | ( | IplImage * | src, |
cv::Point2f | pt, | ||
int & | desc_idx, | ||
int & | pose_idx, | ||
float & | distance | ||
) | const |
Definition at line 188 of file one_way_descriptor_base.cpp.
const CvOneWayDescriptor* CvOneWayDescriptorBase::GetDescriptor | ( | int | desc_idx | ) | const [inline] |
Definition at line 104 of file detail/one_way_descriptor_base.h.
const CvOneWayDescriptor* CvOneWayDescriptorBase::GetDescriptor | ( | int | desc_idx | ) | const [inline] |
Definition at line 104 of file one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetDescriptorCount | ( | ) | const [inline] |
Definition at line 92 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetDescriptorCount | ( | ) | const [inline] |
Definition at line 92 of file one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetLowPCA | ( | CvMat ** | avg, |
CvMat ** | eigenvectors | ||
) | [inline] |
Definition at line 166 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetLowPCA | ( | CvMat ** | avg, |
CvMat ** | eigenvectors | ||
) | [inline] |
Definition at line 166 of file one_way_descriptor_base.h.
CvSize CvOneWayDescriptorBase::GetPatchSize | ( | ) | const [inline] |
Definition at line 84 of file detail/one_way_descriptor_base.h.
CvSize CvOneWayDescriptorBase::GetPatchSize | ( | ) | const [inline] |
Definition at line 84 of file one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetPoseCount | ( | ) | const [inline] |
Definition at line 86 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetPoseCount | ( | ) | const [inline] |
Definition at line 86 of file one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetPyrLevels | ( | ) | const [inline] |
Definition at line 89 of file one_way_descriptor_base.h.
int CvOneWayDescriptorBase::GetPyrLevels | ( | ) | const [inline] |
Definition at line 89 of file detail/one_way_descriptor_base.h.
void CvOneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, |
IplImage * | train_image, | ||
const char * | feature_label | ||
) |
Definition at line 166 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::InitializeDescriptor | ( | int | desc_idx, |
IplImage * | train_image, | ||
const char * | feature_label | ||
) |
void CvOneWayDescriptorBase::InitializeDescriptors | ( | IplImage * | train_image, |
const std::vector< KeyPointEx > & | features, | ||
const char * | feature_label = "" , |
||
int | desc_start_idx = 0 |
||
) |
void CvOneWayDescriptorBase::InitializeDescriptors | ( | IplImage * | train_image, |
const std::vector< KeyPointEx > & | features, | ||
const char * | feature_label = "" , |
||
int | desc_start_idx = 0 |
||
) |
Definition at line 141 of file one_way_descriptor_base.cpp.
Definition at line 160 of file one_way_descriptor_base.cpp.
Definition at line 150 of file one_way_descriptor_base.cpp.
int CvOneWayDescriptorBase::LoadPCADescriptors | ( | const char * | filename | ) |
Definition at line 309 of file one_way_descriptor_base.cpp.
int CvOneWayDescriptorBase::LoadPCADescriptors | ( | const char * | filename | ) |
void CvOneWayDescriptorBase::SavePCADescriptors | ( | const char * | filename | ) |
void CvOneWayDescriptorBase::SavePCADescriptors | ( | const char * | filename | ) |
Definition at line 387 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::SetPCAHigh | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
void CvOneWayDescriptorBase::SetPCAHigh | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
Definition at line 259 of file one_way_descriptor_base.cpp.
void CvOneWayDescriptorBase::SetPCALow | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
void CvOneWayDescriptorBase::SetPCALow | ( | CvMat * | avg, |
CvMat * | eigenvectors | ||
) |
Definition at line 265 of file one_way_descriptor_base.cpp.
CvOneWayDescriptor * CvOneWayDescriptorBase::m_descriptors [protected] |
Definition at line 182 of file detail/one_way_descriptor_base.h.
CvSize CvOneWayDescriptorBase::m_patch_size [protected] |
Definition at line 171 of file detail/one_way_descriptor_base.h.
CvMat * CvOneWayDescriptorBase::m_pca_avg [protected] |
Definition at line 183 of file detail/one_way_descriptor_base.h.
CvOneWayDescriptor * CvOneWayDescriptorBase::m_pca_descriptors [protected] |
Definition at line 187 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::m_pca_dim_high [protected] |
Definition at line 199 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::m_pca_dim_low [protected] |
Definition at line 200 of file detail/one_way_descriptor_base.h.
CvMat * CvOneWayDescriptorBase::m_pca_eigenvectors [protected] |
Definition at line 184 of file detail/one_way_descriptor_base.h.
CvMat * CvOneWayDescriptorBase::m_pca_hr_avg [protected] |
Definition at line 185 of file detail/one_way_descriptor_base.h.
CvMat * CvOneWayDescriptorBase::m_pca_hr_eigenvectors [protected] |
Definition at line 186 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::m_pose_count [protected] |
Definition at line 180 of file detail/one_way_descriptor_base.h.
CvAffinePose * CvOneWayDescriptorBase::m_poses [protected] |
Definition at line 196 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::m_pyr_levels [protected] |
Definition at line 202 of file detail/one_way_descriptor_base.h.
int CvOneWayDescriptorBase::m_train_feature_count [protected] |
Definition at line 181 of file detail/one_way_descriptor_base.h.
CvMat ** CvOneWayDescriptorBase::m_transforms [protected] |
Definition at line 197 of file detail/one_way_descriptor_base.h.