Catalano.Imaging.Texture
Class HaralickDescriptors
- java.lang.Object
-
- Catalano.Imaging.Texture.HaralickDescriptors
-
public final class HaralickDescriptors extends java.lang.ObjectHaralick's texture classification metrics.
-
-
Constructor Summary
Constructors Constructor and Description HaralickDescriptors()Don't let anyone instantiate this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static doubleClusterProminence(double[][] coocurrenceMatrix)Compute cluster prominence.static doubleClusterShade(double[][] coocurrenceMatrix)Compute cluster shade.static doubleClusterTendency(double[][] coocurrenceMatrix)Probabilities are weighted by their deviation from the mean values.static doubleContrast(double[][] coocurrenceMatrix)Weighs probabilities by their distance to the diagonal.static doubleCorrelation(double[][] coocurrenceMatrix)Increases in the presence of large homogeneous regions.static doubleEnergy(double[][] coocurrenceMatrix)Compute energy.static doubleEntropy(double[][] coocurrenceMatrix)Compute entropy.double[]getFeatures(double[][] coocurrenceMatrix)static doubleInertia(double[][] coocurrenceMatrix)An exaggeration of the contrast metric, as it weighs probabilities by the square of the distance to the diagonal.static doubleInverseDifference(double[][] coocurrenceMatrix)Valid only for nondiagonal elements i != j .static doubleInverseDifferenceMoment(double[][] coocurrenceMatrix)The metric complementary to inertia.static doubleTextureHomogeneity(double[][] coocurrenceMatrix)Weighs the probabilities by proximity to the diagonal and is therefore the complement of contrast.
-
-
-
Constructor Detail
-
HaralickDescriptors
public HaralickDescriptors()
Don't let anyone instantiate this class.
-
-
Method Detail
-
getFeatures
public double[] getFeatures(double[][] coocurrenceMatrix)
-
Energy
public static double Energy(double[][] coocurrenceMatrix)
Compute energy.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Energy.
-
Entropy
public static double Entropy(double[][] coocurrenceMatrix)
Compute entropy.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Entropy.
-
Contrast
public static double Contrast(double[][] coocurrenceMatrix)
Weighs probabilities by their distance to the diagonal.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Contrast.
-
Inertia
public static double Inertia(double[][] coocurrenceMatrix)
An exaggeration of the contrast metric, as it weighs probabilities by the square of the distance to the diagonal.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Inertia.
-
Correlation
public static double Correlation(double[][] coocurrenceMatrix)
Increases in the presence of large homogeneous regions.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Correlation.
-
TextureHomogeneity
public static double TextureHomogeneity(double[][] coocurrenceMatrix)
Weighs the probabilities by proximity to the diagonal and is therefore the complement of contrast.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Texture homogeneity.
-
InverseDifference
public static double InverseDifference(double[][] coocurrenceMatrix)
Valid only for nondiagonal elements i != j . Closely related to texture homogeneity.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Inverse difference.
-
InverseDifferenceMoment
public static double InverseDifferenceMoment(double[][] coocurrenceMatrix)
The metric complementary to inertia. Probabilities are weighted by proximity to the diagonal.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Invere difference moment.
-
ClusterTendency
public static double ClusterTendency(double[][] coocurrenceMatrix)
Probabilities are weighted by their deviation from the mean values.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Cluster tendency.
-
ClusterShade
public static double ClusterShade(double[][] coocurrenceMatrix)
Compute cluster shade.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Cluster shade.
-
ClusterProminence
public static double ClusterProminence(double[][] coocurrenceMatrix)
Compute cluster prominence.- Parameters:
coocurrenceMatrix- Coocurrence matrix.- Returns:
- Cluster priminence.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG