Catalano.Imaging.Texture
Class GrayLevelDifferenceMethod
- java.lang.Object
-
- Catalano.Imaging.Texture.GrayLevelDifferenceMethod
-
public class GrayLevelDifferenceMethod extends java.lang.ObjectGray Level Difference Method (GLDM).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classGrayLevelDifferenceMethod.DegreeDegree to perform the Run length.
-
Constructor Summary
Constructors Constructor and Description GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree)Initialize a new instance of the GrayLevelDifferenceMethod class.GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree, boolean autoGray)Initialize a new instance of the GrayLevelDifferenceMethod class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description HistogramCompute(FastBitmap fastBitmap)Compute GLDM.GrayLevelDifferenceMethod.DegreegetDegree()Get Degree.booleanisAutoGray()Verify Automatic gray.voidsetAutoGray(boolean autoGray)Set Automatic gray.voidsetDegree(GrayLevelDifferenceMethod.Degree degree)Set Degree.
-
-
-
Constructor Detail
-
GrayLevelDifferenceMethod
public GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree)
Initialize a new instance of the GrayLevelDifferenceMethod class.- Parameters:
degree- Degree.
-
GrayLevelDifferenceMethod
public GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree, boolean autoGray)
Initialize a new instance of the GrayLevelDifferenceMethod class.- Parameters:
degree- Degree.autoGray- Automatic gray.
-
-
Method Detail
-
isAutoGray
public boolean isAutoGray()
Verify Automatic gray.- Returns:
- True if need to find maximum gray in current image, otherwise is set 255.
-
setAutoGray
public void setAutoGray(boolean autoGray)
Set Automatic gray.- Parameters:
autoGray- True if need to find maximum gray in current image, otherwise is set 255.
-
getDegree
public GrayLevelDifferenceMethod.Degree getDegree()
Get Degree.- Returns:
- Degree.
-
setDegree
public void setDegree(GrayLevelDifferenceMethod.Degree degree)
Set Degree.- Parameters:
degree- Degree.
-
Compute
public Histogram Compute(FastBitmap fastBitmap)
Compute GLDM.- Parameters:
fastBitmap- Image to be processed.- Returns:
- GLDM histogram.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG