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 "throw e;"<br>
<br> if ( m_ImageIO.IsNull() )<br> {<br> ImageFileWriterException e(__FILE__, __LINE__);<br> std::ostringstream msg;<br> msg << " Could not create IO object for file "<br> << m_FileName.c_str() << std::endl;<br>
msg << " Tried to create one of the following:" << std::endl;<br> {<br> std::list< LightObject::Pointer > allobjects =<br> ObjectFactoryBase::CreateAllInstance("itkImageIOBase");<br>
for ( std::list< LightObject::Pointer >::iterator i = allobjects.begin();<br> i != allobjects.end(); ++i )<br> {<br> ImageIOBase *io = dynamic_cast< ImageIOBase * >( i->GetPointer() );<br>
msg << " " << io->GetNameOfClass() << std::endl;<br> }<br> }<br> msg << " You probably failed to set a file suffix, or" << std::endl;<br> msg << " set the suffix to an unsupported type." << std::endl;<br>
e.SetDescription( msg.str().c_str() );<br> e.SetLocation(ITK_LOCATION);<br> throw e;<br> }<br><br>Don'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>