public interface TrackerObjectQuad<T extends boofcv.struct.image.ImageBase<T>>
High level interface for an object tracker where the object being tracked is specified using a quadrilateral. The input is assumed to be a sequence of consecutive video images. When initialize is called the tracker is put into its initial state ago and its past history is discarded. The vertices in the quadrilateral are specified in a clock-wise direction (a,b,c,d).
The motion/distortion model used by the trackers will vary. Typical models are (scale,translation), (scale,translation,rotation), and affine. For maximum abstraction, access to the underlying model is not provided through this interface. To access that model invoke the lower level algorithm directly.
| Modifier and Type | Method and Description |
|---|---|
boofcv.struct.image.ImageType<T> |
getImageType()
Returns information on the type of image that it can process.
|
<T> T |
getLowLevelTracker()
Provides access to the inner low level tracker.
|
void |
hint(georegression.struct.shapes.Quadrilateral_F64 hint)
Provide a hint for where the tracked object is.
|
boolean |
initialize(T image,
georegression.struct.shapes.Quadrilateral_F64 location)
Initializes tracking by specifying the object's location using a quadrilateral.
|
boolean |
process(T image,
georegression.struct.shapes.Quadrilateral_F64 results)
Updates the tracks location using the latest video frame.
|
boolean initialize(T image, georegression.struct.shapes.Quadrilateral_F64 location)
image - Initial image in the sequencelocation - Initial location of the object being trackedvoid hint(georegression.struct.shapes.Quadrilateral_F64 hint)
hint - (Input) estimated location of the object.boolean process(T image, georegression.struct.shapes.Quadrilateral_F64 results)
initialize(boofcv.struct.image.ImageBase, Quadrilateral_F64)
must be called once before this function can be called.image - (Input) The next image in the video sequence.results - (Output) Storage for new location if tracking is successful.boofcv.struct.image.ImageType<T> getImageType()
<T> T getLowLevelTracker()