Class NonMaxCandidate
java.lang.Object
boofcv.alg.feature.detect.extract.NonMaxCandidate
- Direct Known Subclasses:
NonMaxCandidate_MT
public class NonMaxCandidate extends Object
Performs a sparse search for local minimums/maximums by only examine around candidates.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NonMaxCandidate.Relaxed
Search with a relaxes rule.static interface
NonMaxCandidate.Search
Interface for local search algorithm around the candidatesstatic class
NonMaxCandidate.Strict
Search with a strict rule < -
Field Summary
Fields Modifier and Type Field Description protected int
endBorderX
protected int
endBorderY
protected int
ignoreBorder
protected GrayF32
input
protected Point2D_I16
pt
protected int
radius
protected NonMaxCandidate.Search
search
protected float
thresholdMax
protected float
thresholdMin
-
Constructor Summary
Constructors Constructor Description NonMaxCandidate(NonMaxCandidate.Search search)
-
Method Summary
Modifier and Type Method Description protected void
examineMaximum(GrayF32 intensityImage, ListIntPoint2D candidates, DogArray<Point2D_I16> found)
protected void
examineMinimum(GrayF32 intensityImage, ListIntPoint2D candidates, DogArray<Point2D_I16> found)
int
getBorder()
int
getSearchRadius()
float
getThresholdMax()
float
getThresholdMin()
void
process(GrayF32 intensityImage, @Nullable ListIntPoint2D candidatesMin, @Nullable ListIntPoint2D candidatesMax, @Nullable DogArray<Point2D_I16> foundMin, @Nullable DogArray<Point2D_I16> foundMax)
Checks to see if the specified candidates are local minimums or maximums.void
setBorder(int border)
void
setSearchRadius(int radius)
void
setThresholdMax(float thresholdMax)
void
setThresholdMin(float thresholdMin)
-
Field Details
-
radius
protected int radius -
thresholdMin
protected float thresholdMin -
thresholdMax
protected float thresholdMax -
ignoreBorder
protected int ignoreBorder -
input
-
search
-
endBorderX
protected int endBorderX -
endBorderY
protected int endBorderY -
pt
-
-
Constructor Details
-
NonMaxCandidate
-
-
Method Details
-
process
public void process(GrayF32 intensityImage, @Nullable @Nullable ListIntPoint2D candidatesMin, @Nullable @Nullable ListIntPoint2D candidatesMax, @Nullable @Nullable DogArray<Point2D_I16> foundMin, @Nullable @Nullable DogArray<Point2D_I16> foundMax)Checks to see if the specified candidates are local minimums or maximums. If a candidate list is null then that test is skipped. -
examineMinimum
protected void examineMinimum(GrayF32 intensityImage, ListIntPoint2D candidates, DogArray<Point2D_I16> found) -
examineMaximum
protected void examineMaximum(GrayF32 intensityImage, ListIntPoint2D candidates, DogArray<Point2D_I16> found) -
setSearchRadius
public void setSearchRadius(int radius) -
getSearchRadius
public int getSearchRadius() -
getThresholdMin
public float getThresholdMin() -
setThresholdMin
public void setThresholdMin(float thresholdMin) -
getThresholdMax
public float getThresholdMax() -
setThresholdMax
public void setThresholdMax(float thresholdMax) -
setBorder
public void setBorder(int border) -
getBorder
public int getBorder()
-