boofcv.abst.tracker
Class Msl_to_TrackerObjectQuad<T extends ImageBase>
- java.lang.Object
-
- boofcv.abst.tracker.Msl_to_TrackerObjectQuad<T>
-
- All Implemented Interfaces:
- TrackerObjectQuad<T>
public class Msl_to_TrackerObjectQuad<T extends ImageBase> extends java.lang.Object implements TrackerObjectQuad<T>
Wrapper aroundTrackerMeanShiftLikelihoodforTrackerObjectQuad
-
-
Constructor Summary
Constructors Constructor and Description Msl_to_TrackerObjectQuad(TrackerMeanShiftLikelihood<T> tracker, PixelLikelihood<T> likelihood, ImageType<T> imageType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ImageType<T>getImageType()Returns information on the type of image that it can process.booleaninitialize(T image, Quadrilateral_F64 location)Initializes tracking by specifying the object's location using a quadrilateral.booleanprocess(T image, Quadrilateral_F64 location)Updates the tracks location using the latest video frame.
-
-
-
Constructor Detail
-
Msl_to_TrackerObjectQuad
public Msl_to_TrackerObjectQuad(TrackerMeanShiftLikelihood<T> tracker, PixelLikelihood<T> likelihood, ImageType<T> imageType)
-
-
Method Detail
-
initialize
public boolean initialize(T image, Quadrilateral_F64 location)
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 ImageBase>- Parameters:
image- Initial image in the sequencelocation- Initial location of the object being tracked- Returns:
- true if successful and false if not.
-
process
public boolean process(T image, Quadrilateral_F64 location)
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 ImageBase>- Parameters:
image- The next image in the video sequence.location- The new location of the object being tracked.- Returns:
- true if the target was found and 'location' updated.
-
getImageType
public ImageType<T> getImageType()
Description copied from interface:TrackerObjectQuadReturns information on the type of image that it can process.- Specified by:
getImageTypein interfaceTrackerObjectQuad<T extends ImageBase>- Returns:
- Image type
-
-
DataMelt 3.0 © DataMelt by jWork.ORG