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.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Compute features.Compute maximum features from all four rotationsCompute averaged features over all four rotationsCompute minimum features from all four rotationsvoid
put0
(int i, int j) Record coocurrence for a (binned) value pair without rotationvoid
put135
(int i, int j) Record coocurrence for a (binned) value pair with 135 degree rotationvoid
put45
(int i, int j) Record coocurrence for a (binned) value pair with 45 degree rotationvoid
put90
(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:
-