Catalano.Imaging.Texture
Class GrayLevelCooccurrenceMatrix
- java.lang.Object
-
- Catalano.Imaging.Texture.GrayLevelCooccurrenceMatrix
-
public class GrayLevelCooccurrenceMatrix extends java.lang.ObjectGray Level Coocurrence Matrix (GLCM).- See Also:
Haralick
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classGrayLevelCooccurrenceMatrix.DegreeDegree to perform the Run length.
-
Constructor Summary
Constructors Constructor and Description GrayLevelCooccurrenceMatrix()Initialize a new instance of the GrayLevelCooccurrenceMatrix class.GrayLevelCooccurrenceMatrix(int distance)Initialize a new instance of the GrayLevelCooccurrenceMatrix class.GrayLevelCooccurrenceMatrix(int distance, GrayLevelCooccurrenceMatrix.Degree degree)Initialize a new instance of the GrayLevelCooccurrenceMatrix class.GrayLevelCooccurrenceMatrix(int distance, GrayLevelCooccurrenceMatrix.Degree degree, boolean normalize)Initialize a new instance of the GrayLevelCooccurrenceMatrix class.GrayLevelCooccurrenceMatrix(int distance, GrayLevelCooccurrenceMatrix.Degree degree, int levels, boolean normalize)Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[][]Compute(FastBitmap fastBitmap)Compute GLCM.GrayLevelCooccurrenceMatrix.DegreegetDegree()Get Degree.intgetDistance()Get distance.intgetNumPairs()Get Number of pairs.booleanisNormalize()Verify if te GLCM is normalized.voidsetDegree(GrayLevelCooccurrenceMatrix.Degree degree)Set Degree.voidsetDistance(int distance)Set distance.voidsetNormalize(boolean normalize)Set Normalize.
-
-
-
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.
-
getDegree
public GrayLevelCooccurrenceMatrix.Degree getDegree()
Get Degree.- Returns:
- Degree.
-
setDegree
public void setDegree(GrayLevelCooccurrenceMatrix.Degree degree)
Set Degree.- Parameters:
degree- Degree.
-
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