<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div>
<div>
<div>Are you reading into a 2D image? &nbsp;A 2D image only stores 2D origin, spacing, etc.</div>
<div><br>
</div>
<div>If you want to preserve the 3rd dimension, you will have to read a single slice into a 3D image.</div>
<div><br>
</div>
<div>I am just guessing that this might be the problem.</div>
<div>
<div>
<div><br>
</div>
<div>Hans</div>
<div>--&nbsp;</div>
<div>
<div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Hans J. Johnson, Ph.D.</span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt"><a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a></span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Assistant Professor of Psychiatry</span></font></div>
<div style="font-family:Calibri; font-size:15px"><span class="Apple-style-span" style="font-size:13px; font-family:Arial">University of Iowa Carver College of Medicine</span></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt"><span class="Apple-style-span" style="font-family:Calibri; font-size:15px">
<div><span class="Apple-style-span" style="font-size:13px; font-family:Arial">W278 GH, 200 Hawkins Drive</span></div>
</span></span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Iowa City, Iowa 52242</span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Phone:&nbsp; 319-353-8587</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>Yi-Yu Chou &lt;<a href="mailto:yiyu.chou@gmail.com">yiyu.chou@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thursday, August 16, 2012 10:54 AM<br>
<span style="font-weight:bold">To: </span>Xiaofeng Z &lt;<a href="mailto:xf10036@outlook.com">xf10036@outlook.com</a>&gt;<br>
<span style="font-weight:bold">Cc: </span>ITK Users &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Insight-users] Bug in DicomSeriesReadSeriesWrite ??<br>
</div>
<div><br>
</div>
<div>
<div>yes. I tried on 2 different datasets, and I got same issues...<br>
<br>
<div class="gmail_quote">On Thu, Aug 16, 2012 at 11:45 AM, Xiaofeng Z <span dir="ltr">
&lt;<a href="mailto:xf10036@outlook.com" target="_blank">xf10036@outlook.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>
<div dir="ltr">REALLY?<br>
<br>
<br>
<br>
<div>
<div></div>
<hr>
Date: Thu, 16 Aug 2012 10:40:26 -0400<br>
From: <a href="mailto:yiyu.chou@gmail.com" target="_blank">yiyu.chou@gmail.com</a><br>
To: <a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br>
Subject: [Insight-users] Bug in DicomSeriesReadSeriesWrite ??
<div>
<div class="h5"><br>
<br>
<div>Dear ITK users,</div>
<div>&nbsp;</div>
<div>I'm playing with&nbsp;DicomSeriesReadSeriesWrite, but I noticed that values in tags
<br>
&quot;ImagePositionPatient&quot; and &quot;ImageOrientationPatient&quot; were not restored correctly.</div>
should be:<br>
(0020,0032) DS [112.81570415012\-115.84296800997\110.38483167658] <br>
(0020,0037) DS [-0.0484719045791\0.99882454638764\2.34458564e-008\-0.1526400678013...<br>
<div>but I got:<br>
(0020,0032) DS [112.81570415012\-115.84296800997\0]&nbsp;&nbsp;&nbsp; &lt;-- z-value is 0 for all slices<br>
(0020,0037) DS [1\0\0\0\1\0] </div>
<div>&nbsp;</div>
<div>Is it a bug in&nbsp;DICOM IO ?<br>
Any suggestions would be greatly appreciated !!!</div>
Thanks in advance.<br>
YIYU<br>
ps. I'm running itk4.2<br>
<br>
</div>
</div>
_____________________________________ Powered by <a href="http://www.kitware.com" target="_blank">
www.kitware.com</a> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a> Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a> Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a> Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a></div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</span><br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.&nbsp; If you are not the intended recipient, you are hereby notified that any
 retention, dissemination, distribution, or copying of this communication is strictly prohibited.&nbsp; Please reply to the sender that you have received the message in error, then delete it.&nbsp; Thank you.
<hr>
</body>
</html>