OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 限定公開変数類 | 全メンバ一覧
cv::legacy::tracking::MultiTracker クラス

This class is used to track multiple objects using the specified tracker algorithm. [詳解]

#include <tracking_legacy.hpp>

cv::Algorithmを継承しています。

公開メンバ関数

CV_WRAP MultiTracker ()
 Constructor.
 
 ~MultiTracker () CV_OVERRIDE
 Destructor
 
CV_WRAP bool add (Ptr< cv::legacy::Tracker > newTracker, InputArray image, const Rect2d &boundingBox)
 Add a new object to be tracked. [詳解]
 
bool add (std::vector< Ptr< legacy::Tracker > > newTrackers, InputArray image, std::vector< Rect2d > boundingBox)
 Add a set of objects to be tracked. [詳解]
 
bool update (InputArray image)
 Update the current tracking status. The result will be saved in the internal storage. [詳解]
 
CV_WRAP bool update (InputArray image, CV_OUT std::vector< Rect2d > &boundingBox)
 Update the current tracking status. [詳解]
 
CV_WRAP const std::vector< Rect2d > & getObjects () const
 Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm
 
- 基底クラス cv::Algorithm に属する継承公開メンバ関数
virtual CV_WRAP void clear ()
 Clears the algorithm state [詳解]
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage [詳解]
 
CV_WRAP void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
 
virtual CV_WRAP void read (const FileNode &fn)
 Reads algorithm parameters from a file storage [詳解]
 
virtual CV_WRAP bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解]
 
virtual CV_WRAP void save (const String &filename) const
 
virtual CV_WRAP String getDefaultName () const
 

静的公開メンバ関数

static CV_WRAP Ptr< MultiTrackercreate ()
 Returns a pointer to a new instance of MultiTracker
 
- 基底クラス cv::Algorithm に属する継承静的公開メンバ関数
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node [詳解]
 
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file [詳解]
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String [詳解]
 

限定公開変数類

std::vector< Ptr< Tracker > > trackerList
 < storage for the tracker algorithms. [詳解]
 
std::vector< Rect2dobjects
 

その他の継承メンバ

- 基底クラス cv::Algorithm に属する継承限定公開メンバ関数
void writeFormat (FileStorage &fs) const
 

詳解

This class is used to track multiple objects using the specified tracker algorithm.

The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.

関数詳解

◆ add() [1/2]

CV_WRAP bool cv::legacy::tracking::MultiTracker::add ( Ptr< cv::legacy::Tracker newTracker,
InputArray  image,
const Rect2d boundingBox 
)

Add a new object to be tracked.

引数
newTrackertracking algorithm to be used
imageinput image
boundingBoxa rectangle represents ROI of the tracked object

◆ add() [2/2]

bool cv::legacy::tracking::MultiTracker::add ( std::vector< Ptr< legacy::Tracker > >  newTrackers,
InputArray  image,
std::vector< Rect2d boundingBox 
)

Add a set of objects to be tracked.

引数
newTrackerslist of tracking algorithms to be used
imageinput image
boundingBoxlist of the tracked objects

◆ update() [1/2]

bool cv::legacy::tracking::MultiTracker::update ( InputArray  image)

Update the current tracking status. The result will be saved in the internal storage.

引数
imageinput image

◆ update() [2/2]

CV_WRAP bool cv::legacy::tracking::MultiTracker::update ( InputArray  image,
CV_OUT std::vector< Rect2d > &  boundingBox 
)

Update the current tracking status.

引数
imageinput image
boundingBoxthe tracking result, represent a list of ROIs of the tracked objects.

メンバ詳解

◆ trackerList

std::vector< Ptr<Tracker> > cv::legacy::tracking::MultiTracker::trackerList
protected

< storage for the tracker algorithms.

storage for the tracked objects, each object corresponds to one tracker algorithm.


このクラス詳解は次のファイルから抽出されました: