Interface NonMaxCandidate.Search

All Known Implementing Classes:
NonMaxCandidate.Relaxed, NonMaxCandidate.Strict
Enclosing class:
NonMaxCandidate

public static interface NonMaxCandidate.Search
Interface for local search algorithm around the candidates
  • Method Summary

    Modifier and Type Method Description
    void initialize​(GrayF32 intensity)  
    NonMaxCandidate.Search newInstance()
    Create a new instance of this search algorithm.
    boolean searchMax​(int x0, int y0, int x1, int y1, int centerIdx, float val)  
    boolean searchMin​(int x0, int y0, int x1, int y1, int centerIdx, float val)
    Verifies that the candidate is a local minimum
  • Method Details

    • initialize

      void initialize​(GrayF32 intensity)
    • searchMin

      boolean searchMin​(int x0, int y0, int x1, int y1, int centerIdx, float val)
      Verifies that the candidate is a local minimum
      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

      boolean searchMax​(int x0, int y0, int x1, int y1, int centerIdx, float val)
    • newInstance

      NonMaxCandidate.Search newInstance()
      Create a new instance of this search algorithm. Useful for concurrent implementations