Class TldAdjustRegion

java.lang.Object
boofcv.alg.tracker.tld.TldAdjustRegion

public class TldAdjustRegion extends Object
Adjusts the previous region using information from the region tracker.
  • Constructor Details

    • TldAdjustRegion

      public TldAdjustRegion(int numCycles)
      Parameters:
      numCycles - Number of iterations in robust motion estimation. Try 50.
  • Method Details

    • init

      public void init(int imageWidth, int imageHeight)
    • process

      public boolean process(DogArray<AssociatedPair> pairs, Rectangle2D_F64 targetRectangle)
      Adjusts target rectangle using track information
      Parameters:
      pairs - List of feature location in previous and current frame.
      targetRectangle - (Input) current location of rectangle. (output) adjusted location
      Returns:
      true if successful
    • adjustRectangle

      protected void adjustRectangle(Rectangle2D_F64 rect, ScaleTranslate2D motion)
      Estimate motion of points inside the rectangle and updates the rectangle using the found motion.