Hi Gabriel,<br>don&#39;t really know whether this can solve the problem, but start by checking that the image pixel type and dimensionality of your reader are the same as the actual DICOM you want to read.<br><br>Kind regards,<br>
JON HAITZ<br><br><br><div class="gmail_quote">On 22 October 2012 13:35, Gabriel Santiago <span dir="ltr">&lt;<a href="mailto:santiago.eletrica@gmail.com" target="_blank">santiago.eletrica@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">Hi guys,<br><br>I am trying to read a DICOM file using ITK. I am doing exactly what is described in the ITK User Guide but I am getting some weird error messages. Here they are:<br>
<br><span style="color:rgb(0,0,153)"><b> overriding ‘itk::ImageBase&lt;VImageDimension&gt;::Pointer itk::ImageBase&lt;VImageDimension&gt;::CreateAnother() const [with unsigned int VImageDimension = 3u, itk::ImageBase&lt;VImageDimension&gt;::Pointer = itk::SmartPointer&lt;itk::ImageBase&lt;3u&gt; &gt;]’<br>

<br>overriding ‘virtual itk::LightObject::Pointer itk::Object::CreateAnother() const’ <br><br>invalid covariant return type for ‘itk::ImageBase&lt;VImageDimension&gt;::Pointer itk::ImageBase&lt;VImageDimension&gt;::CreateAnother() const [with unsigned int VImageDimension = 3u, itk::ImageBase&lt;VImageDimension&gt;::Pointer = itk::SmartPointer&lt;itk::ImageBase&lt;3u&gt; &gt;]’<br>

<br>invalid covariant return type for ‘itk::LightObject::Pointer itk::Image&lt;TPixel, VImageDimension&gt;::CreateAnother() const [with TPixel = int, unsigned int VImageDimension = 3u, itk::LightObject::Pointer = itk::SmartPointer&lt;itk::LightObject&gt;]’</b></span><br>

<br>All of them are not in my code. Can anyone here, please tell me what is going on?<br><br>Thank you all,<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br>Gabriel Santiago<br><br>~&quot;As long as I live so long do I learn&quot;~<div>
Ramakhrishna</div>
<br>
</font></span><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>