<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Mustafa,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">since the offending .dcm is in folder "exports", I assume some tool's DICOM export is broken. Spacing should never be 0. If spacing is not known, it should be set to 1. ITK has a right to complain about this. Can you re-export this file, and perhaps fiddle with export settings a bit?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 6:02 AM, Mustafa Arikan <span dir="ltr"><<a href="mailto:mustafa@inode.at" target="_blank">mustafa@inode.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Dear all,</p>
<p>reading a DICOM file (.dcm) in SimpleITK leads to following
problem:</p>
<p> </p>
<blockquote type="cite">RuntimeError: Exception thrown in SimpleITK
ReadImage:
c:\d\vs9-pkg\simpleitk-build\<wbr>itk\modules\core\common\<wbr>include\itkImageBase.hxx:192:<br>
itk::ERROR: Image(00000000163F8ED0): A spacing of 0 is not
allowed: Spacing is [0, 0, 1]</blockquote>
<img src="cid:part1.E18CBCFB.F762617C@inode.at" alt="">
<p>The code looks like this:</p>
<p> </p>
<blockquote type="cite">import SimpleITK<br>
<br>
inputFileName =
"D:\\workspace\\exports\\<wbr>51871876-25-<wbr>ARTGGEANMAADQAAVSEGAJEAMD+<wbr>BWSTZRRGTFTMNECYDQVUXOXNNVNTRZ<wbr>VWGHRLQ+TNXWEN\\bscan.dcm"<br>
reader = SimpleITK.ImageSeriesReader()<br>
image= SimpleITK.ReadImage(<wbr>inputFileName)<br>
reader.SetFileName ( inputFileName )<br>
imageIn = reader.Execute()</blockquote>
<p>And I am getting the same error within ITK.</p>
<p>But opening the .dcm file with some DICOM-Viewer works.</p>
<p><br>
</p>
<p>thanks in advance,<br>
Mustafa<br>
</p>
</div>
<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>