<div dir="ltr">The compiler should not matter.<br><br>Can you share a dicom file that you cannot open?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:14 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><div><div><div><div>Dear Bill,<br><br></div>I finally managed to test my code on a Windows platform (MinGW) using ITK 4.3.2 and everything seems to work properly.<br>
</div>I tried again on linux and both 4.3.1 and 4.3.2 do not work.<br>
<br></div>Might it be a compiler related issue? (gcc 4.8 on linux and 4.7 on windows)<br><br></div>Thanks a lot <br><br></div>Luca<br><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><font style="font-size:x-small"><br>
---</font><br><div><span style="font-size:x-small">----------------------------------------------------------------------------------------------------------</span></div></div><div><div class="h5">
<br><br><div class="gmail_quote">On 21 April 2013 00:50, 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><div><div>Yes, it could be read. I can switch between 4.3.1 and 4.2.1 (same cmake settings): I can open any DICOM file with 4.2.1 but not with 4.3.1. Maybe I'm missing something..<br></div>Thanks a lot<br>
</div>Luca<br><br></div>PS. I'm working on Linux Manjaro 64-bit, next week I will try to run it on Windows<br></div><div class="gmail_extra"><br clear="all"><div><font style="font-size:x-small"><br>
---</font><br><div><span style="font-size:x-small">----------------------------------------------------------------------------------------------------------</span></div></div><div><div>
<br><br><div class="gmail_quote">On 19 April 2013 21:09, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@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">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"><div><div>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>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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></div></div>_____________________________________<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><span><font color="#888888"><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</font></span></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>