#include <ODetect3D.hh>
Definition at line 26 of file ODetect3D.hh.
Definition at line 30 of file ODetect3D.cc.
Definition at line 50 of file ODetect3D.cc.
void P::ODetect3D::ComputeConfidence | ( | Array< KeypointDescriptor * > & | keys, |
unsigned & | numInl, | ||
Object3D & | object | ||
) | [private] |
ComputeConfidence
Definition at line 517 of file ODetect3D.cc.
void P::ODetect3D::CopyPoseCv | ( | PoseCv & | in, |
PoseCv & | out | ||
) | [inline, private] |
Definition at line 116 of file ODetect3D.hh.
void P::ODetect3D::DeletePairs | ( | Array< KeyClusterPair * > & | matches | ) | [private] |
DeletePairs
Definition at line 61 of file ODetect3D.cc.
bool P::ODetect3D::Detect | ( | Array< KeypointDescriptor * > & | keys, |
Object3D & | object | ||
) |
Simple RANSAC based 3d object detector
Definition at line 560 of file ODetect3D.cc.
void P::ODetect3D::DrawInlier | ( | IplImage * | img, |
CvScalar | col | ||
) |
Draw inlier stored during recognition. Attention: Pointers are stored! DrawInlier only works as long as image keypoints are valid!
Definition at line 640 of file ODetect3D.cc.
void P::ODetect3D::FitModelRANSAC | ( | Array< KeyClusterPair * > & | matches, |
PoseCv & | pose, | ||
unsigned & | numInl | ||
) | [private] |
Verify object model
Definition at line 327 of file ODetect3D.cc.
void P::ODetect3D::FitModelRANSAC_GPU | ( | Array< KeyClusterPair * > & | matches, |
PoseCv & | pose, | ||
unsigned & | numInl | ||
) | [private] |
Definition at line 238 of file ODetect3D.cc.
bool P::ODetect3D::GetBestCorner | ( | PoseCv & | pose, |
KeypointDescriptor * | k, | ||
CodebookEntry * | cbe, | ||
Point3D & | pos, | ||
double & | minDist | ||
) | [private] |
Get best supporting corner of a matching codebook entry
Definition at line 399 of file ODetect3D.cc.
void P::ODetect3D::GetInlier | ( | Array< KeyClusterPair * > & | matches, |
PoseCv & | pose, | ||
int & | inl | ||
) | [private] |
Count inlier
Definition at line 200 of file ODetect3D.cc.
void P::ODetect3D::GetRandIdx | ( | unsigned | size, |
unsigned | num, | ||
P::Array< unsigned > & | idx | ||
) | [private] |
GetRandIdx
Definition at line 184 of file ODetect3D.cc.
void P::ODetect3D::MatchKeypoints | ( | Array< KeypointDescriptor * > & | keys, |
Array< CodebookEntry * > & | cb, | ||
Array< KeyClusterPair * > & | matches | ||
) | [private] |
Match keypoints with codebook (use threshold)
Definition at line 115 of file ODetect3D.cc.
void P::ODetect3D::MatchKeypoints2 | ( | Array< KeypointDescriptor * > & | keys, |
Array< CodebookEntry * > & | cb, | ||
Array< KeyClusterPair * > & | matches | ||
) | [private] |
Match keypoints with codebook check second nearest neighbour
Definition at line 73 of file ODetect3D.cc.
void P::ODetect3D::MatchKeypointsGPU | ( | Array< KeypointDescriptor * > & | keys, |
Array< CodebookEntry * > & | cb, | ||
Array< KeyClusterPair * > & | matches | ||
) | [private] |
Match keypoints (GPU version)
Definition at line 145 of file ODetect3D.cc.
void P::ODetect3D::ProjectPoint2Image | ( | double | xc, |
double | yc, | ||
double | zc, | ||
CvMat * | C, | ||
double & | xi, | ||
double & | yi | ||
) | [inline, private] |
ProjectPoint2Image projects a 3d point to the image
Definition at line 109 of file ODetect3D.hh.
void P::ODetect3D::RefinePoseLS | ( | Array< KeyClusterPair * > & | matches, |
PoseCv & | pose, | ||
unsigned & | inl, | ||
double & | err | ||
) | [private] |
Compute least squares pose
Definition at line 434 of file ODetect3D.cc.
void P::ODetect3D::SetCameraParameter | ( | CvMat * | C | ) |
Set camera intrinsic parameter We assume undistort images!!! Keypoints must be undistort!!!!
_C | Camera intrinsic matrix of undistort images |
Definition at line 630 of file ODetect3D.cc.
void P::ODetect3D::SetDebugImage | ( | IplImage * | img | ) | [inline] |
Definition at line 88 of file ODetect3D.hh.
void P::ODetect3D::setNNThreshold | ( | double | nn_threshold | ) | [inline] |
Definition at line 93 of file ODetect3D.hh.
void P::ODetect3D::setNPointsToMatch | ( | unsigned int | n | ) | [inline] |
Definition at line 98 of file ODetect3D.hh.
CvMat* P::ODetect3D::cameraMatrix [private] |
Definition at line 46 of file ODetect3D.hh.
IplImage* P::ODetect3D::dbg [private] |
Definition at line 44 of file ODetect3D.hh.
CvMat* P::ODetect3D::distCoeffs [private] |
Definition at line 47 of file ODetect3D.hh.
Array<KeypointDescriptor*> P::ODetect3D::inlier [private] |
Definition at line 52 of file ODetect3D.hh.
SiftMatchGPU* P::ODetect3D::matcher [private] |
Definition at line 49 of file ODetect3D.hh.
int P::ODetect3D::matcherSize [private] |
Definition at line 50 of file ODetect3D.hh.
Array<KeyClusterPair*> P::ODetect3D::matches [private] |
Definition at line 76 of file ODetect3D.hh.
unsigned int P::ODetect3D::n_points_to_match [private] |
Definition at line 78 of file ODetect3D.hh.
double P::ODetect3D::nn_far_enough_threshold [private] |
Definition at line 77 of file ODetect3D.hh.