boofcv.alg.tracker.tld
Class TldLearning<T extends ImageGray>
- java.lang.Object
-
- boofcv.alg.tracker.tld.TldLearning<T>
-
public class TldLearning<T extends ImageGray> extends java.lang.ObjectUses information from the user and from the tracker to update the positive and negative target model for both ferns and templates.
-
-
Constructor Summary
Constructors Constructor and Description TldLearning(java.util.Random rand, TldParameters config, TldTemplateMatching<T> template, TldVarianceFilter<T> variance, TldFernClassifier<T> fern, TldDetection<T> detection)Creates and configures learning
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinitialLearning(Rectangle2D_F64 targetRegion, FastQueue<ImageRectangle> cascadeRegions)Select positive and negative examples based on the region the user's initially selected region.voidupdateLearning(Rectangle2D_F64 targetRegion)Updates learning using the latest tracking results.
-
-
-
Constructor Detail
-
TldLearning
public TldLearning(java.util.Random rand, TldParameters config, TldTemplateMatching<T> template, TldVarianceFilter<T> variance, TldFernClassifier<T> fern, TldDetection<T> detection)Creates and configures learning
-
-
Method Detail
-
initialLearning
public void initialLearning(Rectangle2D_F64 targetRegion, FastQueue<ImageRectangle> cascadeRegions)
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
public void updateLearning(Rectangle2D_F64 targetRegion)
Updates learning using the latest tracking results.- Parameters:
targetRegion- Region selected by the fused tracking
-
-
DataMelt 3.0 © DataMelt by jWork.ORG