public class SparseFlowObjectTracker<Image extends boofcv.struct.image.ImageGray<Image>,Derivative extends boofcv.struct.image.ImageGray<Derivative>>
extends java.lang.Object
LeastMedianOfSquares and a translation + rotation model. Drift is a problem
since motion is estimated relative to the previous frame and it will eventually drift away from the original target.
When it works well it is very smooth and can handle partially obscured objects. Can't recover after the target
has been lost. Runs very fast.| Constructor and Description |
|---|
SparseFlowObjectTracker(SfotConfig config,
java.lang.Class<Image> imageType,
java.lang.Class<Derivative> derivType,
boofcv.abst.filter.derivative.ImageGradient<Image,Derivative> gradient) |
| Modifier and Type | Method and Description |
|---|---|
SfotConfig |
getConfig() |
void |
init(Image input,
boofcv.struct.RectangleRotate_F64 region) |
boolean |
isTrackLost() |
boolean |
update(Image input,
boofcv.struct.RectangleRotate_F64 output)
Given the input image compute the new location of the target region and store the results in output.
|
public SparseFlowObjectTracker(SfotConfig config, java.lang.Class<Image> imageType, java.lang.Class<Derivative> derivType, boofcv.abst.filter.derivative.ImageGradient<Image,Derivative> gradient)
public void init(Image input, boofcv.struct.RectangleRotate_F64 region)
public boolean update(Image input, boofcv.struct.RectangleRotate_F64 output)
input - next image in the sequence.output - Storage for the output.public boolean isTrackLost()
public SfotConfig getConfig()