Catalano.Imaging.Texture
Class RunLengthFeatures
- java.lang.Object
-
- Catalano.Imaging.Texture.RunLengthFeatures
-
public final class RunLengthFeatures extends java.lang.ObjectRun-Length Metrics.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleGrayLevelDistribution(double[][] runMatrix, int numberPrimitives)static doubleGrayLevelNonUniformity(double[][] runMatrix, int numberPrimitives)This metric increases when gray-level outliers dominate the histogram.static doubleHighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Emphasis is orthogonal to LRE, and the metric increases when the texture is dominated by many runs of high gray value.static doubleLongRunEmphasis(double[][] runMatrix, int numberPrimitives)This metric increases when long runs dominate, for example, in textures with large homogeneous areas or coarse textures.static doubleLongRunHighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This is the complementary metric to SRLGE and increases with a combination of long, high-gray value runs.static doubleLongRunLowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Complementary to SRHGE, it increases when the texture is dominated by long runs that have low gray levels.static doubleLowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Emphasis is orthogonal to SRE, and the metric increases when the texture is dominated by many runs of low gray value.static doubleRunLenghtDistribution(double[][] runMatrix, int numberPrimitives)static doubleRunLengthNonUniformity(double[][] runMatrix, int numberPrimitives)This metric increases when few run-length outliers dominate the histogram.static doubleRunPercentage(double[][] runMatrix, int numberPossiblePrimitives)This metric provides information on the overall homogeneity of the histogram and is maximal when all runs are of unity length irrespective of the gray level.static doubleShortRunEmphasis(double[][] runMatrix, int numberPrimitives)This metric increases when short runs dominate, for example, in fine-grained textures.static doubleShortRunHighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This metric is orthogonal to SRLGE and LRHGE and increases when the texture is dominated by short runs with high intensity levels.static doubleShortRunLowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This is a diagonal metric that combines SRE and LGRE.
-
-
-
Method Detail
-
ShortRunEmphasis
public static double ShortRunEmphasis(double[][] runMatrix, int numberPrimitives)This metric increases when short runs dominate, for example, in fine-grained textures.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
LongRunEmphasis
public static double LongRunEmphasis(double[][] runMatrix, int numberPrimitives)This metric increases when long runs dominate, for example, in textures with large homogeneous areas or coarse textures.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
LowGrayLevelEmphasis
public static double LowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Emphasis is orthogonal to SRE, and the metric increases when the texture is dominated by many runs of low gray value.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
HighGrayLevelEmphasis
public static double HighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Emphasis is orthogonal to LRE, and the metric increases when the texture is dominated by many runs of high gray value.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
ShortRunLowGrayLevelEmphasis
public static double ShortRunLowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This is a diagonal metric that combines SRE and LGRE. The metric increases when the texture is dominated by many short runs of low gray value.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
ShortRunHighGrayLevelEmphasis
public static double ShortRunHighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This metric is orthogonal to SRLGE and LRHGE and increases when the texture is dominated by short runs with high intensity levels.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
LongRunLowGrayLevelEmphasis
public static double LongRunLowGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)Complementary to SRHGE, it increases when the texture is dominated by long runs that have low gray levels.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
LongRunHighGrayLevelEmphasis
public static double LongRunHighGrayLevelEmphasis(double[][] runMatrix, int numberPrimitives)This is the complementary metric to SRLGE and increases with a combination of long, high-gray value runs.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
GrayLevelNonUniformity
public static double GrayLevelNonUniformity(double[][] runMatrix, int numberPrimitives)This metric increases when gray-level outliers dominate the histogram.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
RunLengthNonUniformity
public static double RunLengthNonUniformity(double[][] runMatrix, int numberPrimitives)This metric increases when few run-length outliers dominate the histogram.- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
GrayLevelDistribution
public static double GrayLevelDistribution(double[][] runMatrix, int numberPrimitives)- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
RunLenghtDistribution
public static double RunLenghtDistribution(double[][] runMatrix, int numberPrimitives)- Parameters:
runMatrix- Run length matrix.numberPrimitives- Number of primitives.- Returns:
-
RunPercentage
public static double RunPercentage(double[][] runMatrix, int numberPossiblePrimitives)This metric provides information on the overall homogeneity of the histogram and is maximal when all runs are of unity length irrespective of the gray level.- Parameters:
runMatrix- Run length matrix.numberPossiblePrimitives- Number of primitives.- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG