Hello,<br><br>I have moved from ITK 3.20 to latest ITKv4 (from GIT) because I needed some features of GDCM 2.0. I use ITK only for reading/writing DICOM and .tiff images and some filtration routines.<br><br>It seems, that everything works well after migration except the part of writing 3D volume to single .dcm file via itkImageFileWriter. My program crashes, when performing this part of code located in itkImageFileWriter.txx. It stops on line &quot;throw e;&quot;<br>
<br>  if ( m_ImageIO.IsNull() )<br>    {<br>    ImageFileWriterException e(__FILE__, __LINE__);<br>    std::ostringstream       msg;<br>    msg &lt;&lt; &quot; Could not create IO object for file &quot;<br>        &lt;&lt; m_FileName.c_str() &lt;&lt; std::endl;<br>
    msg &lt;&lt; &quot;  Tried to create one of the following:&quot; &lt;&lt; std::endl;<br>      {<br>      std::list&lt; LightObject::Pointer &gt; allobjects =<br>        ObjectFactoryBase::CreateAllInstance(&quot;itkImageIOBase&quot;);<br>
      for ( std::list&lt; LightObject::Pointer &gt;::iterator i = allobjects.begin();<br>            i != allobjects.end(); ++i )<br>        {<br>        ImageIOBase *io = dynamic_cast&lt; ImageIOBase * &gt;( i-&gt;GetPointer() );<br>
        msg &lt;&lt; &quot;    &quot; &lt;&lt; io-&gt;GetNameOfClass() &lt;&lt; std::endl;<br>        }<br>      }<br>    msg &lt;&lt; &quot;  You probably failed to set a file suffix, or&quot; &lt;&lt; std::endl;<br>    msg &lt;&lt; &quot;    set the suffix to an unsupported type.&quot; &lt;&lt; std::endl;<br>
    e.SetDescription( msg.str().c_str() );<br>    e.SetLocation(ITK_LOCATION);<br>    throw e;<br>    }<br><br>Don&#39;t know, where could be the problem, on ITK 3.20 it normally saved data in 3D DICOM volume file.<br><br>
I figured out, that very similar problem I get when reading .tiff files via itkImageFileReader. When reading DICOM series via itkImageSeriesReader.h I have no problems.<br><br>I compiled ITK in Debug mode in MVSC++ and I used CMake.<br>
<br>Thanks for any help!<br clear="all"><br>-- <br>S pozdravem Bc. Michal Srna<br><br>Fotografické portfolio:<br><a href="http://michalsrna.cz">http://michalsrna.cz</a><br>