Class CoocurranceMatrices

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

public class CoocurranceMatrices extends Object
Data structure to hold cooccurrence matrices for computation of Haralick features.
Author:
Pete Bankhead
  • Constructor Details

    • CoocurranceMatrices

      public CoocurranceMatrices(int n)
      Initialize coocurrence matrices.
      Parameters:
      n - number of bins
  • Method Details

    • put0

      public void put0(int i, int j)
      Record coocurrence for a (binned) value pair without rotation
      Parameters:
      i -
      j -
    • put45

      public void put45(int i, int j)
      Record coocurrence for a (binned) value pair with 45 degree rotation
      Parameters:
      i -
      j -
    • put90

      public void put90(int i, int j)
      Record coocurrence for a (binned) value pair with 90 degree rotation
      Parameters:
      i -
      j -
    • put135

      public void put135(int i, int j)
      Record coocurrence for a (binned) value pair with 135 degree rotation
      Parameters:
      i -
      j -
    • computeFeatures

      public void computeFeatures()
      Compute features.
    • getMeanFeatures

      public HaralickFeatures getMeanFeatures()
      Compute averaged features over all four rotations
      Returns:
    • getMinFeatures

      public HaralickFeatures getMinFeatures()
      Compute minimum features from all four rotations
      Returns:
    • getMaxFeatures

      public HaralickFeatures getMaxFeatures()
      Compute maximum features from all four rotations
      Returns: