Skip to content

Allow more flexible image input options #71

@imagejan

Description

@imagejan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions