[ImageJ-devel] Parameter decorator and supported classes

MEYENHOFER Felix felix.meyenhofer at unifr.ch
Wed Oct 15 08:52:40 CDT 2014


during my first attempts of implementing a ij2 plugin I realised that the following point is not clear to me:
thanks to the widget demo of the imagej-tutorials I managed to define my UI in the ij2-way. Now during my further research to find a way to easily define an image input and getting the dialog with the Parameter decorator I found examples like

	@Parameter(type = ItemIO.INPUT)
	private ImgPlus<FloatType> img;
	@Parameter(type = ItemIO.INPUT)
	private Dataset ds;

but when running such code I get a warning-dialog saying; “An ImgPlus is required, but none exists”
So I open an image and run  the plugin again. The same dialog appears again.
All the other types work well (String, File, etc.). Is this a bug or am I missing something.

Best regards, 


More information about the ImageJ-devel mailing list