#include <ransac_matching.h>
Classes | |
class | Candidate |
class | Param |
Public Member Functions | |
void | DumpInlier (MeshType &m, Candidate &c, Param &pp) |
void | EvaluateFeature (int testSize, const char *filename, Param &pp) |
void | EvaluateMatrix (Candidate &c, Param &pp) |
EvaluateMatrix. | |
bool | FindPermutation (int d01, int d02, int d12, int m01, int m02, int m12, int nm[], Param &pp) |
Matrix44f | GenerateMatchingMatrix (Candidate &c, Param pp) |
void | Init (MeshType &fixM, MeshType &movM, Param &pp, FeatureParam &fpp) |
void | Process_SearchEvaluateTriple (vector< Candidate > &cVec, Param &pp) |
Public Attributes | |
KdTree< ScalarType > * | consensusTree |
std::vector< Point3f > | fixConsensusVec |
FeatureSetType | FS |
std::vector< Point3f > | movConsensusVec |
Private Types | |
typedef MeshType::BoxType | BoxType |
typedef MeshType::CoordType | CoordType |
typedef MeshType::EdgeIterator | EdgeIterator |
typedef MeshType::EdgeType | EdgeType |
typedef MeshType::FaceContainer | FaceContainer |
typedef MeshType::FaceIterator | FaceIterator |
typedef MeshType::FacePointer | FacePointer |
typedef MeshType::FaceType | FaceType |
typedef FeatureSetType::Param | FeatureParam |
typedef FeatureSetType::FeatureType | FeatureType |
typedef Matrix44< ScalarType > | Matrix44Type |
typedef MeshType::ScalarType | ScalarType |
typedef MeshType::VertexIterator | VertexIterator |
typedef MeshType::VertexPointer | VertexPointer |
typedef MeshType::VertexType | VertexType |
Ransac Framework
A ransac framework for mesh-mesh rough alignment. Templated on the featureSet
A feature set must expose
The framework, given two meshes (fix and mov), will search for a triplet of matching features that brings mov onto fix.
Validity of a transformation is checked by mean of two poisson disk sampling of the input meshes.
Definition at line 240 of file ransac_matching.h.
typedef MeshType::BoxType vcg::RansacFramework< MeshType, FeatureSetType >::BoxType [private] |
Definition at line 246 of file ransac_matching.h.
typedef MeshType::CoordType vcg::RansacFramework< MeshType, FeatureSetType >::CoordType [private] |
Definition at line 245 of file ransac_matching.h.
typedef MeshType::EdgeIterator vcg::RansacFramework< MeshType, FeatureSetType >::EdgeIterator [private] |
Definition at line 252 of file ransac_matching.h.
typedef MeshType::EdgeType vcg::RansacFramework< MeshType, FeatureSetType >::EdgeType [private] |
Definition at line 251 of file ransac_matching.h.
typedef MeshType::FaceContainer vcg::RansacFramework< MeshType, FeatureSetType >::FaceContainer [private] |
Definition at line 256 of file ransac_matching.h.
typedef MeshType::FaceIterator vcg::RansacFramework< MeshType, FeatureSetType >::FaceIterator [private] |
Definition at line 255 of file ransac_matching.h.
typedef MeshType::FacePointer vcg::RansacFramework< MeshType, FeatureSetType >::FacePointer [private] |
Definition at line 254 of file ransac_matching.h.
typedef MeshType::FaceType vcg::RansacFramework< MeshType, FeatureSetType >::FaceType [private] |
Definition at line 253 of file ransac_matching.h.
typedef FeatureSetType::Param vcg::RansacFramework< MeshType, FeatureSetType >::FeatureParam [private] |
Definition at line 243 of file ransac_matching.h.
typedef FeatureSetType::FeatureType vcg::RansacFramework< MeshType, FeatureSetType >::FeatureType [private] |
Definition at line 242 of file ransac_matching.h.
typedef Matrix44<ScalarType> vcg::RansacFramework< MeshType, FeatureSetType >::Matrix44Type [private] |
Definition at line 257 of file ransac_matching.h.
typedef MeshType::ScalarType vcg::RansacFramework< MeshType, FeatureSetType >::ScalarType [private] |
Definition at line 247 of file ransac_matching.h.
typedef MeshType::VertexIterator vcg::RansacFramework< MeshType, FeatureSetType >::VertexIterator [private] |
Definition at line 250 of file ransac_matching.h.
typedef MeshType::VertexPointer vcg::RansacFramework< MeshType, FeatureSetType >::VertexPointer [private] |
Definition at line 249 of file ransac_matching.h.
typedef MeshType::VertexType vcg::RansacFramework< MeshType, FeatureSetType >::VertexType [private] |
Definition at line 248 of file ransac_matching.h.
void vcg::RansacFramework< MeshType, FeatureSetType >::DumpInlier | ( | MeshType & | m, |
Candidate & | c, | ||
Param & | pp | ||
) | [inline] |
Definition at line 542 of file ransac_matching.h.
void vcg::RansacFramework< MeshType, FeatureSetType >::EvaluateFeature | ( | int | testSize, |
const char * | filename, | ||
Param & | pp | ||
) | [inline] |
Definition at line 359 of file ransac_matching.h.
void vcg::RansacFramework< MeshType, FeatureSetType >::EvaluateMatrix | ( | Candidate & | c, |
Param & | pp | ||
) | [inline] |
EvaluateMatrix.
c | |
pp | Evaluate the matrix resulting from a candidate. Done using the poisson sampling using only evalSize samples |
Definition at line 512 of file ransac_matching.h.
bool vcg::RansacFramework< MeshType, FeatureSetType >::FindPermutation | ( | int | d01, |
int | d02, | ||
int | d12, | ||
int | m01, | ||
int | m02, | ||
int | m12, | ||
int | nm[], | ||
Param & | pp | ||
) | [inline] |
Definition at line 317 of file ransac_matching.h.
Matrix44f vcg::RansacFramework< MeshType, FeatureSetType >::GenerateMatchingMatrix | ( | Candidate & | c, |
Param | pp | ||
) | [inline] |
Definition at line 560 of file ransac_matching.h.
void vcg::RansacFramework< MeshType, FeatureSetType >::Init | ( | MeshType & | fixM, |
MeshType & | movM, | ||
Param & | pp, | ||
FeatureParam & | fpp | ||
) | [inline] |
Definition at line 590 of file ransac_matching.h.
void vcg::RansacFramework< MeshType, FeatureSetType >::Process_SearchEvaluateTriple | ( | vector< Candidate > & | cVec, |
Param & | pp | ||
) | [inline] |
Definition at line 396 of file ransac_matching.h.
KdTree<ScalarType>* vcg::RansacFramework< MeshType, FeatureSetType >::consensusTree |
Definition at line 310 of file ransac_matching.h.
std::vector<Point3f> vcg::RansacFramework< MeshType, FeatureSetType >::fixConsensusVec |
Definition at line 309 of file ransac_matching.h.
FeatureSetType vcg::RansacFramework< MeshType, FeatureSetType >::FS |
Definition at line 308 of file ransac_matching.h.
std::vector<Point3f> vcg::RansacFramework< MeshType, FeatureSetType >::movConsensusVec |
Definition at line 309 of file ransac_matching.h.