Catalano.Imaging.Corners
Class Fast12
- java.lang.Object
-
- Catalano.Imaging.Corners.Fast12
-
- All Implemented Interfaces:
- ICornersFeatureDetector
public class Fast12 extends java.lang.Object implements ICornersFeatureDetector
Features from Accelerated Segment Test (FAST) corners detector.In the FAST corner detection algorithm, a pixel is defined as a corner if (in a circle surrounding the pixel), N or more contiguous pixels are all significantly brighter then or all significantly darker than the center pixel. The ordering of questions used to classify a pixel is learned using the ID3 algorithm. This detector has been shown to exibit a high degree of repeatability.
-
-
Constructor Summary
Constructors Constructor and Description Fast12()Initializes a new instance of the FastCornersDetector class.Fast12(int threshold)Initializes a new instance of the FastCornersDetector class.Fast12(int threshold, boolean suppress)Initializes a new instance of the FastCornersDetector class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetThreshold()Get Threshold.booleanisSuppressed()Check if needs apply a non-maximum suppression algorithm on the results, to allow only maximal corners.java.util.List<FeaturePoint>ProcessImage(FastBitmap fastBitmap)Process image.voidsetSuppression(boolean suppress)Set suppression if needs apply a non-maximum suppression algorithm on the results, to allow only maximal corners.voidsetThreshold(int threshold)Set Threshold.
-
-
-
Constructor Detail
-
Fast12
public Fast12()
Initializes a new instance of the FastCornersDetector class.
-
Fast12
public Fast12(int threshold)
Initializes a new instance of the FastCornersDetector class.- Parameters:
threshold- Threshold.
-
Fast12
public Fast12(int threshold, boolean suppress)Initializes a new instance of the FastCornersDetector class.- Parameters:
threshold- Threshold.suppress- Supress.
-
-
Method Detail
-
getThreshold
public int getThreshold()
Get Threshold. A number denoting how much brighter or darker the pixels surrounding the pixel in question should be in order to be considered a corner.- Returns:
- Threshold.
-
setThreshold
public void setThreshold(int threshold)
Set Threshold. A number denoting how much brighter or darker the pixels surrounding the pixel in question should be in order to be considered a corner.- Parameters:
threshold- Threshold.
-
isSuppressed
public boolean isSuppressed()
Check if needs apply a non-maximum suppression algorithm on the results, to allow only maximal corners.- Returns:
- If true, allow only maximal corners, otherwise false.
-
setSuppression
public void setSuppression(boolean suppress)
Set suppression if needs apply a non-maximum suppression algorithm on the results, to allow only maximal corners.- Parameters:
suppress- If true, allow only maximal corners, otherwise false.
-
ProcessImage
public java.util.List<FeaturePoint> ProcessImage(FastBitmap fastBitmap)
Description copied from interface:ICornersFeatureDetectorProcess image.- Specified by:
ProcessImagein interfaceICornersFeatureDetector- Parameters:
fastBitmap- Image to be processed- Returns:
- List of feature points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG