Class AbstractBoofCVObjectTracker

    • Field Detail

      • m_ImageType

        protected adams.data.boofcv.BoofCVImageType m_ImageType
        the image type.
      • m_Tracker

        protected boofcv.abst.tracker.TrackerObjectQuad m_Tracker
        the tracker.
    • Constructor Detail

      • AbstractBoofCVObjectTracker

        public AbstractBoofCVObjectTracker()
    • Method Detail

      • 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 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 of the tracked image, null if failed to track