Package boofcv.abst.tracker
Class Tld_to_TrackerObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>>
java.lang.Object
boofcv.abst.tracker.Tld_to_TrackerObjectQuad<T,D>
- All Implemented Interfaces:
TrackerObjectQuad<T>
public class Tld_to_TrackerObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>>
extends Object
implements TrackerObjectQuad<T>
Wrapper around
TldTracker
for TrackerObjectQuad
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns information on the type of image that it can process.TldTracker<T,
D> Provides access to the inner low level tracker.void
hint
(Quadrilateral_F64 hint) Provide a hint for where the tracked object is.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.
-
Constructor Details
-
Tld_to_TrackerObjectQuad
-
-
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
Description copied from interface:TrackerObjectQuad
Provide a hint for where the tracked object is. How and if this hint is used at all is implementation specific. This can be used add information from sensors such as gyros to the tracker. If this functionality isn't supported by the tracker then it will simply ignore the suggestion. It probably knows what's happening than you do.- 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
-
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.
-