Currently, module inputs of type Img (and ImagePlus, Dataset, etc. via converters) are handled by ObjectWidget and SwingObjectWidget that offer a simple JComboBox with a list of convertible objects.
It would be nice to offer more flexibility via a style attribute, to allow:
- reading images from files (
style="file")
- choosing from either a list of open images, or a file (
style="file-or-image")
Another (maybe more elegant) option would be to create a singleton object that shows up as "Load from file..." option in any dropdown list for image inputs, thereby allowing to choose an open image or load from file at will.
See saalfeldlab/bigwarp#42 (comment) for the discussion that triggered this issue.
Currently, module inputs of type
Img(andImagePlus,Dataset, etc. via converters) are handled byObjectWidgetandSwingObjectWidgetthat offer a simpleJComboBoxwith a list of convertible objects.It would be nice to offer more flexibility via a
styleattribute, to allow:style="file")style="file-or-image")Another (maybe more elegant) option would be to create a singleton object that shows up as "Load from file..." option in any dropdown list for image inputs, thereby allowing to choose an open image or load from file at will.
See saalfeldlab/bigwarp#42 (comment) for the discussion that triggered this issue.