<div dir="ltr">Hi Carnë, <div><br></div><div>> <span style="font-family:arial,sans-serif;font-size:13px">I have just done so</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">Thank you!</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">> </span><span style="font-family:arial,sans-serif;font-size:13px">But were all the 3 problems the result of the same bug?</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">Probably two separate yet related issues, actually. I wrote up an explanation on the GitHub issue:</span></div>
<div> <a href="https://github.com/imagej/imagej-legacy/issues/81">https://github.com/imagej/imagej-legacy/issues/81</a><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Regards,</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">Curtis</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 15, 2014 at 8:32 AM, Carnë Draug <span dir="ltr"><<a href="mailto:carandraug+dev@gmail.com" target="_blank">carandraug+dev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14 August 2014 21:47, Curtis Rueden <<a href="mailto:ctrueden@wisc.edu">ctrueden@wisc.edu</a>> wrote:<br>
> Hi Carnë,<br>
<div class="">><br>
> On Thu, Aug 14, 2014 at 12:18 PM, Carnë Draug <<a href="mailto:carandraug%2Bdev@gmail.com">carandraug+dev@gmail.com</a>><br>
> wrote:<br>
</div><div class="">>> I open the sample image "blobs" and the plugin will print "8-bit"<br>
>> (expected). Then I open the sample "CT" and it prints "16-bit"<br>
>> (expected). I then select the blobs image, run it again but get<br>
>> "16-bit"<br>
><br>
> This is a bug in the ImageJ2 legacy layer, responsible for keeping the<br>
> ImageJ2 data structures in sync with ImageJ 1.x. Could you please file an<br>
> issue at <a href="https://github.com/imagej/imagej-legacy/issues" target="_blank">https://github.com/imagej/imagej-legacy/issues</a> ?<br>
><br>
<br>
</div>I have just done so [1]. But were all the 3 problems the result of the same bug?<br>
<br>
1) it was picking the last opened image instead of last active;<br>
2) it was giving the data type of the image when opened and not the<br>
current data type;<br>
3) running the same plugin on the same image would do no nothing if<br>
the window was still open<br>
<br>
Or are these different bugs and I should report them separately?<br>
<br>
Also, then how do I use the ImageJ2 libraries to get the current<br>
image? How do I go around to get a RandomAccessible out of an opened<br>
image if I plan to implement an net.imagej.ops.Op that handles ND<br>
images?<br>
<br>
Carnë<br>
<br>
[1] <a href="https://github.com/imagej/imagej-legacy/issues/81" target="_blank">https://github.com/imagej/imagej-legacy/issues/81</a><br>
</blockquote></div><br></div>