mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Fix typo in haralick_descriptors.py (#10988)
This commit is contained in:
parent
6497917352
commit
42c49ee117
|
@ -253,13 +253,13 @@ def matrix_concurrency(image: np.ndarray, coordinate: tuple[int, int]) -> np.nda
|
||||||
|
|
||||||
|
|
||||||
def haralick_descriptors(matrix: np.ndarray) -> list[float]:
|
def haralick_descriptors(matrix: np.ndarray) -> list[float]:
|
||||||
"""Calculates all 8 Haralick descriptors based on co-occurence input matrix.
|
"""Calculates all 8 Haralick descriptors based on co-occurrence input matrix.
|
||||||
All descriptors are as follows:
|
All descriptors are as follows:
|
||||||
Maximum probability, Inverse Difference, Homogeneity, Entropy,
|
Maximum probability, Inverse Difference, Homogeneity, Entropy,
|
||||||
Energy, Dissimilarity, Contrast and Correlation
|
Energy, Dissimilarity, Contrast and Correlation
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
matrix: Co-occurence matrix to use as base for calculating descriptors.
|
matrix: Co-occurrence matrix to use as base for calculating descriptors.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Reverse ordered list of resulting descriptors
|
Reverse ordered list of resulting descriptors
|
||||||
|
|
Loading…
Reference in New Issue
Block a user