Class 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 Detail

      • m_Trackers

        protected ObjectTracker[] m_Trackers
        the trackers to use.
    • Constructor Detail

      • MultiObjectTracker

        public MultiObjectTracker()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.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 interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.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 class AbstractObjectTracker
        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 class AbstractObjectTracker
        Parameters:
        cont - the image to use for initializing
        locations - 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 class AbstractObjectTracker
        Parameters:
        cont - the current image
        Returns:
        the location(s) of the tracked object(s), null if failed to track