<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I submitted a bug report, MWE included.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">
<a href="https://issues.itk.org/jira/browse/ITK-3176">https://issues.itk.org/jira/browse/ITK-3176</a><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 9:44 AM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi guys,</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">
I want to convert a nifti file into a dicom file (single 3D .dcm file, not a series). For this I modified ImageReadWrite example (int dimension=3). However, the converted file loses inter-slice spacing information (1.2 gets changed into 1.0). The command I use is:</div>
<div class="gmail_default" style="font-size:small"><font face="courier new, monospace">ImageReadWrite.exe example.mha example.dcm</font></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">Converting into MetaImage works as expected (spacing preserved):</div><div class="gmail_default" style="font-size:small"><font face="courier new, monospace">ImageReadWrite.exe example.mha example.mha</font><br>
</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">Is this a bug in DICOM writer or am I doing something wrong?</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>
</blockquote></div><br></div>