Class TldLearning<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.tracker.tld.TldLearning<T>

public class TldLearning<T extends ImageGray<T>> extends Object
Uses information from the user and from the tracker to update the positive and negative target model for both ferns and templates.
  • Constructor Details

  • Method Details

    • initialLearning

      public void initialLearning(Rectangle2D_F64 targetRegion, DogArray<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 region
      cascadeRegions - 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
    • learnAmbiguousNegative

      protected void learnAmbiguousNegative(Rectangle2D_F64 targetRegion)
      Mark regions which were local maximums and had high confidence as negative. These regions were candidates for the tracker but were not selected