Class HaralickFeatureComputer

java.lang.Object
qupath.lib.analysis.features.HaralickFeatureComputer

public class HaralickFeatureComputer extends Object
Static methods for computing Haralick texture features.
Author:
Pete Bankhead
  • 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 image
      bpMask - binary mask (may be null)
      nBins - number of bins in co-occurrence matrix
      minValue - minimum value for binning in the co-occurrence matrix
      maxValue - maximum value for binning in the co-occurrence matrix
      d - 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 image
      bpMask - binary mask (may be null)
      nBins - number of bins in co-occurrence matrix
      minValue - minimum value for binning in the co-occurrence matrix
      maxValue - maximum value for binning in the co-occurrence matrix
      d - separation between pixels considered adjacent, usually 1
      Returns: