Class WrapperNonMaximumBlock

java.lang.Object
boofcv.abst.feature.detect.extract.WrapperNonMaximumBlock
All Implemented Interfaces:
NonMaxSuppression

public class WrapperNonMaximumBlock
extends Object
implements NonMaxSuppression
Wrapper around the NonMaxBlock class.
  • Constructor Details

    • WrapperNonMaximumBlock

      public WrapperNonMaximumBlock​(NonMaxBlock alg)
  • Method Details

    • process

      public void process​(GrayF32 intensity, @Nullable @Nullable ListIntPoint2D candidateMin, @Nullable @Nullable ListIntPoint2D candidateMax, @Nullable @Nullable QueueCorner foundMin, @Nullable @Nullable QueueCorner foundMax)
      Description copied from interface: NonMaxSuppression
      Process a feature intensity image to extract the point features. If a pixel has an intensity value == -Float.MAX_VALUE or Float.MAX_VALUE it will not be considered for a local min or max, respectively. If an algorithm only detect local minimums or maximums and null can be passed in for unused lists. This is the recommended procedure since it will force an exception to be thrown if a mistake was made.
      Specified by:
      process in interface NonMaxSuppression
      Parameters:
      intensity - (Input) Feature intensity image. Not modified.
      candidateMin - (Input) (Optional) List of candidate local minimum features. Can be null if not used.
      candidateMax - (Input) (Optional) List of candidate local maximum features Can be null if not used.
      foundMin - (Output) Storage for found minimums. Can be null if not used.
      foundMax - (Output) Storage for found maximums. Can be null if not used.
    • getThresholdMinimum

      public float getThresholdMinimum()
      Description copied from interface: NonMaxSuppression
      Maximum value for detected minimums
      Specified by:
      getThresholdMinimum in interface NonMaxSuppression
      Returns:
      threshold for feature selection
    • getThresholdMaximum

      public float getThresholdMaximum()
      Description copied from interface: NonMaxSuppression
      Minimum value for detected maximums
      Specified by:
      getThresholdMaximum in interface NonMaxSuppression
      Returns:
      threshold for feature selection
    • setThresholdMinimum

      public void setThresholdMinimum​(float threshold)
      Description copied from interface: NonMaxSuppression
      Change the feature selection threshold for finding local minimums.
      Specified by:
      setThresholdMinimum in interface NonMaxSuppression
      Parameters:
      threshold - The new selection threshold.
    • setThresholdMaximum

      public void setThresholdMaximum​(float threshold)
      Description copied from interface: NonMaxSuppression
      Change the feature selection threshold for finding local maximums.
      Specified by:
      setThresholdMaximum in interface NonMaxSuppression
      Parameters:
      threshold - The new selection threshold.
    • getIgnoreBorder

      public int getIgnoreBorder()
      Description copied from interface: NonMaxSuppression
      Returns the size of the image border.
      Specified by:
      getIgnoreBorder in interface NonMaxSuppression
      Returns:
      border size
    • setIgnoreBorder

      public void setIgnoreBorder​(int border)
      Description copied from interface: NonMaxSuppression
      Defines the region inside the image in which a pixel can be an extreme. valid region is: border ≤ x < width-border AND border ≤ y < height-border
      Specified by:
      setIgnoreBorder in interface NonMaxSuppression
      Parameters:
      border - Border size in pixels.
    • getUsesCandidates

      public boolean getUsesCandidates()
      Description copied from interface: NonMaxSuppression
      Returns true if the algorithm requires a candidate list of corners.
      Specified by:
      getUsesCandidates in interface NonMaxSuppression
      Returns:
      true if candidates are required.
    • setSearchRadius

      public void setSearchRadius​(int radius)
      Description copied from interface: NonMaxSuppression
      Species the search radius for the feature
      Specified by:
      setSearchRadius in interface NonMaxSuppression
      Parameters:
      radius - Radius in pixels
    • getSearchRadius

      public int getSearchRadius()
      Description copied from interface: NonMaxSuppression
      Describes how large the region is that is being searched. The radius is the number of pixels away from the center.
      Specified by:
      getSearchRadius in interface NonMaxSuppression
      Returns:
      Search radius
    • canDetectMaximums

      public boolean canDetectMaximums()
      Description copied from interface: NonMaxSuppression
      True if it can detect local maximums.
      Specified by:
      canDetectMaximums in interface NonMaxSuppression
    • canDetectMinimums

      public boolean canDetectMinimums()
      Description copied from interface: NonMaxSuppression
      True if it can detect local minimums.
      Specified by:
      canDetectMinimums in interface NonMaxSuppression