Skip to content

Keep n components#5138

Merged
wyli merged 2 commits intoProject-MONAI:devfrom
rijobro:keep_n_components
Sep 13, 2022
Merged

Keep n components#5138
wyli merged 2 commits intoProject-MONAI:devfrom
rijobro:keep_n_components

Conversation

@rijobro
Copy link
Copy Markdown
Contributor

@rijobro rijobro commented Sep 13, 2022

Fixes #3809.

Description

Adds num_components argument. Defaults to 1 for backwards compatibility.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Richard Brown <[email protected]>
Signed-off-by: Richard Brown <[email protected]>
@rijobro rijobro requested review from Nic-Ma and wyli and removed request for Nic-Ma September 13, 2022 11:15
@rijobro
Copy link
Copy Markdown
Contributor Author

rijobro commented Sep 13, 2022

cc @a-parida12

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Sep 13, 2022

/build

Copy link
Copy Markdown
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good to me.

@wyli wyli enabled auto-merge (squash) September 13, 2022 12:19
@wyli wyli merged commit d64c6d2 into Project-MONAI:dev Sep 13, 2022
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.

Add support to keep more than 1 component in KeepLargestConnected

2 participants