Package boofcv.alg.tracker.tld
Class TldAdjustRegion
java.lang.Object
boofcv.alg.tracker.tld.TldAdjustRegion
Adjusts the previous region using information from the region tracker.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
adjustRectangle
(Rectangle2D_F64 rect, ScaleTranslate2D motion) Estimate motion of points inside the rectangle and updates the rectangle using the found motion.void
init
(int imageWidth, int imageHeight) boolean
process
(DogArray<AssociatedPair> pairs, Rectangle2D_F64 targetRectangle) Adjusts target rectangle using track information
-
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
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
Estimate motion of points inside the rectangle and updates the rectangle using the found motion.
-