<div dir="ltr">Can you change your output to:<div><pre style="white-space:pre-wrap;color:rgb(0,0,0);margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">std</span>::cerr<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"Could</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">not</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">CreateImageIO</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">for:</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> "|" << </span>fn.toStdString().c_str()<span style="color:rgb(192,192,192)"> </span><<<span style="color:rgb(192,192,192)"> "|" << </span><span style="color:rgb(128,0,128)">std</span>::endl;</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0);margin-top:0px;margin-bottom:0px"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0);margin-top:0px;margin-bottom:0px">Perhaps there is a leading or trailing space in the filename?</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 28, 2015 at 2:27 PM, Soren Christensen <span dir="ltr"><<a href="mailto:sorench@gmail.com" target="_blank">sorench@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"><span style="font-size:12.8px">Hi Matt,</span><div style="font-size:12.8px"> Thanks for the reply!</div><div style="font-size:12.8px">Yes MetaImageIO seems to be on the list third-last below.</div><div style="font-size:12.8px">Let me know what I can do to trouble shoot!  </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks!</div><div style="font-size:12.8px">Soren</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>NiftiImageIO (0x2892ed0)</div><div>NrrdImageIO (0x2893420)</div><div>GiplImageIO (0x2893e70)</div><div>HDF5ImageIO (0x28944c0)</div><div>JPEGImageIO (0x28946c0)</div><div>GDCMImageIO (0x2894bc0)</div><div>BMPImageIO (0x2894f90)</div><div>LSMImageIO (0x2895840)</div><div>PNGImageIO (0x2895ed0)</div><div>TIFFImageIO (0x28961b0)</div><div>VTKImageIO (0x2896740)</div><div>StimulateImageIO (0x2896ac0)</div><div>BioRadImageIO (0x28970c0)</div><div>MetaImageIO (0x2897490)</div><div>MRCImageIO (0x28984c0)</div><div>MINCImageIO (0x28988f0)</div></div><div style="font-size:12.8px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Sep 27, 2015 at 12:46 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Soren,<br>
<br>
When the registered IO's are printed, do they include MetaIO?<br>
<br>
Thanks,<br>
Matt<br>
<div><div><br>
On Sun, Sep 27, 2015 at 3:06 PM, Soren Christensen <<a href="mailto:sorench@gmail.com" target="_blank">sorench@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
>  I gave problems getting  ImageIOFactory to return a valid pointer.<br>
><br>
><br>
> I am trying this:<br>
><br>
><br>
>     itk::ImageIOBase::Pointer imageIO =<br>
><br>
>             itk::ImageIOFactory::CreateImageIO(<br>
><br>
>                testfile, itk::ImageIOFactory::ReadMode);<br>
><br>
><br>
>     if( !imageIO )<br>
><br>
>     {<br>
><br>
>         std::cerr << "Could not CreateImageIO for: " <<<br>
> fn.toStdString().c_str() << std::endl;<br>
><br>
>         return 1;<br>
><br>
>     }<br>
><br>
><br>
><br>
> I get:<br>
><br>
>  Could not CreateImageIO for:  /tmp/itk1_014_000.mhd<br>
><br>
><br>
> I can open this file with ITK snap without issues.<br>
><br>
><br>
> When I do this:<br>
><br>
><br>
>     RegisteredObjectsContainerType registeredIOs =<br>
><br>
>       itk::ObjectFactoryBase::CreateAllInstance( "itkImageIOBase" );<br>
><br>
>               << registeredIOs.size()<br>
><br>
>               << " IO objects available to the ImageFileReader.\n" <<<br>
> std::endl;<br>
><br>
><br>
> I get:<br>
><br>
> 16 IO objects available to the ImageFileReader.<br>
><br>
><br>
> I build with Qt/CMake<br>
><br>
><br>
> So what am I missing here?<br>
><br>
> Thanks in advance!<br>
><br>
> Soren<br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br></div>
</div></div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Unpaid intern in BillsBasement at noware dot com<br></div>
</div>