Package qupath.lib.analysis.features
Class HaralickFeatureComputer
java.lang.Object
qupath.lib.analysis.features.HaralickFeatureComputer
Static methods for computing Haralick texture features.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HaralickFeatures
measureHaralick
(SimpleImage ip, SimpleImage bpMask, int nBins, double minValue, double maxValue, int d) Compute mean Haralick features from a SimpleImage, with optional masking.static CoocurranceMatrices
updateCooccurrenceMatrices
(CoocurranceMatrices matrices, SimpleImage ip, SimpleImage bpMask, int nBins, double minValue, double maxValue, int d) Update existing CoocurranceMatrices with the values in a SimpleImage.
-
Constructor Details
-
HaralickFeatureComputer
public HaralickFeatureComputer()
-
-
Method Details
-
measureHaralick
public static HaralickFeatures measureHaralick(SimpleImage ip, SimpleImage bpMask, int nBins, double minValue, double maxValue, int d) Compute mean Haralick features from a SimpleImage, with optional masking.- Parameters:
ip
- input imagebpMask
- binary mask (may be null)nBins
- number of bins in co-occurrence matrixminValue
- minimum value for binning in the co-occurrence matrixmaxValue
- maximum value for binning in the co-occurrence matrixd
- separation between pixels considered adjacent, usually 1- Returns:
-
updateCooccurrenceMatrices
public static CoocurranceMatrices updateCooccurrenceMatrices(CoocurranceMatrices matrices, SimpleImage ip, SimpleImage bpMask, int nBins, double minValue, double maxValue, int d) Update existing CoocurranceMatrices with the values in a SimpleImage.- Parameters:
matrices
-ip
- input imagebpMask
- binary mask (may be null)nBins
- number of bins in co-occurrence matrixminValue
- minimum value for binning in the co-occurrence matrixmaxValue
- maximum value for binning in the co-occurrence matrixd
- separation between pixels considered adjacent, usually 1- Returns:
-