Merge branch 'master' of https://github.com/Itseez/opencv_contrib
commit
b5b7a7a700
19 changed files with 270 additions and 176 deletions
@ -1,43 +0,0 @@ |
||||
@startuml |
||||
package "Tracker package" #DDDDDD { |
||||
|
||||
|
||||
|
||||
|
||||
class Algorithm { |
||||
} |
||||
class Tracker{ |
||||
Ptr<TrackerFeatureSet> featureSet; |
||||
Ptr<TrackerSampler> sampler; |
||||
Ptr<TrackerModel> model; |
||||
--- |
||||
+static Ptr<Tracker> create(const string& trackerType); |
||||
+bool init(const Mat& image, const Rect& boundingBox); |
||||
+bool update(const Mat& image, Rect& boundingBox); |
||||
} |
||||
class Tracker |
||||
note right: Tracker is the general interface for each specialized trackers |
||||
class TrackerMIL{ |
||||
+Params |
||||
--- |
||||
TrackerMIL(TrackerMIL::Params parameters); |
||||
+bool init(const Mat& image, const Rect& boundingBox); |
||||
+bool update(const Mat& image, Rect& boundingBox); |
||||
} |
||||
class TrackerBoosting{ |
||||
+Params |
||||
--- |
||||
TrackerBoosting(TrackerBoosting::Params parameters); |
||||
+bool init(const Mat& image, const Rect& boundingBox); |
||||
+bool update(const Mat& image, Rect& boundingBox); |
||||
} |
||||
Algorithm <|-- Tracker : virtual inheritance |
||||
Tracker <|-- TrackerMIL |
||||
Tracker <|-- TrackerBoosting |
||||
|
||||
note "Single instance of the Tracker" as N1 |
||||
TrackerBoosting .. N1 |
||||
TrackerMIL .. N1 |
||||
} |
||||
|
||||
@enduml |
@ -1,19 +0,0 @@ |
||||
@startuml |
||||
package "Tracker" #DDDDDD { |
||||
|
||||
} |
||||
package "TrackerFeature" #DDDDDD { |
||||
|
||||
} |
||||
package "TrackerSampler" #DDDDDD { |
||||
|
||||
} |
||||
package "TrackerModel" #DDDDDD { |
||||
|
||||
} |
||||
Tracker -> TrackerModel: create |
||||
Tracker -> TrackerSampler: create |
||||
Tracker -> TrackerFeature: create |
||||
|
||||
|
||||
@enduml |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 8.5 KiB |
@ -0,0 +1,40 @@ |
||||
Tracker diagram |
||||
=============== |
||||
|
||||
.. uml:: |
||||
|
||||
..@startuml |
||||
package "Tracker package" #DDDDDD { |
||||
|
||||
|
||||
class Algorithm |
||||
|
||||
class Tracker{ |
||||
Ptr<TrackerFeatureSet> featureSet; |
||||
Ptr<TrackerSampler> sampler; |
||||
Ptr<TrackerModel> model; |
||||
--- |
||||
+static Ptr<Tracker> create(const string& trackerType); |
||||
+bool init(const Mat& image, const Rect& boundingBox); |
||||
+bool update(const Mat& image, Rect& boundingBox); |
||||
} |
||||
class Tracker |
||||
note right: Tracker is the general interface for each specialized trackers |
||||
class TrackerMIL{ |
||||
+static Ptr<TrackerMIL> createTracker(const TrackerMIL::Params ¶meters); |
||||
+virtual ~TrackerMIL(); |
||||
} |
||||
class TrackerBoosting{ |
||||
+static Ptr<TrackerBoosting> createTracker(const TrackerBoosting::Params ¶meters); |
||||
+virtual ~TrackerBoosting(); |
||||
} |
||||
Algorithm <|-- Tracker : virtual inheritance |
||||
Tracker <|-- TrackerMIL |
||||
Tracker <|-- TrackerBoosting |
||||
|
||||
note "Single instance of the Tracker" as N1 |
||||
TrackerBoosting .. N1 |
||||
TrackerMIL .. N1 |
||||
} |
||||
|
||||
..@enduml |
@ -0,0 +1,15 @@ |
||||
General diagram |
||||
=============== |
||||
|
||||
.. uml:: |
||||
|
||||
..@startuml |
||||
package "Tracker" |
||||
package "TrackerFeature" |
||||
package "TrackerSampler" |
||||
package "TrackerModel" |
||||
|
||||
Tracker -> TrackerModel: create |
||||
Tracker -> TrackerSampler: create |
||||
Tracker -> TrackerFeature: create |
||||
..@enduml |
Loading…
Reference in new issue