Documentation of 'Catalano.Imaging.Texture.GrayLevelCooccurrenceMatrix' Java class
GrayLevelCooccurrenceMatrix
Catalano.Imaging.Texture

Class GrayLevelCooccurrenceMatrix



  • public class GrayLevelCooccurrenceMatrix
    extends java.lang.Object
    Gray Level Coocurrence Matrix (GLCM).
    See Also:
    Haralick
    • Constructor Detail

      • GrayLevelCooccurrenceMatrix

        public GrayLevelCooccurrenceMatrix()
        Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
      • GrayLevelCooccurrenceMatrix

        public GrayLevelCooccurrenceMatrix(int distance)
        Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
        Parameters:
        distance - Specifies the scale at which the texture is analysed.
      • GrayLevelCooccurrenceMatrix

        public GrayLevelCooccurrenceMatrix(int distance,
                                           GrayLevelCooccurrenceMatrix.Degree degree)
        Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
        Parameters:
        distance - Specifies the scale at which the texture is analysed.
        degree - Indicates the direction where the coocurrence is found.
      • GrayLevelCooccurrenceMatrix

        public GrayLevelCooccurrenceMatrix(int distance,
                                           GrayLevelCooccurrenceMatrix.Degree degree,
                                           boolean normalize)
        Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
        Parameters:
        distance - Specifies the scale at which the texture is analysed.
        degree - Indicates the direction where the coocurrence is found.
        normalize - Normalize GLCM. Divides each element per number of pairs.
      • GrayLevelCooccurrenceMatrix

        public GrayLevelCooccurrenceMatrix(int distance,
                                           GrayLevelCooccurrenceMatrix.Degree degree,
                                           int levels,
                                           boolean normalize)
        Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
        Parameters:
        distance - Specifies the scale at which the texture is analysed.
        degree - Indicates the direction where the coocurrence is found.
        normalize - Normalize GLCM. Divides each element per number of pairs.
    • Method Detail

      • isNormalize

        public boolean isNormalize()
        Verify if te GLCM is normalized.
        Returns:
        True if the GLCM is normalized, otherwise false.
      • setNormalize

        public void setNormalize(boolean normalize)
        Set Normalize.
        Parameters:
        normalize - True for normalize the GLCM, otherwise false.
      • getDistance

        public int getDistance()
        Get distance.
        Returns:
        Distance.
      • setDistance

        public void setDistance(int distance)
        Set distance.
        Parameters:
        distance - Distance.
      • getNumPairs

        public int getNumPairs()
        Get Number of pairs.
        Returns:
        Number of pairs.
      • Compute

        public double[][] Compute(FastBitmap fastBitmap)
        Compute GLCM.
        Parameters:
        fastBitmap - Image to be processed.
        Returns:
        GLCM.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.