Catalano.Math.Geometry
Class KCurvature
- java.lang.Object
-
- Catalano.Math.Geometry.KCurvature
-
public class KCurvature extends java.lang.ObjectK-curvatures algorithm for local contour extrema detection.
-
-
Field Summary
Fields Modifier and Type Field and Description intkDoubleRangetheta
-
Constructor Summary
Constructors Constructor and Description KCurvature(int k, DoubleRange theta)Initializes a new instance of the KCurvature class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<IntPoint>FindPeaks(java.util.List<IntPoint> contour)Finds local extremum points in the contour.intgetK()Gets the number K of previous and posterior points to consider when find local extremum points.intgetSuppression()Gets the suppression radius to use during non-minimum suppression.DoubleRangegetTheta()Gets the theta angle range (in degrees) used to define extremum points.voidsetK(int k)Sets the number K of previous and posterior points to consider when find local extremum points.voidsetSuppression(int suppression)Sets the suppression radius to use during non-minimum suppression.voidsetTheta(DoubleRange theta)Sets the theta angle range (in degrees) used to define extremum points.
-
-
-
Field Detail
-
k
public int k
-
theta
public DoubleRange theta
-
-
Constructor Detail
-
KCurvature
public KCurvature(int k, DoubleRange theta)Initializes a new instance of the KCurvature class.- Parameters:
k- K.theta- Theta.
-
-
Method Detail
-
getK
public int getK()
Gets the number K of previous and posterior points to consider when find local extremum points.- Returns:
- Number of previous and posterior points.
-
setK
public void setK(int k)
Sets the number K of previous and posterior points to consider when find local extremum points.- Parameters:
k- Number of previous and posterior points.
-
getTheta
public DoubleRange getTheta()
Gets the theta angle range (in degrees) used to define extremum points.- Returns:
- Theta angle.
-
setTheta
public void setTheta(DoubleRange theta)
Sets the theta angle range (in degrees) used to define extremum points.- Parameters:
theta- Theta angle.
-
getSuppression
public int getSuppression()
Gets the suppression radius to use during non-minimum suppression.- Returns:
- Suppression radius.
-
setSuppression
public void setSuppression(int suppression)
Sets the suppression radius to use during non-minimum suppression.- Parameters:
suppression- Suppression radius.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG