#include <KeypointDescriptor.hh>
Public Types | |
enum | Type { DOG_SIFT, LOWE_DOG_SIFT, MSER_SIFT, UVMSER_SIFT, HESLAP_SIFT, MAX_TYPE, UNDEF = MAX_TYPE } |
Public Member Functions | |
void | Add (float *desc) |
void | AllocVec (unsigned s) |
void | Copy (KeypointDescriptor *k) |
void | CopyVec (KeypointDescriptor *k) |
float | DistSqr (float *desc1, float *desc2, unsigned cnt) |
void | Div (float num) |
unsigned | GetSize () |
float | GetThr () |
Type | GetType () |
float * | GetVec () |
float | GetVec (unsigned i) |
bool | GetVoteCenter (KeypointDescriptor *current, Vector2 &v, double &delta_angle, double &delta_scale) |
bool | Have3D () |
KeypointDescriptor () | |
KeypointDescriptor (Type t) | |
KeypointDescriptor (KeypointDescriptor *k) | |
KeypointDescriptor (Type t, double x, double y, float s, float a) | |
KeypointDescriptor (Type t, double x, double y, float s, float a, float _m11, float _m12, float _m21, float _m22) | |
float | Match (KeypointDescriptor *k) |
void | MatchSift (KeypointDescriptor *k, float thr, float &dist) |
void | Mul (float num) |
void | ProjectBgMask (KeypointDescriptor *model, IplImage *img, float w) |
void | ProjectMask (KeypointDescriptor *model, IplImage *img, float w) |
void | ProjectOccl (P::Vector2 ¢er, float scale, float angle, IplImage *img, float w) |
void | ProjectPatch (KeypointDescriptor *model, IplImage *img) |
void | ReadDescriptor (ifstream &in, unsigned size_in) |
void | ReadKeypoint (ifstream &in) |
void | SaveMask (IplImage *img) |
void | SavePatch (IplImage *img) |
void | SetError (float e) |
void | SetPos (float x, float y, float z) |
void | SetReliability (float f) |
void | SetZero () |
void | WriteDescriptor (ofstream &out) |
void | WriteKeypoint (ofstream &out) |
~KeypointDescriptor () | |
Static Public Member Functions | |
static void | Draw (IplImage *img, KeypointDescriptor &k, CvScalar col) |
static Type | EnumType (const char *type_name) |
static void | LoadAll (ifstream &is, KeypointDescriptor &k) |
static void | SaveAll (ofstream &os, const KeypointDescriptor &k) |
static const char * | TypeName (Type t) |
Public Attributes | |
IplImage * | bgmask |
unsigned | chainCnt |
unsigned | chainId |
unsigned | cnt_err |
unsigned | cnt_pos |
unsigned | cnt_rel |
unsigned | flags |
IplImage * | mask |
float | mean_error |
unsigned | occNum |
P::Vector2 | p_rect |
IplImage * | patch |
CvMat * | pos |
float | reliability |
unsigned | size |
Type | type |
float | var_error |
float * | vec |
Static Public Attributes | |
static float | COL_THR |
static float | DOG_SIFT_THR = .2 |
static float | HESLAP_SIFT_THR = 30000 |
static const unsigned | KEDE_DELETE = 0x01 |
static const unsigned | KEDE_DETECTED = 0x04 |
static const unsigned | KEDE_INSERT = 0x02 |
static float | LOWE_DOG_SIFT_THR = 50000 |
static float | MSER_SIFT_THR = 40000 |
Definition at line 35 of file KeypointDescriptor.hh.
Definition at line 38 of file KeypointDescriptor.hh.
Constructor/Destructor
Definition at line 58 of file KeypointDescriptor.cc.
Definition at line 81 of file KeypointDescriptor.cc.
Definition at line 115 of file KeypointDescriptor.cc.
P::KeypointDescriptor::KeypointDescriptor | ( | Type | t, |
double | x, | ||
double | y, | ||
float | s, | ||
float | a | ||
) |
Definition at line 129 of file KeypointDescriptor.cc.
P::KeypointDescriptor::KeypointDescriptor | ( | Type | t, |
double | x, | ||
double | y, | ||
float | s, | ||
float | a, | ||
float | _m11, | ||
float | _m12, | ||
float | _m21, | ||
float | _m22 | ||
) |
Definition at line 153 of file KeypointDescriptor.cc.
Definition at line 106 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::Add | ( | float * | desc | ) | [inline] |
Add two descriptors
Definition at line 231 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::AllocVec | ( | unsigned | s | ) | [inline] |
Definition at line 149 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::Copy | ( | KeypointDescriptor * | k | ) | [inline] |
Definition at line 166 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::CopyVec | ( | KeypointDescriptor * | k | ) | [inline] |
Definition at line 156 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::DistSqr | ( | float * | desc1, |
float * | desc2, | ||
unsigned | cnt | ||
) | [inline] |
Return squared distance between two keypoint descriptors.
Definition at line 215 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::Div | ( | float | num | ) | [inline] |
Devide a descriptor by ..
Definition at line 257 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::Draw | ( | IplImage * | img, |
KeypointDescriptor & | k, | ||
CvScalar | col | ||
) | [static] |
draw a keypoint
Definition at line 403 of file KeypointDescriptor.cc.
KeypointDescriptor::Type P::KeypointDescriptor::EnumType | ( | const char * | type_name | ) | [static] |
* Return the enum type of a given gestalt type name.
Definition at line 45 of file KeypointDescriptor.cc.
unsigned P::KeypointDescriptor::GetSize | ( | void | ) | [inline] |
Definition at line 120 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::GetThr | ( | ) | [inline] |
Definition at line 313 of file KeypointDescriptor.hh.
Type P::KeypointDescriptor::GetType | ( | ) | [inline] |
Definition at line 119 of file KeypointDescriptor.hh.
float* P::KeypointDescriptor::GetVec | ( | ) | [inline] |
Definition at line 117 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::GetVec | ( | unsigned | i | ) | [inline] |
Definition at line 118 of file KeypointDescriptor.hh.
bool P::KeypointDescriptor::GetVoteCenter | ( | KeypointDescriptor * | current, |
Vector2 & | v, | ||
double & | delta_angle, | ||
double & | delta_scale | ||
) |
vote for an object
Definition at line 181 of file KeypointDescriptor.cc.
bool P::KeypointDescriptor::Have3D | ( | ) | [inline] |
Definition at line 121 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::LoadAll | ( | ifstream & | is, |
KeypointDescriptor & | k | ||
) | [static] |
Definition at line 600 of file KeypointDescriptor.cc.
float P::KeypointDescriptor::Match | ( | KeypointDescriptor * | k | ) |
match two keypoints
Definition at line 367 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::MatchSift | ( | KeypointDescriptor * | k, |
float | thr, | ||
float & | dist | ||
) | [inline] |
MatchSift tests the euclidean distance of the sift descriptor
Definition at line 285 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::Mul | ( | float | num | ) | [inline] |
Multiply a descriptor with ..
Definition at line 270 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::ProjectBgMask | ( | KeypointDescriptor * | model, |
IplImage * | img, | ||
float | w | ||
) |
project probability of each pixel to a voting image using a stored mask
Definition at line 250 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::ProjectMask | ( | KeypointDescriptor * | model, |
IplImage * | img, | ||
float | w | ||
) |
project probability of each pixel to a voting image using a stored mask
Definition at line 223 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::ProjectOccl | ( | P::Vector2 & | center, |
float | scale, | ||
float | angle, | ||
IplImage * | img, | ||
float | w | ||
) |
estimate the location of the interest point with respect to center and project the patch
Definition at line 278 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::ProjectPatch | ( | KeypointDescriptor * | model, |
IplImage * | img | ||
) |
Affine projection of the patch to img
Definition at line 341 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::ReadDescriptor | ( | ifstream & | in, |
unsigned | size_in | ||
) |
Definition at line 453 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::ReadKeypoint | ( | ifstream & | in | ) |
read/write keypoints
Definition at line 434 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::SaveAll | ( | ofstream & | os, |
const KeypointDescriptor & | k | ||
) | [static] |
Definition at line 583 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::SaveMask | ( | IplImage * | img | ) |
store a mask obj/background pixel
Definition at line 196 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::SavePatch | ( | IplImage * | img | ) |
save affine normalised patch
Definition at line 311 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::SetError | ( | float | e | ) | [inline] |
set mean error and variance
Definition at line 304 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::SetPos | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Definition at line 339 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::SetReliability | ( | float | f | ) | [inline] |
compute statistics of keypoint detection (mean number of detections of a keypoint in an image sequence
Definition at line 295 of file KeypointDescriptor.hh.
void P::KeypointDescriptor::SetZero | ( | ) | [inline] |
Set a descriptor to 0
Definition at line 244 of file KeypointDescriptor.hh.
const char * P::KeypointDescriptor::TypeName | ( | Type | t | ) | [static] |
Returns the name of a given gestalt type.
Definition at line 37 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::WriteDescriptor | ( | ofstream & | out | ) |
Definition at line 470 of file KeypointDescriptor.cc.
void P::KeypointDescriptor::WriteKeypoint | ( | ofstream & | out | ) |
Definition at line 463 of file KeypointDescriptor.cc.
IplImage* P::KeypointDescriptor::bgmask |
Definition at line 72 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::chainCnt |
Definition at line 85 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::chainId |
Definition at line 84 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::cnt_err |
Definition at line 80 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::cnt_pos |
Definition at line 68 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::cnt_rel |
Definition at line 77 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::COL_THR [static] |
Definition at line 52 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::DOG_SIFT_THR = .2 [static] |
Definition at line 49 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::flags |
Definition at line 61 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::HESLAP_SIFT_THR = 30000 [static] |
Definition at line 53 of file KeypointDescriptor.hh.
const unsigned P::KeypointDescriptor::KEDE_DELETE = 0x01 [static] |
Definition at line 57 of file KeypointDescriptor.hh.
const unsigned P::KeypointDescriptor::KEDE_DETECTED = 0x04 [static] |
Definition at line 59 of file KeypointDescriptor.hh.
const unsigned P::KeypointDescriptor::KEDE_INSERT = 0x02 [static] |
Definition at line 58 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::LOWE_DOG_SIFT_THR = 50000 [static] |
Definition at line 50 of file KeypointDescriptor.hh.
IplImage* P::KeypointDescriptor::mask |
Definition at line 71 of file KeypointDescriptor.hh.
Definition at line 78 of file KeypointDescriptor.hh.
float P::KeypointDescriptor::MSER_SIFT_THR = 40000 [static] |
Definition at line 51 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::occNum |
Definition at line 82 of file KeypointDescriptor.hh.
Definition at line 69 of file KeypointDescriptor.hh.
IplImage* P::KeypointDescriptor::patch |
Definition at line 73 of file KeypointDescriptor.hh.
CvMat* P::KeypointDescriptor::pos |
Definition at line 67 of file KeypointDescriptor.hh.
Definition at line 76 of file KeypointDescriptor.hh.
unsigned P::KeypointDescriptor::size |
Definition at line 65 of file KeypointDescriptor.hh.
Definition at line 63 of file KeypointDescriptor.hh.
Definition at line 79 of file KeypointDescriptor.hh.
float* P::KeypointDescriptor::vec |
Definition at line 64 of file KeypointDescriptor.hh.