Skip to content

Conversation

@SkalskiP
Copy link
Collaborator

@SkalskiP SkalskiP commented Nov 5, 2025

Description

This pull request adds a new utility function for filtering mask segments based on distance, along with corresponding documentation and comprehensive tests. The new function, filter_segments_by_distance, allows users to keep the largest connected component in a boolean mask and any other components within a configurable distance threshold, measured either by edge proximity or centroid distance. The function is exposed in the public API and is now documented and tested for various scenarios.

@SkalskiP SkalskiP merged commit c7e9548 into develop Nov 5, 2025
21 checks passed
This was referenced Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants