Class Tld_to_TrackerObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>>

All Implemented Interfaces:

public class Tld_to_TrackerObjectQuad<T extends ImageGray<T>,D extends ImageGray<D>> extends Object implements TrackerObjectQuad<T>
Wrapper around TldTracker for TrackerObjectQuad.
  • Constructor Details

    • Tld_to_TrackerObjectQuad

      public Tld_to_TrackerObjectQuad(TldTracker<T,D> tracker, Class<T> imageType)
  • Method Details

    • initialize

      public boolean initialize(T image, Quadrilateral_F64 location)
      Description copied from interface: TrackerObjectQuad
      Initializes 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:
      initialize in interface TrackerObjectQuad<T extends ImageGray<T>>
      image - Initial image in the sequence
      location - Initial location of the object being tracked
      true if successful and false if not.
    • hint

      public void hint(Quadrilateral_F64 hint)
      Description copied from interface: TrackerObjectQuad
      Provide a hint for where the tracked object is. How and if this hint is used at all is implementation specific. This can be used add information from sensors such as gyros to the tracker. If this functionality isn't supported by the tracker then it will simply ignore the suggestion. It probably knows what's happening than you do.
      Specified by:
      hint in interface TrackerObjectQuad<T extends ImageGray<T>>
      hint - (Input) estimated location of the object.
    • process

      public boolean process(T image, Quadrilateral_F64 results)
      Description copied from interface: TrackerObjectQuad
      Updates 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:
      process in interface TrackerObjectQuad<T extends ImageGray<T>>
      image - (Input) The next image in the video sequence.
      results - (Output) Storage for new location if tracking is successful.
      true if the target was found and 'location' updated.
    • getImageType

      public ImageType<T> getImageType()
      Description copied from interface: TrackerObjectQuad
      Returns information on the type of image that it can process.
      Specified by:
      getImageType in interface TrackerObjectQuad<T extends ImageGray<T>>
      Image type
    • getLowLevelTracker

      public TldTracker<T,D> getLowLevelTracker()
      Description copied from interface: TrackerObjectQuad
      Provides access to the inner low level tracker. You need to be familiar with the tracker's source code to make sure of this function. Returns null if implementing it doesn't make sense.
      Specified by:
      getLowLevelTracker in interface TrackerObjectQuad<T extends ImageGray<T>>
      Tracking algorithm.