Class WrapperNonMaxCandidate
java.lang.Object
boofcv.abst.feature.detect.extract.WrapperNonMaxCandidate
- All Implemented Interfaces:
NonMaxSuppression
Wrapper around the
NonMaxCandidate class.-
Constructor Summary
ConstructorsConstructorDescriptionWrapperNonMaxCandidate(NonMaxCandidate.Search search, boolean minimums, boolean maximums) WrapperNonMaxCandidate(NonMaxCandidate extractor, boolean minimums, boolean maximums) -
Method Summary
Modifier and TypeMethodDescriptionbooleanTrue if it can detect local maximums.booleanTrue if it can detect local minimums.intReturns the size of the image border.intDescribes how large the region is that is being searched.floatMinimum value for detected maximumsfloatMaximum value for detected minimumsbooleanReturns true if the algorithm requires a candidate list of corners.voidprocess(GrayF32 intensity, @Nullable ListIntPoint2D candidateMin, @Nullable ListIntPoint2D candidateMax, @Nullable QueueCorner foundMin, @Nullable QueueCorner foundMax) Process a feature intensity image to extract the point features.voidsetIgnoreBorder(int border) Defines the region inside the image in which a pixel can be an extreme.voidsetSearchRadius(int radius) Species the search radius for the featurevoidsetThresholdMaximum(float threshold) Change the feature selection threshold for finding local maximums.voidsetThresholdMinimum(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:NonMaxSuppressionMaximum value for detected minimums- Specified by:
getThresholdMinimumin interfaceNonMaxSuppression- Returns:
- threshold for feature selection
-
getThresholdMaximum
public float getThresholdMaximum()Description copied from interface:NonMaxSuppressionMinimum value for detected maximums- Specified by:
getThresholdMaximumin interfaceNonMaxSuppression- Returns:
- threshold for feature selection
-
setThresholdMinimum
public void setThresholdMinimum(float threshold) Description copied from interface:NonMaxSuppressionChange the feature selection threshold for finding local minimums.- Specified by:
setThresholdMinimumin interfaceNonMaxSuppression- Parameters:
threshold- The new selection threshold.
-
setThresholdMaximum
public void setThresholdMaximum(float threshold) Description copied from interface:NonMaxSuppressionChange the feature selection threshold for finding local maximums.- Specified by:
setThresholdMaximumin interfaceNonMaxSuppression- Parameters:
threshold- The new selection threshold.
-
setIgnoreBorder
public void setIgnoreBorder(int border) Description copied from interface:NonMaxSuppressionDefines 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:
setIgnoreBorderin interfaceNonMaxSuppression- Parameters:
border- Border size in pixels.
-
getIgnoreBorder
public int getIgnoreBorder()Description copied from interface:NonMaxSuppressionReturns the size of the image border.- Specified by:
getIgnoreBorderin 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:NonMaxSuppressionProcess 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:
processin 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:NonMaxSuppressionReturns true if the algorithm requires a candidate list of corners.- Specified by:
getUsesCandidatesin interfaceNonMaxSuppression- Returns:
- true if candidates are required.
-
setSearchRadius
public void setSearchRadius(int radius) Description copied from interface:NonMaxSuppressionSpecies the search radius for the feature- Specified by:
setSearchRadiusin interfaceNonMaxSuppression- Parameters:
radius- Radius in pixels
-
getSearchRadius
public int getSearchRadius()Description copied from interface:NonMaxSuppressionDescribes how large the region is that is being searched. The radius is the number of pixels away from the center.- Specified by:
getSearchRadiusin interfaceNonMaxSuppression- Returns:
- Search radius
-
canDetectMinimums
public boolean canDetectMinimums()Description copied from interface:NonMaxSuppressionTrue if it can detect local minimums.- Specified by:
canDetectMinimumsin interfaceNonMaxSuppression
-
canDetectMaximums
public boolean canDetectMaximums()Description copied from interface:NonMaxSuppressionTrue if it can detect local maximums.- Specified by:
canDetectMaximumsin interfaceNonMaxSuppression
-