You cannot reshuffle the builtin I/O&#39;s. You could unregister each of them and reregister the ones you want in the order you want.<br><br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 1:25 PM, Curtis Rueden <span dir="ltr">&lt;<a href="mailto:ctrueden@wisc.edu" target="_blank">ctrueden@wisc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Matthias,<div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

I want to use the cpp wrapped bioformat reader with itk to read ome.tif files. The interfacing with itk however is kind of not working properly. First I have to unregister the base readers (jpg, png etc. )using the command itk::ObjectFactoryBase::<u></u>ReHash(); If I don&#39;t do this, one of base readers will try to load the tiff image. Namely the TiffImageIO. Since the image in question is tiled, this read operation will fail. And therfore the bioformat reader will never be activated. If I use the ReHash() function, the bioformat reading works, but all other reader/writers are unregistered in the ObjectFactoryBase. In registering them manually for e.g. png saving a output region of the read ome.tiff image. The bioformat reader will always tell itk that he can write the input image. But he sould not, since I choose .png as the output format. I&#39;m not quite shure what I&#39;m doing wrong concerning the reader. I thought the plugin should behave as a normal itk reader/writer.<br>


</blockquote><div><br></div></div><div>I am CCing the ITK-users list, since I think your question is a more general one about the ITK ImageIO plugin mechanism. It seems to me that all you really need is a simple way to reshuffle the order of the available ImageIO plugins—in this case, to give the Bio-Formats ITK plugin a higher priority than the built-in TIFF ImageIO plugin. Does anyone know a good way to do this?</div>


<div><br></div><div>Thanks,</div><div>Curtis</div><div><br></div><div>P.S. The ImageIO plugin Matthias is talking about is here:</div><div>   <a href="http://loci.wisc.edu/bio-formats/itk" target="_blank">http://loci.wisc.edu/bio-formats/itk</a></div>


<div><br></div><div><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 11:09 AM,  <span dir="ltr">&lt;<a href="mailto:matthias.noll@igd.fraunhofer.de" target="_blank">matthias.noll@igd.fraunhofer.de</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Matthias Noll sent a message using the contact form at <a href="http://loci.wisc.edu/contact" target="_blank">http://loci.wisc.edu/contact</a>.<br>



<br>
Hello,<br>
I want to use the cpp wrapped bioformat reader with itk to read ome.tif files. The interfacing with itk however is kind of not working properly. First I have to unregister the base readers (jpg, png etc. )using the command itk::ObjectFactoryBase::<u></u>ReHash(); If I don&#39;t do this, one of base readers will try to load the tiff image. Namely the TiffImageIO. Since the image in question is tiled, this read operation will fail. And therfore the bioformat reader will never be activated. If I use the ReHash() function, the bioformat reading works, but all other reader/writers are unregistered in the ObjectFactoryBase. In registering them manually for e.g. png saving a output region of the read ome.tiff image. The bioformat reader will always tell itk that he can write the input image. But he sould not, since I choose .png as the output format. I&#39;m not quite shure what I&#39;m doing wrong concerning the reader. I thought the plugin should behave as a normal itk reader/writer.<br>



I&#39;m greatful for any kind of help.<br>
Thanks Matthias<br>
</blockquote></div><br></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br><br>