Class WrapperNonMaxCandidate
java.lang.Object
boofcv.abst.feature.detect.extract.WrapperNonMaxCandidate
- All Implemented Interfaces:
NonMaxSuppression
Wrapper around the
NonMaxCandidate
class.-
Constructor Summary
ConstructorDescriptionWrapperNonMaxCandidate
(NonMaxCandidate.Search search, boolean minimums, boolean maximums) WrapperNonMaxCandidate
(NonMaxCandidate extractor, boolean minimums, boolean maximums) -
Method Summary
Modifier and TypeMethodDescriptionboolean
True if it can detect local maximums.boolean
True if it can detect local minimums.int
Returns the size of the image border.int
Describes how large the region is that is being searched.float
Minimum value for detected maximumsfloat
Maximum value for detected minimumsboolean
Returns true if the algorithm requires a candidate list of corners.void
process
(GrayF32 intensity, @Nullable ListIntPoint2D candidateMin, @Nullable ListIntPoint2D candidateMax, @Nullable QueueCorner foundMin, @Nullable QueueCorner foundMax) Process a feature intensity image to extract the point features.void
setIgnoreBorder
(int border) Defines the region inside the image in which a pixel can be an extreme.void
setSearchRadius
(int radius) Species the search radius for the featurevoid
setThresholdMaximum
(float threshold) Change the feature selection threshold for finding local maximums.void
setThresholdMinimum
(float threshold) Change the feature selection threshold for finding local minimums.
-
Constructor Details
-
WrapperNonMaxCandidate
-
WrapperNonMaxCandidate
-
-
Method Details
-
getThresholdMinimum
public float getThresholdMinimum()Description copied from interface:NonMaxSuppression
Maximum value for detected minimums- Specified by:
getThresholdMinimum
in interfaceNonMaxSuppression
- Returns:
- threshold for feature selection
-
getThresholdMaximum
public float getThresholdMaximum()Description copied from interface:NonMaxSuppression
Minimum value for detected maximums- Specified by:
getThresholdMaximum
in interfaceNonMaxSuppression
- 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 interfaceNonMaxSuppression
- 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 interfaceNonMaxSuppression
- Parameters:
threshold
- The new selection threshold.
-
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 interfaceNonMaxSuppression
- Parameters:
border
- Border size in pixels.
-
getIgnoreBorder
public int getIgnoreBorder()Description copied from interface:NonMaxSuppression
Returns the size of the image border.- Specified by:
getIgnoreBorder
in interfaceNonMaxSuppression
- Returns:
- border size
-
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 interfaceNonMaxSuppression
- 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.
-
getUsesCandidates
public boolean getUsesCandidates()Description copied from interface:NonMaxSuppression
Returns true if the algorithm requires a candidate list of corners.- Specified by:
getUsesCandidates
in interfaceNonMaxSuppression
- 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 interfaceNonMaxSuppression
- 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 interfaceNonMaxSuppression
- Returns:
- Search radius
-
canDetectMinimums
public boolean canDetectMinimums()Description copied from interface:NonMaxSuppression
True if it can detect local minimums.- Specified by:
canDetectMinimums
in interfaceNonMaxSuppression
-
canDetectMaximums
public boolean canDetectMaximums()Description copied from interface:NonMaxSuppression
True if it can detect local maximums.- Specified by:
canDetectMaximums
in interfaceNonMaxSuppression
-