<div dir="ltr">Should be fixed on master. Let me know if you run into any more issues reusing readers though.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 8:02 AM, Mark Hiner <span dir="ltr"><<a href="mailto:hinerm@gmail.com" target="_blank">hinerm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">See <a href="https://github.com/scifio/scifio/issues/57" target="_blank">Issue 57</a><br></div><div class="HOEnZb">
<div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 7:53 AM, Mark Hiner <span dir="ltr"><<a href="mailto:hinerm@gmail.com" target="_blank">hinerm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Michael,<br><br></div> This definitely should work. The Metadata attached to a Reader should determine the image dimensionality, and the Metadata should be re-parsed automatically when setting the source.<br>
<br></div> Oh.. but looking at the source, the PNG reader has state (it remembers the last plane it read. So if the reader was stateless (which it's supposed to be) it should work. I'll just have to make a pass through the formats and remove any state from the readers, or if that's not possible I'll make sure they reset properly when calling setSource.<br>
<br>Thanks for pointing this out,<br>Mark<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 7:13 AM, Michael Zinsmaier <span dir="ltr"><<a href="mailto:michael.zinsmaier@gmx.de" target="_blank">michael.zinsmaier@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi together,<br>
<br>
is it possible to use the same reader for multiple files of the same format?<br>
I want to read e.g. 10 .png files that may differ in their dimensionality but use all the same format and encoding can I reuse a reader instead of doing the potentially expensive format tests for each file. We tried it naively with reader.setSource which somehow works but<br>
dimensionality and size data is not rediscovered => the reader tries to load all images with the same size.<br>
<br>
Is their a better way to do this?<br>
(We still want to use the format discovery for the first image but assume for all others that they have the same format.)<br>
<br>
Best Regards Michael<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>