<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body 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\itk\modules\core\common\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\\51871876-25-ARTGGEANMAADQAAVSEGAJEAMD+BWSTZRRGTFTMNECYDQVUXOXNNVNTRZVWGHRLQ+TNXWEN\\bscan.dcm"<br>
reader = SimpleITK.ImageSeriesReader()<br>
image= SimpleITK.ReadImage(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>
</body>
</html>