Catalano.Imaging.Corners
Class HarrisCornersDetector
- java.lang.Object
-
- Catalano.Imaging.Corners.HarrisCornersDetector
-
- All Implemented Interfaces:
- ICornersDetector
public class HarrisCornersDetector extends java.lang.Object implements ICornersDetector
Harris Corners Detector.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classHarrisCornersDetector.HarrisCornerMeasure
-
Constructor Summary
Constructors Constructor and Description HarrisCornersDetector()Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(float k)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(float k, float threshold)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(float k, float threshold, double sigma)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(float k, float threshold, double sigma, int suppression)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold, double sigma)Initializes a new instance of the HarrisCornersDetector class.HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold, double sigma, int suppression)Initializes a new instance of the HarrisCornersDetector class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatgetK()Gets Harris parameter k.HarrisCornersDetector.HarrisCornerMeasuregetMeasure()Gets the measure to use when detecting corners.doublegetSigma()Get Gaussian smoothing sigma.intgetSuppression()Gets Non-maximum suppression window radius.floatgetThreshold()Get Harris threshold.java.util.List<IntPoint>ProcessImage(FastBitmap fastBitmap)Process image.voidsetK(float k)Sets Harris parameter k.voidsetMeasure(HarrisCornersDetector.HarrisCornerMeasure measure)Sets the measure to use when detecting corners.voidsetSigma(double sigma)Set Gaussian smoothing sigma.voidsetSuppression(int suppression)Sets Non-maximum suppression window radius.voidsetThreshold(float threshold)Set Harris threshold.
-
-
-
Constructor Detail
-
HarrisCornersDetector
public HarrisCornersDetector()
Initializes a new instance of the HarrisCornersDetector class.
-
HarrisCornersDetector
public HarrisCornersDetector(float k)
Initializes a new instance of the HarrisCornersDetector class.- Parameters:
k- Harris parameter.
-
HarrisCornersDetector
public HarrisCornersDetector(float k, float threshold)Initializes a new instance of the HarrisCornersDetector class.- Parameters:
k- Harris parameter.threshold- Harris threshold.
-
HarrisCornersDetector
public HarrisCornersDetector(float k, float threshold, double sigma)Initializes a new instance of the HarrisCornersDetector class.- Parameters:
k- Harris parameter.threshold- Harris threshold.sigma- Gaussian smoothing.
-
HarrisCornersDetector
public HarrisCornersDetector(float k, float threshold, double sigma, int suppression)Initializes a new instance of the HarrisCornersDetector class.- Parameters:
k- Harris parameter.threshold- Harris threshold.sigma- Gaussian smoothing.suppression- Non-maximum suppression window radius.
-
HarrisCornersDetector
public HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold, double sigma, int suppression)
Initializes a new instance of the HarrisCornersDetector class.- Parameters:
measure- Measure to use when detecting corners.threshold- Harris threshold.sigma- Gaussian smoothing.suppression- Non-maximum suppression window radius.
-
HarrisCornersDetector
public HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold, double sigma)
Initializes a new instance of the HarrisCornersDetector class.- Parameters:
measure- Measure to use when detecting corners.threshold- Harris threshold.sigma- Gaussian smoothing.
-
HarrisCornersDetector
public HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure, float threshold)
Initializes a new instance of the HarrisCornersDetector class.- Parameters:
measure- Measure to use when detecting corners.threshold- Harris threshold.
-
HarrisCornersDetector
public HarrisCornersDetector(HarrisCornersDetector.HarrisCornerMeasure measure)
Initializes a new instance of the HarrisCornersDetector class.- Parameters:
measure- Measure to use when detecting corners.
-
-
Method Detail
-
getMeasure
public HarrisCornersDetector.HarrisCornerMeasure getMeasure()
Gets the measure to use when detecting corners.- Returns:
- Measure.
-
setMeasure
public void setMeasure(HarrisCornersDetector.HarrisCornerMeasure measure)
Sets the measure to use when detecting corners.- Parameters:
measure- Measure.
-
getSuppression
public int getSuppression()
Gets Non-maximum suppression window radius. Default value is 3.- Returns:
- Non-maximum suppression window radius.
-
setSuppression
public void setSuppression(int suppression)
Sets Non-maximum suppression window radius. Default value is 3.- Parameters:
suppression- Non-maximum suppression window radius.
-
getK
public float getK()
Gets Harris parameter k. Default value is 0.04.- Returns:
- Harris parameter.
-
setK
public void setK(float k)
Sets Harris parameter k. Default value is 0.04.- Parameters:
k- Harris parameter.
-
getThreshold
public float getThreshold()
Get Harris threshold. Default value is 20000.- Returns:
- Harris threshold.
-
setThreshold
public void setThreshold(float threshold)
Set Harris threshold. Default value is 20000.- Parameters:
threshold- Harris threshold.
-
getSigma
public double getSigma()
Get Gaussian smoothing sigma. Default value is 1.2.- Returns:
- Gaussian smoothing.
-
setSigma
public void setSigma(double sigma)
Set Gaussian smoothing sigma. Default value is 1.2.- Parameters:
sigma- Gaussian smoothing.
-
ProcessImage
public java.util.List<IntPoint> ProcessImage(FastBitmap fastBitmap)
Description copied from interface:ICornersDetectorProcess image.- Specified by:
ProcessImagein interfaceICornersDetector- Parameters:
fastBitmap- Image to be processed- Returns:
- List of feature points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG