public class GrayLevelRunLengthMatrix
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GrayLevelRunLengthMatrix.Degree
Degree to perform the Run length.
|
| Constructor and Description |
|---|
GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.Degree degree)
Initialize a new instance of the GrayLevelRunLengthMatrix class.
|
GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.Degree degree,
boolean autoGray)
Initialize a new instance of the GrayLevelRunLengthMatrix class.
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
Compute(FastBitmap fastBitmap)
Compute GLRLM.
|
GrayLevelRunLengthMatrix.Degree |
getDegree()
Get Degree.
|
int |
getNumberPrimitives()
Get number of primitives.
|
boolean |
isAutoGray()
Verify Automatic gray.
|
void |
setAutoGray(boolean autoGray)
Set Automatic gray.
|
void |
setDegree(GrayLevelRunLengthMatrix.Degree degree)
Set Degree.
|
void |
setNumberPrimitives(int numberPrimitives)
Set number of primitives.
|
public GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.Degree degree)
degree - Degree.public GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.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 GrayLevelRunLengthMatrix.Degree getDegree()
public void setDegree(GrayLevelRunLengthMatrix.Degree degree)
degree - Degree.public int getNumberPrimitives()
public void setNumberPrimitives(int numberPrimitives)
numberPrimitives - Number of primitives.public double[][] Compute(FastBitmap fastBitmap)
fastBitmap - Image to be processed.