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

Add widget for single-channel images #89

Open
imagejan opened this issue Jan 7, 2020 · 0 comments
Open

Add widget for single-channel images #89

imagejan opened this issue Jan 7, 2020 · 0 comments

Comments

@imagejan
Copy link
Member

imagejan commented Jan 7, 2020

Many common image analysis workflows run on one or several selected channels of multi-channel images. Depending on the image storage format, the separate channels might exist in separate files or in a single dataset.
This makes it often necessary to split or merge channels, depending on the plugin being used and how it defines its inputs.

To allow developers to create more generic plugins, I propose to add a new widget allowing to ask specifically for single-channel images. In a script, this could e.g. look like:

#@ Img (style="single-channel") mySingleChannelImg

which could be rendered in a widget like this:

image

All that would be needed is a new Widget that supports Img (or Dataset) parameters when they have the single-channel style annotation.
The widget could then accept both images that already have a single channel only, or -- when provided a multi-channel image -- ask for which channel index should be taken as input. (Although a nice dynamic way of changing channel choices, or disabling channel choice for single-channel images, would have to wait for scijava/scijava-common#42 (comment) or similar being implemented.)

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

No branches or pull requests

1 participant