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
ConstructorsConstructorDescriptionSfot_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.voidhint(Quadrilateral_F64 hint) Doesn't support hint because it does a forwards and backwards track.booleaninitialize(T image, Quadrilateral_F64 location) Initializes tracking by specifying the object's location using a quadrilateral.booleanprocess(T image, Quadrilateral_F64 results) Updates the tracks location using the latest video frame.static voidstatic voidstatic voidstatic void
-
Constructor Details
-
Sfot_to_TrackObjectQuad
-
-
Method Details
-
initialize
Description copied from interface:TrackerObjectQuadInitializes 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:
initializein 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:
hintin interfaceTrackerObjectQuad<T extends ImageGray<T>>- Parameters:
hint- (Input) estimated location of the object.
-
process
Description copied from interface:TrackerObjectQuadUpdates 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:
processin 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:TrackerObjectQuadReturns information on the type of image that it can process.- Specified by:
getImageTypein interfaceTrackerObjectQuad<T extends ImageGray<T>>- Returns:
- Image type
-
quadToRectRot
-
quadToRectRot
-
rectRotToQuad
-
rectRotToQuad
-
getLowLevelTracker
Description copied from interface:TrackerObjectQuadProvides 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:
getLowLevelTrackerin interfaceTrackerObjectQuad<T extends ImageGray<T>>- Returns:
- Tracking algorithm.
-