74 ExternalContainerMap::iterator iter = container.begin();
75 ExternalContainerMap::iterator iter_end = container.end();
76 for(; iter != iter_end; ++iter) {
std::vector< CvPoint2D64f > ImagePointVector
bool UpdatePose(std::map< int, T > &container, Pose *pose, int type_id=-1, std::map< int, double > *weights=0)
Update the pose using the items with matching type_id.
void Get3dOnPlane(const Pose *pose, CvPoint2D32f p2d, CvPoint3D32f &p3d)
Get 3D-coordinate for 2D feature on the plane defined by the pose (z == 0)
void SetRes(int _x_res, int _y_res)
If we have no calibration file we can still adjust the default calibration to current resolution...
This file implements a pose estimator for the Fern-based image detector.
Simple Camera class for calculating distortions, orientation or projections with pre-calibrated camer...
bool SetCalib(const char *calibfile, int _x_res, int _y_res, FILE_FORMAT format=FILE_FORMAT_DEFAULT)
Set the calibration file and the current resolution for which the calibration is adjusted to...
void setResolution(int width, int height)
void updateFromTrackedPoints(ExternalContainerMap &container)
bool setCalibration(const std::string &filename, int width, int height)
Pose representation derived from the Rotation class
void CalcExteriorOrientation(std::vector< CvPoint3D64f > &pw, std::vector< CvPoint2D64f > &pi, Pose *pose)
Calculate exterior orientation.
Basic structure to be usable with EC methods.
std::vector< CvPoint3D64f > ModelPointVector
void extractPlaneCoordinates(ExternalContainerMap &container)
std::map< int, alvar::ExternalContainer > ExternalContainerMap
void calculateFromPointCorrespondences(ModelPointVector &mpts, ImagePointVector &ipts)