Class MultiObjectTracker
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.objecttracker.AbstractObjectTracker
-
- adams.flow.transformer.objecttracker.MultiObjectTracker
-
- 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
public class MultiObjectTracker extends AbstractObjectTracker
Applies all the specified trackers to the image container.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-tracker <adams.flow.transformer.objecttracker.ObjectTracker> [-tracker ...] (property: trackers) The trackers to use. default:
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectTracker[]
m_Trackers
the trackers to use.-
Fields inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
m_Initialized, m_LastLocations
-
-
Constructor Summary
Constructors Constructor Description MultiObjectTracker()
-
Method Summary
All Methods Instance 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.protected List<adams.core.base.QuadrilateralLocation>
getInitialLocations(adams.data.image.AbstractImageContainer cont)
Returns the initial object locations.ObjectTracker[]
getTrackers()
Returns the trackers to use.String
globalInfo()
Returns a string describing the object.void
setTrackers(ObjectTracker[] value)
Sets the trackers to use.String
trackersTipText()
Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.objecttracker.AbstractObjectTracker
checkInitTracking, checkTrackObjects, getQuickInfo, initTracking, isInitialized, postProcessTrackedObjects, reset, trackObjects
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_Trackers
protected ObjectTracker[] m_Trackers
the trackers to use.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceadams.core.option.OptionHandler
- Overrides:
defineOptions
in classadams.core.option.AbstractOptionHandler
-
setTrackers
public void setTrackers(ObjectTracker[] value)
Sets the trackers to use.- Parameters:
value
- the trackers
-
getTrackers
public ObjectTracker[] getTrackers()
Returns the trackers to use.- Returns:
- the trackers
-
trackersTipText
public String trackersTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getInitialLocations
protected List<adams.core.base.QuadrilateralLocation> getInitialLocations(adams.data.image.AbstractImageContainer cont)
Returns the initial object locations.- Specified by:
getInitialLocations
in classAbstractObjectTracker
- Parameters:
cont
- the current image container- Returns:
- returns a bogus list
-
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(s) of the tracked object(s), null if failed to track
-
-