Commit 3c5946c
authored
fix: Clean elements outside mask for multiple otsu method (#1319)
Fix problem from image:

## Summary by Sourcery
Bug Fixes:
- Zero out segmentation voxels outside the mask when a mask is provided
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Segmentation now properly respects masks: background/invalid regions
are excluded from size calculations and threshold annotations, resulting
in accurate component sizes and per-component thresholds when a mask is
applied.
* **Chores**
* Project configuration updated to list an additional tool/library; this
is a metadata change with no direct user-facing impact.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 11c3869 commit 3c5946c
File tree
2 files changed
+3
-0
lines changed- .github
- package/PartSegCore/segmentation
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| 645 | + | |
| 646 | + | |
645 | 647 | | |
646 | 648 | | |
647 | 649 | | |
| |||
0 commit comments