-
Notifications
You must be signed in to change notification settings - Fork 17
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
Change RGB detection to be based on channel names #153
Conversation
Since the condition |
Tests fail because multiscales blobs are not correctly set up with provided channel names. scverse/spatialdata#342 would need to be merged first. |
@aeisenbarth Thanks again, sorry it took some time |
See #150
To give users more control over whether a 3/4-channel image is interpreted and visualized as RGB, channel names now need to be explicitly set to ["r", "g", "b"]. Therefore,
to_spatial_image
would have a new argumentrgb=True
to override the channel names (or auto-detect withrgb=None
).