Commit 69c315c
Add waterz region graph + merge_id, branch_merge with singleton, IoU module, oracle ARE, bbox cleanup
waterz (lib/waterz):
- Add get_region_graph() using JIT scoring functions (any merge_function)
with channel masking (all/z/xy) via affinity zeroing
- Add merge_id() C++/Cython: union-find merge on edge lists (4 modes:
ID-only, +affinity, +count, +both), ported from waterz_dw
- Clean up: remove standalone C++ region graph scan, single get_region_graph
entry point for all scoring functions
- frontend_merge.cpp now contains only merge_segments
connectomics:
- Add data/process/iou.py: bbox-accelerated seg_to_iou and segs_to_iou
ported from em_util
- Add data/process/bbox.py: replace find_objects with em_util row/col scan
- Add metrics/segmentation_numpy.py: adapted_rand_oracle for incremental
per-GT oracle ARE (O(nnz_per_row) instead of O(volume))
- Add decoding/decoders/branch_merge.py: singleton_size_ratio parameter
for merging single-slice fragments via size ratio
- Update decode_waterz: dust_merge_size/dust_merge_affinity/dust_remove_size
renamed parameters
Reference docs: em_util.md, waterz_dw.md updated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 69bfa31 commit 69c315c
24 files changed
Lines changed: 2415 additions & 741 deletions
File tree
- .claude/reference
- connectomics
- config/schema
- data/process
- decoding
- decoders
- tuning
- inference
- metrics
- training/lightning
- scripts
- tests/unit
- tutorials
- bases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
0 commit comments