<div dir="ltr"><div>Dear all,<br><br></div>I&#39;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:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)"><br></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">itk::ExceptionObject (0x2a12eb0)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">Location: &quot;unknown&quot; </span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">Line: 335</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;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, &quot;*&quot;, this, &quot;Open file dialog&quot;, &quot;Choose Input DICOM File&quot; );<br>


  if ( filename.length()  == 0 )<br>    {<br>      cout&lt;&lt;&quot;aborted&quot;&lt;&lt;endl;<br>      return;<br>    }<br>  <br>  typedef itk::Image&lt; IntPixelType, voxelDimension &gt;        IntVolumeType;<br>  typedef itk::ImageFileReader&lt; IntVolumeType &gt;       IntVolumeReaderType;<br>


  IntVolumeReaderType::Pointer reader=IntVolumeReaderType::New();<br>  reader-&gt;SetFileName ( filename.latin1() );<br>  ImageIOType::Pointer gdcmImageIO = ImageIOType::New();<br>  reader-&gt;SetImageIO ( gdcmImageIO );<br>


    <br>  try<br>  {<br>    reader-&gt;Update();<br>  }<br>  catch ( itk::ExceptionObject &amp; excp )<br>  {<br>    std::cerr &lt;&lt; &quot;Error reading the images &quot; &lt;&lt; std::endl;<br>    std::cerr &lt;&lt; excp &lt;&lt; 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:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">itk::ImageFileReaderException (0x13a7510)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">Location: &quot;void itk::ImageFileReader&lt;TOutputImage, ConvertPixelTraits&gt;::GenerateOutputInformation() [with TOutputImage = itk::Image&lt;short unsigned int, 3u&gt;; ConvertPixelTraits = itk::DefaultConvertPixelTraits&lt;short unsigned int&gt;]&quot; </span></p>



<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">Line: 143</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    JPEGImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    GDCMImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    BMPImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    LSMImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    PNGImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    TIFFImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    VTKImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    StimulateImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    BioRadImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    MetaImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    NiftiImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    NrrdImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    GiplImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;font-size:11pt;color:rgb(51,51,51)">    HDF5ImageIO</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:&#39;Ubuntu Mono&#39;;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:&#39;Ubuntu Mono&#39;;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>