Package boofcv.abst.tracker
Class Sfot_to_TrackObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>>
java.lang.Object
boofcv.abst.tracker.Sfot_to_TrackObjectQuad<T,D>
- All Implemented Interfaces:
TrackerObjectQuad<T>
public class Sfot_to_TrackObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>>
extends Object
implements TrackerObjectQuad<T>
Wrapper around
SparseFlowObjectTracker
for TrackerObjectQuad
.-
Constructor Summary
ConstructorDescriptionSfot_to_TrackObjectQuad
(SparseFlowObjectTracker<T, D> alg, Class<T> imageType) -
Method Summary
Modifier and TypeMethodDescriptionReturns information on the type of image that it can process.Provides access to the inner low level tracker.void
hint
(Quadrilateral_F64 hint) Doesn't support hint because it does a forwards and backwards track.boolean
initialize
(T image, Quadrilateral_F64 location) Initializes tracking by specifying the object's location using a quadrilateral.boolean
process
(T image, Quadrilateral_F64 results) Updates the tracks location using the latest video frame.static void
static void
static void
static void
-
Constructor Details
-
Sfot_to_TrackObjectQuad
-
-
Method Details
-
initialize
Description copied from interface:TrackerObjectQuad
Initializes tracking by specifying the object's location using a quadrilateral. Some implementations can fail if there is insufficient visual information for it to track. All previous tracking information is discarded when this function is called.- Specified by:
initialize
in interfaceTrackerObjectQuad<T extends ImageGray<T>>
- Parameters:
image
- Initial image in the sequencelocation
- Initial location of the object being tracked- Returns:
- true if successful and false if not.
-
hint
Doesn't support hint because it does a forwards and backwards track. Adding hint isn't trivial. To add it a forward/reverse transform needs to be added- Specified by:
hint
in interfaceTrackerObjectQuad<T extends ImageGray<T>>
- Parameters:
hint
- (Input) estimated location of the object.
-
process
Description copied from interface:TrackerObjectQuad
Updates the tracks location using the latest video frame.TrackerObjectQuad.initialize(boofcv.struct.image.ImageBase, Quadrilateral_F64)
must be called once before this function can be called.- Specified by:
process
in interfaceTrackerObjectQuad<T extends ImageGray<T>>
- Parameters:
image
- (Input) The next image in the video sequence.results
- (Output) Storage for new location if tracking is successful.- Returns:
- true if the target was found and 'location' updated.
-
getImageType
Description copied from interface:TrackerObjectQuad
Returns information on the type of image that it can process.- Specified by:
getImageType
in interfaceTrackerObjectQuad<T extends ImageGray<T>>
- Returns:
- Image type
-
quadToRectRot
-
quadToRectRot
-
rectRotToQuad
-
rectRotToQuad
-
getLowLevelTracker
Description copied from interface:TrackerObjectQuad
Provides access to the inner low level tracker. You need to be familiar with the tracker's source code to make sure of this function. Returns null if implementing it doesn't make sense.- Specified by:
getLowLevelTracker
in interfaceTrackerObjectQuad<T extends ImageGray<T>>
- Returns:
- Tracking algorithm.
-