You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deduplicate number_of_pixels and fix doc/naming inconsistencies
R1: three byte-identical number_of_pixels helpers (label_accumulation,
feature_accumulation, node_label_projection) — the feature_accumulation copy
was dead. Add detail::number_of_elements to detail/grid.hxx and route the two
live call sites through it; drop the dead copy.
R9: drop the redundant nb::cast wrappers inside nb::make_tuple in
relabel_sequential_t (make_tuple already casts its arguments).
Docs/naming:
- AGENTS.md: correct the union-find path (util/union_find.hxx, namespace
bioimage_cpp::util, not detail/) and list number_of_elements under grid.hxx.
- agglomeration/detail.hxx: the rekey comment described the opposite of the
code; reword to explain that a kRejectEdge'd edge is deliberately left out of
the heap.
- filters: the public kwarg was window_ratio while the Python API documents
window_size; align the nb::arg keyword and the validation message to
window_size (calls are positional, so behavior is unchanged).
- feature_accumulation: note that float feature values are bit-reproducible
only for a fixed thread count.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments