Initializes multi marker by estimating their relative positions from one or more images. More...
#include <MultiMarkerInitializer.h>
Initializes multi marker by estimating their relative positions from one or more images.
To use, detect markers from images using MarkerDetector and call addMeasurement for each image that has at least two markers. Finally, call initialize to compute the relative positions of markers.
After the multi marker has been initialized, the point cloud can be copied into another MultiMarker implementation by PointCloudCopy.
Definition at line 49 of file MultiMarkerInitializer.h.
typedef std::vector<std::vector<MarkerMeasurement> >::iterator alvar::MultiMarkerInitializer::MeasurementIterator [protected] |
Definition at line 67 of file MultiMarkerInitializer.h.
alvar::MultiMarkerInitializer::MultiMarkerInitializer | ( | std::vector< int > & | indices, |
int | filter_buffer_min = 4 , |
||
int | filter_buffer_max = 15 |
||
) |
Definition at line 31 of file MultiMarkerInitializer.cpp.
int alvar::MultiMarkerInitializer::getMeasurementCount | ( | ) | [inline] |
Definition at line 112 of file MultiMarkerInitializer.h.
const std::vector<MarkerMeasurement>& alvar::MultiMarkerInitializer::getMeasurementMarkers | ( | int | measurement | ) | [inline] |
Definition at line 114 of file MultiMarkerInitializer.h.
double alvar::MultiMarkerInitializer::getMeasurementPose | ( | int | measurement, |
Camera * | cam, | ||
Pose & | pose | ||
) | [inline] |
Definition at line 118 of file MultiMarkerInitializer.h.
int alvar::MultiMarkerInitializer::Initialize | ( | Camera * | cam | ) |
Tries to deduce marker poses from measurements.
Returns the number of initialized markers.
Definition at line 93 of file MultiMarkerInitializer.cpp.
void alvar::MultiMarkerInitializer::MeasurementsAdd | ( | MarkerIterator & | begin, |
MarkerIterator & | end | ||
) | [protected] |
Definition at line 43 of file MultiMarkerInitializer.cpp.
void alvar::MultiMarkerInitializer::MeasurementsAdd | ( | const std::vector< M > * | markers | ) | [inline] |
Adds a new measurement for marker field initialization. Each measurement should contain at least two markers. It does not matter which markers are visible, especially the zero marker does not have to be visible in every measurement. It suffices that there exists a 'path' from the zero marker to every other marker in the marker field.
For example:
When Initialize is called, the system can first deduce the pose of A and then the pose of B.
Definition at line 94 of file MultiMarkerInitializer.h.
Definition at line 82 of file MultiMarkerInitializer.cpp.
bool alvar::MultiMarkerInitializer::updateMarkerPoses | ( | std::vector< MarkerMeasurement > & | markers, |
const Pose & | pose | ||
) | [protected] |
Definition at line 119 of file MultiMarkerInitializer.cpp.
int alvar::MultiMarkerInitializer::filter_buffer_min [protected] |
Definition at line 69 of file MultiMarkerInitializer.h.
std::vector<bool> alvar::MultiMarkerInitializer::marker_detected [protected] |
Definition at line 65 of file MultiMarkerInitializer.h.
std::vector<std::vector<MarkerMeasurement> > alvar::MultiMarkerInitializer::measurements [protected] |
Definition at line 66 of file MultiMarkerInitializer.h.
Definition at line 68 of file MultiMarkerInitializer.h.