Class MeanShiftPeak_to_SearchLocalPeak<T extends ImageGray<T>>

java.lang.Object
boofcv.abst.feature.detect.peak.MeanShiftPeak_to_SearchLocalPeak<T>
All Implemented Interfaces:
SearchLocalPeak<T>

public class MeanShiftPeak_to_SearchLocalPeak<T extends ImageGray<T>> extends Object implements SearchLocalPeak<T>
Wrapper around MeanShiftPeak for SearchLocalPeak
  • Constructor Details

    • MeanShiftPeak_to_SearchLocalPeak

      public MeanShiftPeak_to_SearchLocalPeak(MeanShiftPeak<T> search, boolean positive)
  • Method Details

    • setImage

      public void setImage(T image)
      Description copied from interface: SearchLocalPeak
      Specifies the image which is to be searched
      Specified by:
      setImage in interface SearchLocalPeak<T extends ImageGray<T>>
      Parameters:
      image - input image
    • setSearchRadius

      public void setSearchRadius(int radius)
      Description copied from interface: SearchLocalPeak
      How far around the center it consider when searching for the peak
      Specified by:
      setSearchRadius in interface SearchLocalPeak<T extends ImageGray<T>>
      Parameters:
      radius - Search radius
    • search

      public void search(float x, float y)
      Description copied from interface: SearchLocalPeak
      Initial point for the search
      Specified by:
      search in interface SearchLocalPeak<T extends ImageGray<T>>
      Parameters:
      x - initial x-coordinate
      y - initial y-coordinate
    • getPeakX

      public float getPeakX()
      Description copied from interface: SearchLocalPeak
      Location of the found peak. x-coordinate
      Specified by:
      getPeakX in interface SearchLocalPeak<T extends ImageGray<T>>
      Returns:
      x-coordinate
    • getPeakY

      public float getPeakY()
      Description copied from interface: SearchLocalPeak
      Location of the found peak. y-coordinate
      Specified by:
      getPeakY in interface SearchLocalPeak<T extends ImageGray<T>>
      Returns:
      y-coordinate