Commit 9a38f2d
authored
Add edge detection filters (Sobel, Laplacian, Prewitt) (#1042)
* Add edge detection filters: Sobel, Laplacian, Prewitt (#1038)
Five new functions (sobel_x, sobel_y, laplacian, prewitt_x, prewitt_y)
that wrap convolution_2d with fixed 3x3 kernels. All four backends
(NumPy, CuPy, Dask+NumPy, Dask+CuPy) are inherited from the existing
convolution infrastructure.
* Add tests for edge detection filters (#1038)
72 tests covering correctness, NaN handling, edge cases, boundary modes,
and cross-backend (NumPy, Dask, CuPy) equivalence.
* Add edge detection filters to focal docs (#1038)
* Add edge detection user guide notebook (#1038)
Covers sobel_x, sobel_y, laplacian, prewitt_x, prewitt_y with
synthetic terrain, directional gradients, edge magnitude, Sobel
vs Prewitt comparison, and boundary mode visualization.
* Add edge detection filters to README feature matrix (#1038)
* Add edge detection methods to .xrs accessor (#1038)
Registers sobel_x, sobel_y, laplacian, prewitt_x, prewitt_y on both
the DataArray and Dataset xrs accessors.1 parent 35d8253 commit 9a38f2d
File tree
8 files changed
+978
-0
lines changed- docs/source/reference
- examples/user_guide
- images
- xrspatial
- tests
8 files changed
+978
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
0 commit comments