36#include <visp3/dnn_tracker/vpMegaPoseTracker.h>
42 std::vector<vpRect> bbs = {bb};
43 m_poseEstimate = m_megapose->estimatePoses(I, {m_objectLabel},
nullptr, 0.0, &bbs,
nullptr)[0];
45 return m_poseEstimate;
51 std::vector<vpHomogeneousMatrix> poses = { cTo };
52 m_poseEstimate = m_megapose->estimatePoses(I, { m_objectLabel },
nullptr, 0.0,
nullptr, &poses)[0];
54 return m_poseEstimate;
64 std::vector<vpHomogeneousMatrix> poses = {m_poseEstimate.
cTo};
65 m_poseEstimate = m_megapose->estimatePoses(I, {m_objectLabel},
nullptr, 0.0,
nullptr, &poses, m_refinerIterations)[0];
66 return m_poseEstimate;
72 m_poseEstimate.
cTo = cTo;
error that can be emitted by ViSP classes.
@ notInitialized
Used to indicate that a parameter is not initialized.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Definition of the vpImage class member functions.
std::future< vpMegaPoseEstimate > track(const vpImage< vpRGBa > &I)
Track the object in the image. Requires the tracker to be initialized by calling init.
std::future< vpMegaPoseEstimate > init(const vpImage< vpRGBa > &I, const vpRect &bb)
Initialize tracking. Performs a full object pose estimation with megapose.
void updatePose(const vpHomogeneousMatrix &cTo)
Update the current pose estimate with a new one, provided by an external source. No operation (such a...
Defines a rectangle in the plane.