Skip to content

perf: apply spaghetti inspired procedure to 4-connected - #150

Merged
william-silversmith merged 6 commits into
masterfrom
wms_binary_spaghetti_4
Jun 4, 2026
Merged

perf: apply spaghetti inspired procedure to 4-connected#150
william-silversmith merged 6 commits into
masterfrom
wms_binary_spaghetti_4

Conversation

@william-silversmith

@william-silversmith william-silversmith commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Handles label transitions between foreground and background.

Drops EPL estimation for binary 2d images as the extra pass doesn't buy enough when you can use a static analysis to drop the allocation size. Though maybe it would make sense to keep it for memory constrained applications. On the other hand, for memory constrained applications, we should really be using a dillencourt type algorithm.

@william-silversmith william-silversmith added performance Lower memory or faster computation. binary Applies to binary images. labels Jun 4, 2026
@william-silversmith william-silversmith self-assigned this Jun 4, 2026
On 3D multilabel images EPL saves time by reducing the allocation
of the UF buffer, but since binary images can use a static reduction
factor, it costs time. Allocation costs are also reduced for smaller
arrays.
@william-silversmith
william-silversmith marked this pull request as ready for review June 4, 2026 21:12
@william-silversmith
william-silversmith merged commit 20f549e into master Jun 4, 2026
6 checks passed
@william-silversmith
william-silversmith deleted the wms_binary_spaghetti_4 branch June 4, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

binary Applies to binary images. performance Lower memory or faster computation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant