<div dir="ltr">Are you saying the same file could be read prior to the upgrade?<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 17, 2013 at 5:26 AM, Luca Tersi <span dir="ltr"><<a href="mailto:lucatersi@gmail.com" target="_blank">lucatersi@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"><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>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" 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" 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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>