public class GrayLevelCooccurrenceMatrix
extends java.lang.Object
Haralick| Modifier and Type | Class and Description |
|---|---|
static class |
GrayLevelCooccurrenceMatrix.Degree
Degree to perform the Run length.
|
| 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,
boolean normalize,
boolean autoGray)
Initialize a new instance of the GrayLevelCooccurrenceMatrix class.
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
Compute(FastBitmap fastBitmap)
Compute GLCM.
|
GrayLevelCooccurrenceMatrix.Degree |
getDegree()
Get Degree.
|
int |
getDistance()
Get distance.
|
int |
getNumPairs()
Get Number of pairs.
|
boolean |
isAutoGray()
Verify Automatic gray.
|
boolean |
isNormalize()
Verify if te GLCM is normalized.
|
void |
setAutoGray(boolean autoGray)
Set Automatic gray.
|
void |
setDegree(GrayLevelCooccurrenceMatrix.Degree degree)
Set Degree.
|
void |
setDistance(int distance)
Set distance.
|
void |
setNormalize(boolean normalize)
Set Normalize.
|
public GrayLevelCooccurrenceMatrix()
public GrayLevelCooccurrenceMatrix(int distance)
distance - Specifies the scale at which the texture is analysed.public GrayLevelCooccurrenceMatrix(int distance,
GrayLevelCooccurrenceMatrix.Degree degree)
distance - Specifies the scale at which the texture is analysed.degree - Indicates the direction where the coocurrence is found.public GrayLevelCooccurrenceMatrix(int distance,
GrayLevelCooccurrenceMatrix.Degree degree,
boolean normalize)
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.public GrayLevelCooccurrenceMatrix(int distance,
GrayLevelCooccurrenceMatrix.Degree degree,
boolean normalize,
boolean autoGray)
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.autoGray - Determine the GLCM for 255 (false) or maximum gray found (true).public boolean isAutoGray()
public void setAutoGray(boolean autoGray)
autoGray - True if need to find maximum gray in current image, otherwise is set 255.public boolean isNormalize()
public void setNormalize(boolean normalize)
normalize - True for normalize the GLCM, otherwise false.public GrayLevelCooccurrenceMatrix.Degree getDegree()
public void setDegree(GrayLevelCooccurrenceMatrix.Degree degree)
degree - Degree.public int getDistance()
public void setDistance(int distance)
distance - Distance.public int getNumPairs()
public double[][] Compute(FastBitmap fastBitmap)
fastBitmap - Image to be processed.