Class NonMaxCandidate.Strict
java.lang.Object
boofcv.alg.feature.detect.extract.NonMaxCandidate.Strict
- All Implemented Interfaces:
NonMaxCandidate.Search
- Enclosing class:
- NonMaxCandidate
Search with a strict rule <
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(GrayF32 intensity) 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
-
Constructor Details
-
Strict
public Strict()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceNonMaxCandidate.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 interfaceNonMaxCandidate.Search
- Parameters:
x0
- lower extent X. Inclusivey0
- lower extent Y. Inclusivex1
- upper extent X. Exclusivey1
- upper extent Y. ExclusivecenterIdx
- index of candidate pixel in the imageval
- 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 interfaceNonMaxCandidate.Search
-
newInstance
Description copied from interface:NonMaxCandidate.Search
Create a new instance of this search algorithm. Useful for concurrent implementations- Specified by:
newInstance
in interfaceNonMaxCandidate.Search
-