#include <ModelObject3D.hh>
Public Member Functions | |
void | AddToModel (Array< KeypointDescriptor * > &keys, Object3D &obj) |
void | GetPosScaleAngle (double x, double y, double H[9], double &xr, double &yr, double &scale, double &angle) |
bool | LoadModel (const std::string filename, Object3D &obj) |
void | MapPoint (double xin, double yin, double H[9], double &xout, double &yout) |
void | MapPoint (double in[2], double H[9], double out[2]) |
ModelObject3D () | |
void | SaveModel (const char *filename, Object3D &obj) |
~ModelObject3D () | |
Private Member Functions | |
void | ComputeNewHnorm (P::Array< KeypointDescriptor * > &keys, double Hnorm[9]) |
void | InsertMeanShift (Array< KeypointDescriptor * > &keys, P::Array< CodebookEntry * > &codebook, double H[9]) |
Create a plane model Map keypoints to zero centered coordinates and create codebook
Definition at line 24 of file ModelObject3D.hh.
Definition at line 21 of file ModelObject3D.cc.
Definition at line 26 of file ModelObject3D.cc.
void P::ModelObject3D::AddToModel | ( | Array< KeypointDescriptor * > & | keys, |
Object3D & | obj | ||
) |
Create new object model
Definition at line 112 of file ModelObject3D.cc.
void P::ModelObject3D::ComputeNewHnorm | ( | P::Array< KeypointDescriptor * > & | keys, |
double | Hnorm[9] | ||
) | [private] |
Create new object model
Definition at line 33 of file ModelObject3D.cc.
void P::ModelObject3D::GetPosScaleAngle | ( | double | x, |
double | y, | ||
double | H[9], | ||
double & | xr, | ||
double & | yr, | ||
double & | scale, | ||
double & | angle | ||
) | [inline] |
returns angle and scale from homography
Definition at line 77 of file ModelObject3D.hh.
void P::ModelObject3D::InsertMeanShift | ( | Array< KeypointDescriptor * > & | keys, |
P::Array< CodebookEntry * > & | codebook, | ||
double | H[9] | ||
) | [private] |
Insert a new keypoint to the codebook
Definition at line 55 of file ModelObject3D.cc.
bool P::ModelObject3D::LoadModel | ( | const std::string | filename, |
Object3D & | obj | ||
) |
Load 3d object model
Definition at line 157 of file ModelObject3D.cc.
void P::ModelObject3D::MapPoint | ( | double | xin, |
double | yin, | ||
double | H[9], | ||
double & | xout, | ||
double & | yout | ||
) | [inline] |
Map a point using an (affine) homography
H | pointer to a 3x3 homography matrix |
Definition at line 52 of file ModelObject3D.hh.
void P::ModelObject3D::MapPoint | ( | double | in[2], |
double | H[9], | ||
double | out[2] | ||
) | [inline] |
Map a point using an (affine) homography
H | pointer to a 3x3 homography matrix |
Definition at line 65 of file ModelObject3D.hh.
void P::ModelObject3D::SaveModel | ( | const char * | filename, |
Object3D & | obj | ||
) |
Save 3d object model
Definition at line 124 of file ModelObject3D.cc.