Catalano.Imaging.Texture
Class GrayLevelRunLengthMatrix
- java.lang.Object
-
- Catalano.Imaging.Texture.GrayLevelRunLengthMatrix
-
public class GrayLevelRunLengthMatrix extends java.lang.ObjectGray Level Run Length Matrix (GLRLM).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classGrayLevelRunLengthMatrix.DegreeDegree to perform the Run length.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double[][]Compute(FastBitmap fastBitmap)Compute GLRLM.GrayLevelRunLengthMatrix.DegreegetDegree()Get Degree.intgetNumberPrimitives()Get number of primitives.booleanisAutoGray()Verify Automatic gray.voidsetAutoGray(boolean autoGray)Set Automatic gray.voidsetDegree(GrayLevelRunLengthMatrix.Degree degree)Set Degree.voidsetNumberPrimitives(int numberPrimitives)Set number of primitives.
-
-
-
Constructor Detail
-
GrayLevelRunLengthMatrix
public GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.Degree degree)
Initialize a new instance of the GrayLevelRunLengthMatrix class.- Parameters:
degree- Degree.
-
GrayLevelRunLengthMatrix
public GrayLevelRunLengthMatrix(GrayLevelRunLengthMatrix.Degree degree, boolean autoGray)
Initialize a new instance of the GrayLevelRunLengthMatrix 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 GrayLevelRunLengthMatrix.Degree getDegree()
Get Degree.- Returns:
- Degree.
-
setDegree
public void setDegree(GrayLevelRunLengthMatrix.Degree degree)
Set Degree.- Parameters:
degree- Degree.
-
getNumberPrimitives
public int getNumberPrimitives()
Get number of primitives.- Returns:
- Number of primitives.
-
setNumberPrimitives
public void setNumberPrimitives(int numberPrimitives)
Set number of primitives.- Parameters:
numberPrimitives- Number of primitives.
-
Compute
public double[][] Compute(FastBitmap fastBitmap)
Compute GLRLM.- Parameters:
fastBitmap- Image to be processed.- Returns:
- GLRLM.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG