44 #ifndef _vpMbEdgeMultiTracker_h_ 45 #define _vpMbEdgeMultiTracker_h_ 47 #include <visp3/core/vpConfig.h> 52 #include <visp3/mbt/vpMbEdgeTracker.h> 54 #if defined(VISP_BUILD_DEPRECATED_FUNCTIONS) 111 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
114 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
119 const bool displayFullModel =
false);
123 const vpColor &col,
const unsigned int thickness = 1,
const bool displayFullModel =
false);
126 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
127 const std::map<std::string, vpCameraParameters> &mapOfCameraParameters,
const vpColor &col,
128 const unsigned int thickness = 1,
const bool displayFullModel =
false);
131 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
132 const std::map<std::string, vpCameraParameters> &mapOfCameraParameters,
const vpColor &col,
133 const unsigned int thickness = 1,
const bool displayFullModel =
false);
135 virtual std::vector<std::string> getCameraNames()
const;
140 virtual void getCameraParameters(std::map<std::string, vpCameraParameters> &mapOfCameraParameters)
const;
143 virtual unsigned int getClipping(
const std::string &cameraName)
const;
147 virtual std::map<std::string, vpMbHiddenFaces<vpMbtPolygon> >
getFaces()
const;
149 void getLcircle(std::list<vpMbtDistanceCircle *> &circlesList,
const unsigned int level = 0)
const;
150 virtual void getLcircle(
const std::string &cameraName, std::list<vpMbtDistanceCircle *> &circlesList,
151 const unsigned int level = 0)
const;
153 void getLcylinder(std::list<vpMbtDistanceCylinder *> &cylindersList,
const unsigned int level = 0)
const;
154 virtual void getLcylinder(
const std::string &cameraName, std::list<vpMbtDistanceCylinder *> &cylindersList,
155 const unsigned int level = 0)
const;
157 void getLline(std::list<vpMbtDistanceLine *> &linesList,
const unsigned int level = 0)
const;
158 virtual void getLline(
const std::string &cameraName, std::list<vpMbtDistanceLine *> &linesList,
159 const unsigned int level = 0)
const;
166 virtual unsigned int getNbPoints(
const unsigned int level = 0)
const;
167 virtual unsigned int getNbPoints(
const std::string &cameraName,
const unsigned int level = 0)
const;
170 virtual unsigned int getNbPolygon(
const std::string &cameraName)
const;
171 virtual std::map<std::string, unsigned int> getMultiNbPolygon()
const;
183 virtual void getPose(std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses)
const;
191 #ifdef VISP_HAVE_MODULE_GUI 193 const std::string &displayFile =
"");
199 const std::string &initFile1,
const std::string &initFile2,
const bool displayHelp =
false,
200 const bool firstCameraIsReference =
true);
203 const std::string &initFile,
const bool displayHelp =
false);
206 const std::map<std::string, std::string> &mapOfInitFiles,
const bool displayHelp =
false);
215 const bool firstCameraIsReference =
true);
219 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses);
223 virtual void loadConfigFile(
const std::string &configFile1,
const std::string &configFile2,
224 const bool firstCameraIsReference =
true);
226 virtual void loadConfigFile(
const std::map<std::string, std::string> &mapOfConfigFiles);
228 virtual void loadModel(
const std::string &modelFile,
const bool verbose =
false,
237 const bool firstCameraIsReference =
true);
239 const std::string &cad_name,
240 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses,
241 const bool verbose =
false);
251 const bool firstCameraIsReference =
true);
255 virtual void setCameraParameters(
const std::map<std::string, vpCameraParameters> &mapOfCameraParameters);
257 virtual void setCameraTransformationMatrix(
const std::string &cameraName,
261 setCameraTransformationMatrix(
const std::map<std::string, vpHomogeneousMatrix> &mapOfTransformationMatrix);
263 virtual void setClipping(
const unsigned int &flags);
264 virtual void setClipping(
const std::string &cameraName,
const unsigned int &flags);
275 #ifdef VISP_HAVE_OGRE 299 virtual void setLod(
const bool useLod,
const std::string &name =
"");
300 virtual void setLod(
const bool useLod,
const std::string &cameraName,
const std::string &name);
304 const std::string &name);
308 const std::string &name);
336 const bool firstCameraIsReference =
true);
342 const std::map<std::string, vpHomogeneousMatrix> &mapOfCameraPoses);
346 virtual void setReferenceCameraName(
const std::string &referenceCameraName);
348 virtual void setScales(
const std::vector<bool> &scales);
352 virtual void setUseEdgeTracking(
const std::string &name,
const bool &useEdgeTracking);
374 std::map<std::string, vpVelocityTwistMatrix> &mapOfVelocityTwist);
383 #endif //#if defined(VISP_BUILD_DEPRECATED_FUNCTIONS) 384 #endif //_vpMbEdgeMultiTracker_h_ virtual void setDisplayFeatures(const bool displayF)
std::string m_referenceCameraName
Name of the reference camera.
void getLline(std::list< vpMbtDistanceLine * > &linesList, const unsigned int level=0) const
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 unsigned int getClipping() const
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)
virtual void loadModel(const std::string &modelFile, const bool verbose=false, const vpHomogeneousMatrix &T=vpHomogeneousMatrix())
void getLcircle(std::list< vpMbtDistanceCircle * > &circlesList, const unsigned int level=0) const
Class to define colors available for display functionnalities.
vpColVector m_w_edgeMulti
Robust weights.
virtual vpColVector getRobustWeights() const
virtual void reInitModel(const vpImage< unsigned char > &I, const std::string &cad_name, const vpHomogeneousMatrix &cMo_, const bool verbose=false, const vpHomogeneousMatrix &T=vpHomogeneousMatrix())
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 unsigned int getNbPoints(const unsigned int level=0) const
virtual void computeVVSWeights()
virtual void setNearClippingDistance(const double &dist)
virtual void setOgreVisibilityTest(const bool &v)
virtual void setMinPolygonAreaThresh(const double minPolygonAreaThresh, const std::string &name="")
void getLcylinder(std::list< vpMbtDistanceCylinder * > &cylindersList, const unsigned int level=0) const
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 vpHomogeneousMatrix getPose() const
virtual void getCameraParameters(vpCameraParameters &camera) const
Generic class defining intrinsic camera parameters.
void initPyramid(const vpImage< unsigned char > &_I, std::vector< const vpImage< unsigned char > * > &_pyramid)
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)
virtual vpColVector getError() const
std::map< std::string, vpMbEdgeTracker * > m_mapOfEdgeTrackers
Map of Model-based edge trackers.
virtual void setNbRayCastingAttemptsForVisibility(const unsigned int &attempts)
virtual vpMe getMovingEdge() const
unsigned int getNumberOfCameras() const
virtual void setMinLineLengthThresh(const double minLineLengthThresh, const std::string &name="")
void computeProjectionError(const vpImage< unsigned char > &_I)
void setScales(const std::vector< bool > &_scales)
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 unsigned int getNbPolygon() 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()
virtual void initClick(const vpImage< unsigned char > &I, const std::string &initFile, const bool displayHelp=false, const vpHomogeneousMatrix &T=vpHomogeneousMatrix())
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.
virtual void setProjectionErrorComputation(const bool &flag)
virtual void setLod(const bool useLod, const std::string &name="")