Package boofcv.alg.tracker.tld
Class TldLearning<T extends ImageGray<T>>
java.lang.Object
boofcv.alg.tracker.tld.TldLearning<T>
Uses information from the user and from the tracker to update the positive and negative target model for both
ferns and templates.
-
Constructor Summary
ConstructorDescriptionTldLearning
(Random rand, ConfigTld config, TldTemplateMatching<T> template, TldVarianceFilter<T> variance, TldFernClassifier<T> fern, TldDetection<T> detection) Creates and configures learning -
Method Summary
Modifier and TypeMethodDescriptionvoid
initialLearning
(Rectangle2D_F64 targetRegion, DogArray<ImageRectangle> cascadeRegions) Select positive and negative examples based on the region the user's initially selected region.protected void
learnAmbiguousNegative
(Rectangle2D_F64 targetRegion) Mark regions which were local maximums and had high confidence as negative.void
updateLearning
(Rectangle2D_F64 targetRegion) Updates learning using the latest tracking results.
-
Constructor Details
-
TldLearning
public TldLearning(Random rand, ConfigTld config, TldTemplateMatching<T> template, TldVarianceFilter<T> variance, TldFernClassifier<T> fern, TldDetection<T> detection) Creates and configures learning
-
-
Method Details
-
initialLearning
Select positive and negative examples based on the region the user's initially selected region. The selected region is used as a positive example while all the other regions far away are used as negative examples.- Parameters:
targetRegion
- user selected regioncascadeRegions
- Set of regions used by the cascade detector
-
updateLearning
Updates learning using the latest tracking results.- Parameters:
targetRegion
- Region selected by the fused tracking
-
learnAmbiguousNegative
Mark regions which were local maximums and had high confidence as negative. These regions were candidates for the tracker but were not selected
-