public class TldRegionTracker<I extends boofcv.struct.image.ImageGray<I>,D extends boofcv.struct.image.ImageGray<D>>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TldRegionTracker.Track |
| Constructor and Description |
|---|
TldRegionTracker(int gridWidth,
int featureRadius,
double maxErrorFB,
boofcv.abst.filter.derivative.ImageGradient<I,D> gradient,
boofcv.alg.tracker.klt.PyramidKltTracker<I,D> tracker,
java.lang.Class<I> imageType,
java.lang.Class<D> derivType)
Configures tracker
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
declareDataStructures(boofcv.struct.pyramid.PyramidDiscrete<I> image)
Declares internal data structures based on the input image pyramid
|
org.ddogleg.struct.FastQueue<boofcv.struct.geo.AssociatedPair> |
getPairs() |
TldRegionTracker.Track[] |
getTracks() |
void |
initialize(boofcv.struct.pyramid.PyramidDiscrete<I> image)
Call for the first image being tracked
|
boolean |
process(boofcv.struct.pyramid.ImagePyramid<I> image,
georegression.struct.shapes.Rectangle2D_F64 targetRectangle)
Creates several tracks inside the target rectangle and compuets their motion
|
protected void |
spawnGrid(georegression.struct.shapes.Rectangle2D_F64 prevRect)
Spawn KLT tracks at evenly spaced points inside a grid
|
protected boolean |
trackFeature()
Tracks KLT features in forward/reverse direction and the tracking error metrics
|
protected void |
updateCurrent(boofcv.struct.pyramid.ImagePyramid<I> image)
Computes the gradient and changes the reference to the current pyramid
|
public TldRegionTracker(int gridWidth,
int featureRadius,
double maxErrorFB,
boofcv.abst.filter.derivative.ImageGradient<I,D> gradient,
boofcv.alg.tracker.klt.PyramidKltTracker<I,D> tracker,
java.lang.Class<I> imageType,
java.lang.Class<D> derivType)
gridWidth - Number of tracks spawned along a side in the grid. Try 10featureRadius - Radius of KLT features being tracked. Try 5maxErrorFB - Maximum allowed forwards-backwards errorgradient - Computes image gradient used by KLT trackertracker - Feature trackerimageType - Type of input imagederivType - Type of derivative imagepublic void initialize(boofcv.struct.pyramid.PyramidDiscrete<I> image)
image - Most recent video image.protected void declareDataStructures(boofcv.struct.pyramid.PyramidDiscrete<I> image)
public boolean process(boofcv.struct.pyramid.ImagePyramid<I> image, georegression.struct.shapes.Rectangle2D_F64 targetRectangle)
image - Most recent video image.targetRectangle - Location of target in previous frame. Not modified.protected void updateCurrent(boofcv.struct.pyramid.ImagePyramid<I> image)
protected boolean trackFeature()
protected void spawnGrid(georegression.struct.shapes.Rectangle2D_F64 prevRect)
public org.ddogleg.struct.FastQueue<boofcv.struct.geo.AssociatedPair> getPairs()
public TldRegionTracker.Track[] getTracks()