Documentation of 'Catalano.Imaging.Tools.ImageMoments' Java class
ImageMoments
Catalano.Imaging.Tools

Class ImageMoments



  • public final class ImageMoments
    extends java.lang.Object
    Image 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 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

Ads help maintain this website.