Package qupath.lib.analysis.features
Class CoocurranceMatrices
java.lang.Object
qupath.lib.analysis.features.CoocurranceMatrices
Data structure to hold cooccurrence matrices for computation of Haralick features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCompute features.Compute maximum features from all four rotationsCompute averaged features over all four rotationsCompute minimum features from all four rotationsvoidput0(int i, int j) Record coocurrence for a (binned) value pair without rotationvoidput135(int i, int j) Record coocurrence for a (binned) value pair with 135 degree rotationvoidput45(int i, int j) Record coocurrence for a (binned) value pair with 45 degree rotationvoidput90(int i, int j) Record coocurrence for a (binned) value pair with 90 degree rotation
-
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
Compute averaged features over all four rotations- Returns:
-
getMinFeatures
Compute minimum features from all four rotations- Returns:
-
getMaxFeatures
Compute maximum features from all four rotations- Returns:
-