public class GrayLevelDifferenceMethod
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GrayLevelDifferenceMethod.Degree
Degree to perform the Run length.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Histogram |
Compute(FastBitmap fastBitmap)
Compute GLDM.
|
GrayLevelDifferenceMethod.Degree |
getDegree()
Get Degree.
|
boolean |
isAutoGray()
Verify Automatic gray.
|
void |
setAutoGray(boolean autoGray)
Set Automatic gray.
|
void |
setDegree(GrayLevelDifferenceMethod.Degree degree)
Set Degree.
|
public GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree)
degree - Degree.public GrayLevelDifferenceMethod(GrayLevelDifferenceMethod.Degree degree, boolean autoGray)
degree - Degree.autoGray - Automatic gray.public boolean isAutoGray()
public void setAutoGray(boolean autoGray)
autoGray - True if need to find maximum gray in current image, otherwise is set 255.public GrayLevelDifferenceMethod.Degree getDegree()
public void setDegree(GrayLevelDifferenceMethod.Degree degree)
degree - Degree.public Histogram Compute(FastBitmap fastBitmap)
fastBitmap - Image to be processed.