<div dir="ltr"><div><div><div>Has anybody tried to read my image file (available <a href="https://dl.dropboxusercontent.com/u/9312078/frame0001.dcm" target="_blank">here</a>)? <br>Do you think my problem is related to the image itself or to my ITK compilation?<br>

<br></div>Thanks<br></div><br></div>Luca<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>
<br><br><div class="gmail_quote">On 21 May 2013 17:35, Luca Tersi <span dir="ltr">&lt;<a href="mailto:lucatersi@gmail.com" target="_blank">lucatersi@gmail.com</a>&gt;</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>Ok, you can download it from <a href="https://dl.dropboxusercontent.com/u/9312078/frame0001.dcm" target="_blank">here</a>.<br></div>It is part of a DICOM series already processed and saved with ITK.<br>

Thanks for your help.<br>
L<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 class="h5">
<br><br><div class="gmail_quote">On 21 May 2013 17:22, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">The compiler should not matter.<br><br>Can you share a dicom file that you cannot open?<br></div><div><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">&lt;<a href="mailto:lucatersi@gmail.com" target="_blank">lucatersi@gmail.com</a>&gt;</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>
<br><br><div class="gmail_quote">On 21 April 2013 00:50, Luca Tersi <span dir="ltr">&lt;<a href="mailto:lucatersi@gmail.com" target="_blank">lucatersi@gmail.com</a>&gt;</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&#39;m missing something..<br></div>Thanks a lot<br>






</div>Luca<br><br></div>PS. I&#39;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">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</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">&lt;<a href="mailto:lucatersi@gmail.com" target="_blank">lucatersi@gmail.com</a>&gt;</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&#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>
<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>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div>