Skip to content

Conversation

@psomhorst
Copy link
Contributor

@psomhorst psomhorst commented Sep 9, 2025

Fixes #441.

WatershedLungspace uses local peaks to find watershed regions. Finally, some regions are included, and some are excluded. This leads to two lists: included and excluded peaks. The definition of excluded peaks was wrong, leading to a list of all pixels, except the location of included peaks. This PR fixes that. The new definition is all peaks, except included peaks.

I added a test that should have caught this issue.

@psomhorst psomhorst changed the base branch from main to develop September 25, 2025 10:21
@psomhorst psomhorst merged commit 58f11b0 into develop Sep 25, 2025
3 checks passed
@psomhorst psomhorst deleted the fix/441-watershed-excluded-peaks branch September 25, 2025 10:21
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.

Watershed excluded peaks are all pixels except included peaks

3 participants