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)
 

Detailed Description

2D region tracker

Class to perform a 2D tracking of a region of interest.

See [5] for more details.

Examples
tutorial-servo-target-confidence.cpp, tutorial-servo-target.cpp, and tutorial-ultrasonix-servo-target-confidence.cpp.

Definition at line 56 of file usDenseTracker2D.h.

Constructor & Destructor Documentation

◆ usDenseTracker2D()

usDenseTracker2D::usDenseTracker2D ( )

Constructor.

Definition at line 43 of file usDenseTracker2D.cpp.

◆ ~usDenseTracker2D()

usDenseTracker2D::~usDenseTracker2D ( )

Destructor.

Definition at line 48 of file usDenseTracker2D.cpp.

Member Function Documentation

◆ getRegion()

vpImage< unsigned char > & usDenseTracker2D::getRegion ( )

Definition at line 152 of file usDenseTracker2D.cpp.

◆ getTarget()

vpRectOriented usDenseTracker2D::getTarget ( ) const

To call after update() at each new frame, to get the position of the ROI in the last acquired frame.

Returns
The rectangle pixel coordinates in the new frame.
Examples
tutorial-servo-target-confidence.cpp, tutorial-servo-target.cpp, and tutorial-ultrasonix-servo-target-confidence.cpp.

Definition at line 143 of file usDenseTracker2D.cpp.

◆ getTemplate()

vpImage< unsigned char > & usDenseTracker2D::getTemplate ( )

Definition at line 150 of file usDenseTracker2D.cpp.

◆ init()

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.

Parameters
IImage containing a region to track.
RRegion of interest (in the image pxiel coordinates).
Examples
tutorial-servo-target-confidence.cpp, tutorial-servo-target.cpp, and tutorial-ultrasonix-servo-target-confidence.cpp.

Definition at line 56 of file usDenseTracker2D.cpp.

◆ isInit()

bool usDenseTracker2D::isInit ( )

Definition at line 154 of file usDenseTracker2D.cpp.

◆ update()

void usDenseTracker2D::update ( const vpImage< unsigned char > &  I)

Tracking method, to call at every new frame to track.

Parameters
IThe new image.
Examples
tutorial-servo-target-confidence.cpp, tutorial-servo-target.cpp, and tutorial-ultrasonix-servo-target-confidence.cpp.

Definition at line 96 of file usDenseTracker2D.cpp.