GSoC2011SfM
0.1
Google Summer of Code 2011: Structure from motion
|
This class tries to find the 3D structure using a sequence and cameras fully parameterized. More...
#include <StructureEstimator.h>
Public Member Functions | |
StructureEstimator (SequenceAnalyzer *sequence, std::vector< PointOfView > *cameras, int max_repro_error=10) | |
~StructureEstimator () | |
std::vector< char > | computeStructure (unsigned int max_error=10) |
std::vector< TrackOfPoints > | computeStructure (const std::vector< int > &list_of_images, unsigned int max_error=10) |
void | removeOutliersTracks (double max_error=10, std::vector< TrackOfPoints > *list_of_tracks=NULL) |
Protected Attributes | |
SequenceAnalyzer * | sequence_ |
Object containing all 2D information of this sequence. | |
std::vector< PointOfView > * | cameras_ |
List of cameras (intra and extern parameters...) | |
int | max_repro_error_ |
Maximum reprojection error allowed. |
This class tries to find the 3D structure using a sequence and cameras fully parameterized.
Definition at line 16 of file StructureEstimator.h.
OpencvSfM::StructureEstimator::StructureEstimator | ( | SequenceAnalyzer * | sequence, |
std::vector< PointOfView > * | cameras, | ||
int | max_repro_error = 10 |
||
) | [inline] |
Constructor of this 3D structure estimator
sequence | the address of the object containing all 2D information of this sequence |
cameras | List of cameras (intra and extern parameters...) |
max_repro_error | Maximum reprojection error allowed |
Definition at line 30 of file StructureEstimator.h.
OpencvSfM::StructureEstimator::~StructureEstimator | ( | ) | [inline] |
Destructor will not release datas as they where given by address!
Definition at line 38 of file StructureEstimator.h.
vector< char > OpencvSfM::StructureEstimator::computeStructure | ( | unsigned int | max_error = 10 | ) |
Project previously 2D points matches using cameras parameters
max_error | maximum error allowed. |
Definition at line 12 of file StructureEstimator.cpp.
Referenced by OpencvSfM::EuclideanEstimator::addMoreMatches(), OpencvSfM::EuclideanEstimator::computeReconstruction(), and OpencvSfM::EuclideanEstimator::initialReconstruction().
std::vector< TrackOfPoints > OpencvSfM::StructureEstimator::computeStructure | ( | const std::vector< int > & | list_of_images, |
unsigned int | max_error = 10 |
||
) |
Project previously 2D points matches for only two views
list_of_images | list of image indexes to use |
max_error | maximum error allowed. |
Definition at line 46 of file StructureEstimator.cpp.
void OpencvSfM::StructureEstimator::removeOutliersTracks | ( | double | max_error = 10 , |
std::vector< TrackOfPoints > * | list_of_tracks = NULL |
||
) |
Remove points from track when projection error > max_error
max_error | maximum error of back projection allowed |
list_of_tracks | list of tracks to work with. If NULL or not set, will use StructureEstimator::sequence_ |
Definition at line 95 of file StructureEstimator.cpp.
Referenced by OpencvSfM::EuclideanEstimator::computeReconstruction().