Class AbstractBoofCVObjectTracker
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.objecttracker.AbstractObjectTracker
-
- adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
-
- adams.flow.transformer.objecttracker.AbstractBoofCVObjectTracker
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,ObjectTracker
,Serializable
- Direct Known Subclasses:
BoofCVCirculant
,BoofCVMeanShiftLikelihood
,BoofCVSparseFlow
,BoofCVTLD
public abstract class AbstractBoofCVObjectTracker extends AbstractSimpleReportBasedObjectTracker
Ancestor for BoofCV object trackers.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected adams.data.boofcv.BoofCVImageType
m_ImageType
the image type.protected boofcv.abst.tracker.TrackerObjectQuad
m_Tracker
the tracker.-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
m_Current, m_Init
-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
m_Initialized, m_LastLocations
-
-
Constructor Summary
Constructors Constructor Description AbstractBoofCVObjectTracker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected String
doInitTracking(adams.data.image.AbstractImageContainer cont, List<adams.core.base.QuadrilateralLocation> locations)
Performs the actual initialization of the tracking.protected List<adams.core.base.QuadrilateralLocation>
doTrackObjects(adams.data.image.AbstractImageContainer cont)
Performs the actual tracking of the object.adams.data.boofcv.BoofCVImageType
getImageType()
Returns the image type to use.String
imageTypeTipText()
Returns the tip text for this property.protected abstract boofcv.abst.tracker.TrackerObjectQuad
newTracker()
Instantiates a new tracker.void
setImageType(adams.data.boofcv.BoofCVImageType value)
Sets the image type to use.-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractSimpleReportBasedObjectTracker
currentTipText, getCurrent, getInit, getInitialLocations, getQuickInfo, initTipText, postProcessTrackedObjects, setCurrent, setInit
-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
checkInitTracking, checkTrackObjects, initTracking, isInitialized, reset, trackObjects
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classAbstractSimpleReportBasedObjectTracker
-
setImageType
public void setImageType(adams.data.boofcv.BoofCVImageType value)
Sets the image type to use.- Parameters:
value
- the type
-
getImageType
public adams.data.boofcv.BoofCVImageType getImageType()
Returns the image type to use.- Returns:
- the type
-
imageTypeTipText
public String imageTypeTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
newTracker
protected abstract boofcv.abst.tracker.TrackerObjectQuad newTracker()
Instantiates a new tracker.- Returns:
- the tracker
-
doInitTracking
protected String doInitTracking(adams.data.image.AbstractImageContainer cont, List<adams.core.base.QuadrilateralLocation> locations)
Performs the actual initialization of the tracking.- Specified by:
doInitTracking
in classAbstractObjectTracker
- Parameters:
cont
- the image to use for initializinglocations
- the initial location(s) of the object(s)- Returns:
- true if successfully initialized, error message otherwise
-
doTrackObjects
protected List<adams.core.base.QuadrilateralLocation> doTrackObjects(adams.data.image.AbstractImageContainer cont)
Performs the actual tracking of the object.- Specified by:
doTrackObjects
in classAbstractObjectTracker
- Parameters:
cont
- the current image- Returns:
- the location of the tracked image, null if failed to track
-
-