<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Dženan,<br>
      <br>
      this is not the problem because the spacing is not 0. And other
      frameworks like ImageJ can<br>
      read the .dcm image and save it as a .mhd image.<br>
      <br>
      best regards,<br>
      Mustafa<br>
      <br>
      Am 10/24/2016 um 5:01 PM schrieb Dženan Zukić:<br>
    </div>
    <blockquote
cite="mid:CAPf2UMShOEXkZ1hRWrU6icUaoM+g+QPj5K5_A_tJdQKOqHfe-g@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              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:part2.9F873CC4.9FDFB843@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 moz-do-not-send="true"
              href="http://www.kitware.com" rel="noreferrer"
              target="_blank">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at<br>
            <a moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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 moz-do-not-send="true"
              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>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>