Commit 9112fd8
committed
Add GLCM texture metrics to focal module (#963)
New xrspatial.glcm module with glcm_texture() for computing Haralick
texture features (contrast, dissimilarity, homogeneity, energy,
correlation, entropy) over a sliding window.
Supports numpy, dask+numpy, cupy, and dask+cupy backends. Dask path
pre-quantizes globally for consistent gray-level mapping across chunks.1 parent b66c00e commit 9112fd8
3 files changed
Lines changed: 458 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | 189 | | |
186 | 190 | | |
| |||
545 | 549 | | |
546 | 550 | | |
547 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
| |||
0 commit comments