Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow segmentation pipeline to handle blank images #607

Merged
merged 6 commits into from
Jun 21, 2022
Merged

Conversation

ngreenwald
Copy link
Member

If you haven't already, please read through our contributing guidelines before opening your PR

What is the purpose of this PR?
Updates the segmentation pipeline to work with images without any cells.

How did you implement your changes
Check for number unique objects in segmentation mask. If there aren't any cells, skips the regionprops extraction and just returns an empty df. Also adds tests to prevent future reversions

@ngreenwald ngreenwald added the bug Something isn't working label Jun 20, 2022
@ngreenwald ngreenwald requested a review from srivarra June 20, 2022 17:48
@ngreenwald ngreenwald requested a review from srivarra June 20, 2022 21:30
Copy link
Contributor

@srivarra srivarra left a comment

Choose a reason for hiding this comment

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

I think it looks great!

@ngreenwald ngreenwald merged commit 4574097 into master Jun 21, 2022
@ngreenwald ngreenwald deleted the empty_seg_mask branch June 21, 2022 19:21
@srivarra srivarra mentioned this pull request Jun 29, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants