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

Handle segmentation conversion too #9

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Handle segmentation conversion too #9

merged 3 commits into from
Nov 21, 2024

Conversation

hannah-martinez
Copy link
Member

Closes #8

The code infers whether a dataset is image or segmentation data through the SourceBytesPerPixel attribute. If 1 or 2, it assumes uint8 or uint16 image, if 3 or more it assumes 3 channel uint8 segmentation. If in the future we encounter SourceBytesPerPixel values other than 1, 2, or 3, we may need to do another refactor.

@hannah-martinez hannah-martinez linked an issue Nov 15, 2024 that may be closed by this pull request
@hannah-martinez hannah-martinez self-assigned this Nov 15, 2024
@hannah-martinez hannah-martinez merged commit 3e5b40a into main Nov 21, 2024
1 of 4 checks passed
@hannah-martinez hannah-martinez deleted the segmentation branch November 21, 2024 17:23
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.

Handle segmentation
2 participants