46 #ifndef __vpMbEdgeMultiTracker_h__ 47 #define __vpMbEdgeMultiTracker_h__ 52 #include <visp3/mbt/vpMbEdgeTracker.h> 107 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
110 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
115 const bool displayFullModel =
false);
119 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
122 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
123 const std::map<std::string, vpCameraParameters> &mapOfCameraParameters,
const vpColor &col,
124 const unsigned int thickness = 1,
const bool displayFullModel =
false);
127 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
128 const std::map<std::string, vpCameraParameters> &mapOfCameraParameters,
const vpColor &col,
129 const unsigned int thickness = 1,
const bool displayFullModel =
false);
131 virtual std::vector<std::string> getCameraNames()
const;
136 virtual void getCameraParameters(std::map<std::string, vpCameraParameters> &mapOfCameraParameters)
const;
139 virtual unsigned int getClipping(
const std::string &cameraName)
const;
143 virtual std::map<std::string, vpMbHiddenFaces<vpMbtPolygon> >
getFaces()
const;
145 void getLcircle(std::list<vpMbtDistanceCircle *> &circlesList,
const unsigned int level = 0)
const;
146 virtual void getLcircle(
const std::string &cameraName, std::list<vpMbtDistanceCircle *> &circlesList,
147 const unsigned int level = 0)
const;
149 void getLcylinder(std::list<vpMbtDistanceCylinder *> &cylindersList,
const unsigned int level = 0)
const;
150 virtual void getLcylinder(
const std::string &cameraName, std::list<vpMbtDistanceCylinder *> &cylindersList,
151 const unsigned int level = 0)
const;
153 void getLline(std::list<vpMbtDistanceLine *> &linesList,
const unsigned int level = 0)
const;
154 virtual void getLline(
const std::string &cameraName, std::list<vpMbtDistanceLine *> &linesList,
155 const unsigned int level = 0)
const;
162 virtual unsigned int getNbPoints(
const unsigned int level = 0)
const;
163 virtual unsigned int getNbPoints(
const std::string &cameraName,
const unsigned int level = 0)
const;
166 virtual unsigned int getNbPolygon(
const std::string &cameraName)
const;
167 virtual std::map<std::string, unsigned int> getMultiNbPolygon()
const;
179 virtual void getPose(std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses)
const;
187 #ifdef VISP_HAVE_MODULE_GUI 189 const std::string &displayFile =
"");
194 const std::string &initFile1,
const std::string &initFile2,
const bool displayHelp =
false,
195 const bool firstCameraIsReference =
true);
198 const std::string &initFile,
const bool displayHelp =
false);
201 const std::map<std::string, std::string> &mapOfInitFiles,
const bool displayHelp =
false);
210 const bool firstCameraIsReference =
true);
214 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses);
218 virtual void loadConfigFile(
const std::string &configFile1,
const std::string &configFile2,
219 const bool firstCameraIsReference =
true);
221 virtual void loadConfigFile(
const std::map<std::string, std::string> &mapOfConfigFiles);
223 virtual void loadModel(
const std::string &modelFile,
const bool verbose =
false);
230 const bool firstCameraIsReference =
true);
232 const std::string &cad_name,
233 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
234 const bool verbose =
false);
244 const bool firstCameraIsReference =
true);
248 virtual void setCameraParameters(
const std::map<std::string, vpCameraParameters> &mapOfCameraParameters);
250 virtual void setCameraTransformationMatrix(
const std::string &cameraName,
254 setCameraTransformationMatrix(
const std::map<std::string, vpHomogeneousMatrix> &mapOfTransformationMatrix);
256 virtual void setClipping(
const unsigned int &flags);
257 virtual void setClipping(
const std::string &cameraName,
const unsigned int &flags);
268 #ifdef VISP_HAVE_OGRE 292 virtual void setLod(
const bool useLod,
const std::string &name =
"");
293 virtual void setLod(
const bool useLod,
const std::string &cameraName,
const std::string &name);
297 const std::string &name);
301 const std::string &name);
329 const bool firstCameraIsReference =
true);
335 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses);
339 virtual void setReferenceCameraName(
const std::string &referenceCameraName);
341 virtual void setScales(
const std::vector<bool> &scales);
345 virtual void setUseEdgeTracking(
const std::string &name,
const bool &useEdgeTracking);
367 std::map<std::string, vpVelocityTwistMatrix> &mapOfVelocityTwist);
virtual unsigned int getClipping() const
virtual void setDisplayFeatures(const bool displayF)
std::string m_referenceCameraName
Name of the reference camera.
virtual void setCovarianceComputation(const bool &flag)
virtual void setOgreShowConfigDialog(const bool showConfigDialog)
Implementation of a matrix and operations on matrices.
void setMovingEdge(const vpMe &me)
virtual void setAngleDisappear(const double &a)
Implementation of an homogeneous matrix and operations on such kind of matrices.
void init(const vpImage< unsigned char > &I)
void track(const vpImage< unsigned char > &I)
virtual void setOptimizationMethod(const vpMbtOptimizationMethod &opt)
Class to define colors available for display functionnalities.
vpColVector m_w_edgeMulti
Robust weights.
virtual unsigned int getNbPoints(const unsigned int level=0) const
Make the complete tracking of an object by using its CAD model.
virtual void setPose(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cdMo)
virtual void setCameraParameters(const vpCameraParameters &camera)
void computeVVSFirstPhasePoseEstimation(const unsigned int iter, bool &isoJoIdentity_)
vpColVector m_error_edgeMulti
(s - s*)
void computeVVS(const vpImage< unsigned char > &_I, const unsigned int lvl)
virtual void initFromPose(const vpImage< unsigned char > &I, const std::string &initFile)
void loadConfigFile(const std::string &configFile)
void setGoodMovingEdgesRatioThreshold(const double threshold)
virtual void computeVVSWeights()
virtual void setNearClippingDistance(const double &dist)
unsigned int getNumberOfCameras() const
virtual void setOgreVisibilityTest(const bool &v)
virtual vpHomogeneousMatrix getPose() const
virtual void reInitModel(const vpImage< unsigned char > &I, const std::string &cad_name, const vpHomogeneousMatrix &cMo_, const bool verbose=false)
virtual void setMinPolygonAreaThresh(const double minPolygonAreaThresh, const std::string &name="")
virtual void setGoodNbRayCastingAttemptsRatio(const double &ratio)
std::map< std::string, vpHomogeneousMatrix > m_mapOfCameraTransformationMatrix
vpMatrix m_L_edgeMulti
Interaction matrix.
virtual void setScanLineVisibilityTest(const bool &v)
friend class vpMbEdgeMultiTracker
virtual vpColVector getError() const
Generic class defining intrinsic camera parameters.
void cleanPyramid(std::vector< const vpImage< unsigned char > *> &_pyramid)
virtual void computeVVSInteractionMatrixAndResidu()
virtual void computeVVSWeights(vpRobust &robust, const vpColVector &error, vpColVector &w)
virtual void setFarClippingDistance(const double &dist)
virtual void setAngleAppear(const double &a)
std::map< std::string, vpMbEdgeTracker * > m_mapOfEdgeTrackers
Map of Model-based edge trackers.
virtual void initClick(const vpImage< unsigned char > &I, const std::string &initFile, const bool displayHelp=false)
virtual vpColVector getRobustWeights() const
virtual void setNbRayCastingAttemptsForVisibility(const unsigned int &attempts)
virtual void setMinLineLengthThresh(const double minLineLengthThresh, const std::string &name="")
void getLline(std::list< vpMbtDistanceLine *> &linesList, const unsigned int level=0) const
void computeProjectionError(const vpImage< unsigned char > &_I)
void getLcircle(std::list< vpMbtDistanceCircle *> &circlesList, const unsigned int level=0) const
void setScales(const std::vector< bool > &_scales)
virtual void loadModel(const char *modelFile, const bool verbose=false)
virtual void getCameraParameters(vpCameraParameters &camera) const
virtual unsigned int getNbPolygon() const
Implementation of column vector and the associated operations.
std::map< std::string, std::vector< const vpImage< unsigned char > * > > m_mapOfPyramidalImages
Map of pyramidal images for each camera.
Implementation of a pose vector and operations on poses.
virtual vpMe getMovingEdge() const
void display(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &col, const unsigned int thickness=1, const bool displayFullModel=false)
virtual void computeVVSInit()
void initPyramid(const vpImage< unsigned char > &_I, std::vector< const vpImage< unsigned char > *> &_pyramid)
virtual void setClipping(const unsigned int &flags)
void setUseEdgeTracking(const std::string &name, const bool &useEdgeTracking)
Make the complete stereo (or more) tracking of an object by using its CAD model.
virtual vpMbHiddenFaces< vpMbtPolygon > & getFaces()
vpColVector m_weightedError_edgeMulti
Weighted error.
void getLcylinder(std::list< vpMbtDistanceCylinder *> &cylindersList, const unsigned int level=0) const
virtual void setProjectionErrorComputation(const bool &flag)
virtual void setLod(const bool useLod, const std::string &name="")