<div dir="ltr"><div>Dear all,<br><br></div>I've been using ITK and VTK for a while, but
after a recent upgrade to ITK4.3.1, I cannot open DICOM series or
single .dcm files. I obtain the following exception:<br>
<p style="margin:0px;text-indent:0px;font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"><br></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">itk::ExceptionObject (0x2a12eb0)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Location: "unknown" </span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">File: /home/lt/Work/FLUORO/kitware/ITK4.3.1_src/Modules/IO/GDCM/src/itkGDCMImageIO.cxx</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Line: 335</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Description: itk::ERROR: GDCMImageIO(0x3180830): Cannot read requested file</span></p><p style="margin:0px;text-indent:0px">
<br><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"></span></p><p style="margin:0px;text-indent:0px"><br></p><div>This is my code:<br><br> QString filename = QFileDialog::getOpenFileName(currentDir, "*", this, "Open file dialog", "Choose Input DICOM File" );<br>
if ( filename.length() == 0 )<br> {<br> cout<<"aborted"<<endl;<br> return;<br> }<br> <br> typedef itk::Image< IntPixelType, voxelDimension > IntVolumeType;<br> typedef itk::ImageFileReader< IntVolumeType > IntVolumeReaderType;<br>
IntVolumeReaderType::Pointer reader=IntVolumeReaderType::New();<br> reader->SetFileName ( filename.latin1() );<br> ImageIOType::Pointer gdcmImageIO = ImageIOType::New();<br> reader->SetImageIO ( gdcmImageIO );<br>
<br> try<br> {<br> reader->Update();<br> }<br> catch ( itk::ExceptionObject & excp )<br> {<br> std::cerr << "Error reading the images " << std::endl;<br> std::cerr << excp << std::endl;<br>
return;<br> }<br></div><br><br><br><br>If I do not specify any IO object (it was working with ITK4.2.1) I get:<br><br>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">itk::ImageFileReaderException (0x13a7510)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Location: "void itk::ImageFileReader<TOutputImage, ConvertPixelTraits>::GenerateOutputInformation() [with TOutputImage = itk::Image<short unsigned int, 3u>; ConvertPixelTraits = itk::DefaultConvertPixelTraits<short unsigned int>]" </span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">File: /home/lt/Work/FLUORO/kitware/ITK4.3.1_src/Modules/IO/ImageBase/include/itkImageFileReader.hxx</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Line: 143</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)">Description: Could not create IO object for file /run/media/lt/CODONICS/DICOM/ST000000/SE000015/XA000000</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> Tried to create one of the following:</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> JPEGImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> GDCMImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> BMPImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> LSMImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> PNGImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> TIFFImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> VTKImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> StimulateImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> BioRadImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> MetaImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> NiftiImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> NrrdImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> GiplImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> HDF5ImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> You probably failed to set a file suffix, or</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Ubuntu Mono';font-size:11pt;color:rgb(51,51,51)"> set the suffix to an unsupported type.</span></p><br><div>Is anybody having the same issue? Do you have any hints?<br>
<br></div>Thanks in advance<br><br>Luca<div><font size="1"><font>---<br></font><br><b>Luca Tersi, Ph.D.</b><br>
<i>Health Sciences and Technologies - Interdepartmental Center for Industrial Research (HST - ICIR)
</i><br><i>Alma Mater Studiorum - University of Bologna; </i>Via Cavalcavia 797, I-47521 Cesena (FC) - Italy<br></font><font size="1">----------------------------------------------------------------------------------------------------------</font><br>
<br></div>
</div>