<div dir="ltr">Hi Felix,<div><br></div><div>Apologies for the delay in reply. Due to work surrounding the ImgLib2 release, this is an exceptionally busy time.</div><div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">An ImgPlus is required, but none exists</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">The issue is that ImageJ2 uses the ImgPlus and Dataset classes for images, but ImageJ1 uses ij.ImagePlus. And the automatic conversion between these types is currently incomplete. The "Enable ImageJ2 data structures" option of Edit > Options > ImageJ2 is intended to toggle this auto-conversion, but it currently has performance problems, so is off by default.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">We have a plan to address these issues, but it will be some time before the work can be completed.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Some related issues in the issue tracker:</span></div><div><font face="arial, sans-serif">* <a href="https://github.com/imagej/imagej-legacy/issues/95">https://github.com/imagej/imagej-legacy/issues/95</a></font><br></div><div><span style="font-family:arial,sans-serif">*</span><span style="font-family:arial,sans-serif"> </span><font face="arial, sans-serif"><a href="https://github.com/imagej/imagej-legacy/issues/86">https://github.com/imagej/imagej-legacy/issues/86</a><br></font></div><div><span style="font-family:arial,sans-serif">*</span><span style="font-family:arial,sans-serif"> </span><font face="arial, sans-serif"><a href="https://github.com/imagej/imagej-legacy/issues/31">https://github.com/imagej/imagej-legacy/issues/31</a><br></font></div><div><span style="font-family:arial,sans-serif">*</span><span style="font-family:arial,sans-serif"> </span><font face="arial, sans-serif"><a href="https://github.com/imagej/imagej-legacy/issues/22">https://github.com/imagej/imagej-legacy/issues/22</a><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">In the meantime, it may be easier to use ImageJ 1.x's image data structure:</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">   @Parameter</font></div><div><font face="arial, sans-serif">   ImagePlus imp;</font></div><div><font face="arial, sans-serif"><br></font></div><div>Instead of the IJ2/ImgLib2 ones.</div><div><br></div><div>Regards,</div><div>Curtis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 8:52 AM, MEYENHOFER Felix <span dir="ltr"><<a href="mailto:felix.meyenhofer@unifr.ch" target="_blank">felix.meyenhofer@unifr.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
during my first attempts of implementing a ij2 plugin I realised that the following point is not clear to me:<br>
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<br>
<br>
        @Parameter(type = ItemIO.INPUT)<br>
        private ImgPlus<FloatType> img;<br>
or<br>
        @Parameter(type = ItemIO.INPUT)<br>
        private Dataset ds;<br>
<br>
but when running such code I get a warning-dialog saying; “An ImgPlus is required, but none exists”<br>
So I open an image and run  the plugin again. The same dialog appears again.<br>
All the other types work well (String, File, etc.). Is this a bug or am I missing something.<br>
<br>
Best regards,<br>
<br>
Felix<br>
_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagej.net">ImageJ-devel@imagej.net</a><br>
<a href="http://imagej.net/mailman/listinfo/imagej-devel" target="_blank">http://imagej.net/mailman/listinfo/imagej-devel</a><br>
</blockquote></div><br></div>