public class TldLearning<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
| 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
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialLearning(georegression.struct.shapes.Rectangle2D_F64 targetRegion,
org.ddogleg.struct.FastQueue<boofcv.struct.ImageRectangle> cascadeRegions)
Select positive and negative examples based on the region the user's initially selected region.
|
protected void |
learnAmbiguousNegative(georegression.struct.shapes.Rectangle2D_F64 targetRegion)
Mark regions which were local maximums and had high confidence as negative.
|
void |
updateLearning(georegression.struct.shapes.Rectangle2D_F64 targetRegion)
Updates learning using the latest tracking results.
|
public TldLearning(java.util.Random rand,
TldParameters config,
TldTemplateMatching<T> template,
TldVarianceFilter<T> variance,
TldFernClassifier<T> fern,
TldDetection<T> detection)
public void initialLearning(georegression.struct.shapes.Rectangle2D_F64 targetRegion,
org.ddogleg.struct.FastQueue<boofcv.struct.ImageRectangle> cascadeRegions)
targetRegion - user selected regioncascadeRegions - Set of regions used by the cascade detectorpublic void updateLearning(georegression.struct.shapes.Rectangle2D_F64 targetRegion)
targetRegion - Region selected by the fused trackingprotected void learnAmbiguousNegative(georegression.struct.shapes.Rectangle2D_F64 targetRegion)