Class NonMaxCandidate.Relaxed

java.lang.Object
boofcv.alg.feature.detect.extract.NonMaxCandidate.Relaxed
All Implemented Interfaces:
NonMaxCandidate.Search
Enclosing class:
NonMaxCandidate

public static class NonMaxCandidate.Relaxed
extends Object
implements NonMaxCandidate.Search
Search with a relaxes rule. ≤
  • Constructor Details

    • Relaxed

      public Relaxed()
  • Method Details

    • initialize

      public void initialize​(GrayF32 intensity)
      Specified by:
      initialize in interface NonMaxCandidate.Search
    • searchMin

      public boolean searchMin​(int x0, int y0, int x1, int y1, int centerIdx, float val)
      Description copied from interface: NonMaxCandidate.Search
      Verifies that the candidate is a local minimum
      Specified by:
      searchMin in interface NonMaxCandidate.Search
      Parameters:
      x0 - lower extent X. Inclusive
      y0 - lower extent Y. Inclusive
      x1 - upper extent X. Exclusive
      y1 - upper extent Y. Exclusive
      centerIdx - index of candidate pixel in the image
      val - value at the candidate pixel
      Returns:
      true if it's a local min
    • searchMax

      public boolean searchMax​(int x0, int y0, int x1, int y1, int centerIdx, float val)
      Specified by:
      searchMax in interface NonMaxCandidate.Search
    • newInstance

      public NonMaxCandidate.Search newInstance()
      Description copied from interface: NonMaxCandidate.Search
      Create a new instance of this search algorithm. Useful for concurrent implementations
      Specified by:
      newInstance in interface NonMaxCandidate.Search