Catalano.Imaging.Tools
Class ImageMoments
- java.lang.Object
-
- Catalano.Imaging.Tools.ImageMoments
-
public final class ImageMoments extends java.lang.ObjectImage Moments.Moment invariants are properties of connected regions in binary images that are invariant to translation, rotation and scale. They are useful because they define a simply calculated set of region properties that can be used for shape classification and part recognition. - See Also:
HuMoments,ZernikeMoments
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doublegetCentralMoment(FastBitmap fastBitmap, int p, int q)Compute central moment.static doublegetCentralMoment(FastBitmap fastBitmap, int p, int q, DoublePoint centroid)Compute central moment.static DoublePointgetCentroid(FastBitmap fastBitmap)Compute centroid components.static DoublePointgetCentroid(FastBitmap fastBitmap, double m00)Compute centroid components.static doublegetCovarianceXY(FastBitmap fastBitmap, int p, int q)Compute Covariance XY.static doublegetNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q)Normalized Central Moment.static doublegetNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q, DoublePoint centroid, double m00)Normalized Central Moment.static doublegetOrientation(FastBitmap fastBitmap)Compute orientation in radians.static DoublePointgetProjectionKurtosis(FastBitmap fastBitmap)Compute projection kurtosis.static DoublePointgetProjectionKurtosis(FastBitmap fastBitmap, DoublePoint centroid)Compute projection kurtosis.static DoublePointgetProjectionSkewness(FastBitmap fastBitmap)Compute projection skewness.static DoublePointgetProjectionSkewness(FastBitmap fastBitmap, DoublePoint centroid)Compute projection skewness.static doublegetRawMoment(FastBitmap fastBitmap, int p, int q)Compute Raw moment.static doublegetVarianceX(FastBitmap fastBitmap, int p, int q)Compute variance X.static doublegetVarianceY(FastBitmap fastBitmap, int p, int q)Compute variance Y.static doublegetZaidNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q)Abo-Zaid Normalized Central Moment.
-
-
-
Method Detail
-
getRawMoment
public static double getRawMoment(FastBitmap fastBitmap, int p, int q)
Compute Raw moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Raw moment.
-
getCentralMoment
public static double getCentralMoment(FastBitmap fastBitmap, int p, int q)
Compute central moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Central moment.
-
getCentralMoment
public static double getCentralMoment(FastBitmap fastBitmap, int p, int q, DoublePoint centroid)
Compute central moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.centroid- Centroid.- Returns:
- Central moment.
-
getCentroid
public static DoublePoint getCentroid(FastBitmap fastBitmap)
Compute centroid components.- Parameters:
fastBitmap- Image.- Returns:
- Centroid.
-
getCentroid
public static DoublePoint getCentroid(FastBitmap fastBitmap, double m00)
Compute centroid components.- Parameters:
fastBitmap- Image.m00- M00.- Returns:
- Centroid.
-
getCovarianceXY
public static double getCovarianceXY(FastBitmap fastBitmap, int p, int q)
Compute Covariance XY.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Covariance.
-
getVarianceX
public static double getVarianceX(FastBitmap fastBitmap, int p, int q)
Compute variance X.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Variance X.
-
getVarianceY
public static double getVarianceY(FastBitmap fastBitmap, int p, int q)
Compute variance Y.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Variace Y.
-
getOrientation
public static double getOrientation(FastBitmap fastBitmap)
Compute orientation in radians.- Parameters:
fastBitmap- Image.- Returns:
- Orientation from the image.
-
getProjectionSkewness
public static DoublePoint getProjectionSkewness(FastBitmap fastBitmap)
Compute projection skewness.- Parameters:
fastBitmap- Image.- Returns:
- Projection skewness.
-
getProjectionSkewness
public static DoublePoint getProjectionSkewness(FastBitmap fastBitmap, DoublePoint centroid)
Compute projection skewness.- Parameters:
fastBitmap- Image.centroid- Centroid.- Returns:
- Projection skewness.
-
getProjectionKurtosis
public static DoublePoint getProjectionKurtosis(FastBitmap fastBitmap)
Compute projection kurtosis.- Parameters:
fastBitmap- Image.- Returns:
- Projection kurtorsis.
-
getProjectionKurtosis
public static DoublePoint getProjectionKurtosis(FastBitmap fastBitmap, DoublePoint centroid)
Compute projection kurtosis.- Parameters:
fastBitmap- Image.centroid- Centroid.- Returns:
- Projection kurtorsis.
-
getNormalizedCentralMoment
public static double getNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q)
Normalized Central Moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Normalized central moment.
-
getNormalizedCentralMoment
public static double getNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q, DoublePoint centroid, double m00)
Normalized Central Moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.centroid- Centroid.m00- M00 moment value.- Returns:
- Normalized central moment.
-
getZaidNormalizedCentralMoment
public static double getZaidNormalizedCentralMoment(FastBitmap fastBitmap, int p, int q)
Abo-Zaid Normalized Central Moment.- Parameters:
fastBitmap- Image.p- Order p.q- Order q.- Returns:
- Abo-Zaid normalized central moment.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG