Documentation of 'boofcv.alg.feature.detect.peak.MeanShiftPeak' Java class
MeanShiftPeak
boofcv.alg.feature.detect.peak

Class MeanShiftPeak<T extends ImageGray>



  • public class MeanShiftPeak<T extends ImageGray>
    extends java.lang.Object
    Simple implementations of mean-shift intended to finding local peaks inside an intensity image. Implementations differ in how they weigh each point. In each iterations the mean of the square sample region centered around the target is computed and the center shifted so that location. It stops when change is less than a delta or the maximum number of iterations has been exceeded. If the image border is hit while searching the square will be push back until it is entirely contained inside the image.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MeanShiftPeak(int maxIterations, float convergenceTol, WeightPixel_F32 weights, java.lang.Class<T> imageType)
      Configures search.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float getPeakX() 
      float getPeakY() 
      void search(float cx, float cy)
      Performs a mean-shift search center at the specified coordinates
      void setImage(T image)
      Specifies the input image
      void setRadius(int radius) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MeanShiftPeak

        public MeanShiftPeak(int maxIterations,
                             float convergenceTol,
                             WeightPixel_F32 weights,
                             java.lang.Class<T> imageType)
        Configures search.
        Parameters:
        maxIterations - Maximum number of iterations. Try 10
        convergenceTol - Convergence tolerance. Try 1e-3
        weights - Used to compute the weight each pixel contributes to the mean. Try a uniform distribution.
    • Method Detail

      • setImage

        public void setImage(T image)
        Specifies the input image
        Parameters:
        image - input image
      • setRadius

        public void setRadius(int radius)
      • search

        public void search(float cx,
                           float cy)
        Performs a mean-shift search center at the specified coordinates
      • getPeakX

        public float getPeakX()
      • getPeakY

        public float getPeakY()

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.