Package boofcv.abst.tracker
Class Comaniciu2003_to_TrackerObjectQuad<T extends ImageBase<T>>
java.lang.Object
boofcv.abst.tracker.Comaniciu2003_to_TrackerObjectQuad<T>
- All Implemented Interfaces:
TrackerObjectQuad<T>
public class Comaniciu2003_to_TrackerObjectQuad<T extends ImageBase<T>>
extends Object
implements TrackerObjectQuad<T>
Wrapper around
TrackerMeanShiftComaniciu2003
for TrackerObjectQuad
-
Constructor Summary
ConstructorDescription -
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) 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
-
Comaniciu2003_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 ImageBase<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 ImageBase<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 ImageBase<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 ImageBase<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 ImageBase<T>>
- Returns:
- Tracking algorithm.
-