Commit 2dc6bba
authored
* 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.
* Add tests for GLCM texture metrics (#963)
29 tests covering validation, quantization, known-value checks,
NaN handling, edge cases, all six metrics, angle averaging, and
cross-backend consistency (numpy vs dask, cupy, dask+cupy).
* Update docs and README for GLCM texture (#963)
Add glcm_texture to the focal reference docs and to the README
feature matrix. CuPy/Dask+CuPy marked as CPU-fallback.
* Add GLCM texture user guide notebook (#963)
Demonstrates single/multi metric usage, angle effects, Dask support,
and parameter reference on a synthetic four-texture raster.
* Rename GLCM notebook to 23 (#963)
* Add interactive GLCM texture explorer (#963)
Standalone script with a six-zone synthetic raster. Keyboard
controls cycle through metrics, window sizes, gray levels, and
angles. Clicking a pixel shows its local GLCM matrix and a bar
chart of all six Haralick feature values.
1 parent ede4c44 commit 2dc6bba
File tree
8 files changed
+1337
-0
lines changed- docs/source/reference
- examples
- user_guide
- xrspatial
- tests
8 files changed
+1337
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
0 commit comments