Ij.ui().show() using Converters?

fiji
imagej
#1

SciJava Converters are used to automatically fit input data to the input parameters of Commands or Ops. But it seems like it’s not used for displaying the data.

Right now I have to write something like this:

Object output = ij.convert().convert(maskGPU, RandomAccessibleInterval.class);
ij.ui().show(output);

… but I would like to just write it like this:

ij.ui().show(output);

… and let the DefaultDisplayService figure out if it can convert this object to something displayable.

Can I already do this / could we make this work? I would look into the details if this idea makes sense to others.

2 Likes