UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_template_tracking/usDenseTracker2D.h>
Public Member Functions | |
usDenseTracker2D () | |
~usDenseTracker2D () | |
vpImage< unsigned char > & | getRegion () |
vpRectOriented | getTarget () const |
vpImage< unsigned char > & | getTemplate () |
void | init (const vpImage< unsigned char > &I, const vpRectOriented &R) |
bool | isInit () |
void | update (const vpImage< unsigned char > &I) |
2D region tracker
Class to perform a 2D tracking of a region of interest.
See [5] for more details.
Definition at line 56 of file usDenseTracker2D.h.
usDenseTracker2D::usDenseTracker2D | ( | ) |
Constructor.
Definition at line 43 of file usDenseTracker2D.cpp.
usDenseTracker2D::~usDenseTracker2D | ( | ) |
Destructor.
Definition at line 48 of file usDenseTracker2D.cpp.
vpImage< unsigned char > & usDenseTracker2D::getRegion | ( | ) |
Definition at line 152 of file usDenseTracker2D.cpp.
vpRectOriented usDenseTracker2D::getTarget | ( | ) | const |
To call after update() at each new frame, to get the position of the ROI in the last acquired frame.
Definition at line 143 of file usDenseTracker2D.cpp.
vpImage< unsigned char > & usDenseTracker2D::getTemplate | ( | ) |
Definition at line 150 of file usDenseTracker2D.cpp.
void usDenseTracker2D::init | ( | const vpImage< unsigned char > & | I, |
const vpRectOriented & | R | ||
) |
Initialisation of the tracker : to call to set the region to track (R) in the image (I) before starting the tracking.
I | Image containing a region to track. |
R | Region of interest (in the image pxiel coordinates). |
Definition at line 56 of file usDenseTracker2D.cpp.
bool usDenseTracker2D::isInit | ( | ) |
Definition at line 154 of file usDenseTracker2D.cpp.
void usDenseTracker2D::update | ( | const vpImage< unsigned char > & | I | ) |
Tracking method, to call at every new frame to track.
I | The new image. |
Definition at line 96 of file usDenseTracker2D.cpp.