Commit a87a483
Fix shrink_labels for 1D face strips in 2D distributed segmentation.
np.gradient on a 1D squeezed face returns a bare array, so
np.linalg.norm(..., axis=0) became a scalar and zeroed every pixel.
That broke tile-boundary stitching for 2D whole-slide runs without
raising an error.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent a54cb48 commit a87a483
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
885 | | - | |
886 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
887 | 891 | | |
888 | 892 | | |
889 | 893 | | |
| |||
0 commit comments