Commit a9ccea8f authored by Kurnianggoro's avatar Kurnianggoro

added UML documentation for MultiTracker class

parent 8c3cdf8e
......@@ -221,5 +221,38 @@ TrackerSampler diagram
}
}
@enduml
MultiTracker diagram
======================
@startuml{tracking_uml_multiple.png}
package "MultiTracker"
package "Tracker"
MultiTracker -> Tracker: create
note top of Tracker: Several classes can be generated.
@enduml
@startuml{multi_tracker_uml.png}
package "MultiTracker package" #DDDDDD {
class MultiTracker{
MultiTracker(const String& trackerType = "" );
~MultiTracker();
+bool add( const Mat& image, const Rect2d& boundingBox );
+bool add( const String& trackerType, const Mat& image, const Rect2d& boundingBox );
+bool add(const String& trackerType, const Mat& image, std::vector<Rect2d> boundingBox);
+bool add(const Mat& image, std::vector<Rect2d> boundingBox);
+bool update( const Mat& image, std::vector<Rect2d> & boundingBox );
+std::vector<Rect2d> objects;
---
#std::vector< Ptr<Tracker> > trackerList;
#String defaultAlgorithm;
}
}
@enduml
......@@ -1272,7 +1272,7 @@ class CV_EXPORTS_W MultiTracker
* @param image input image
* @param boundingBox a rectangle represents ROI of the tracked object
*/
bool add( const Mat& image, const Rect2d& boundingBox );
bool add( const Mat& image, const Rect2d& boundingBox );
/**
* \brief Add a new object to be tracked.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment