<div dir="ltr">Guillaume make some good points.  DICOM is difficult partially because of the variations in how metadata is stored per modality and vendor.<div><br></div><div>A couple of other tips:</div><div><br></div><div>
- Make sure to use v4.5.2 or Git master to have the fix for writing GDCM z-spacing.</div><div>- Watch out for variations in the rescale slope/intercept tags per slice that are common with PET.</div><div>- Calling the static method gdcm::SetForcePixelSpacing( true ) [1] may help with some non-standard files.</div>
<div><br></div><div>HTH,</div><div>Matt</div><div><br></div><div>[1] <a href="http://gdcm.sourceforge.net/html/classgdcm_1_1ImageHelper.html#ac7534b9c604f8e4e7cdd024244aff1e2">http://gdcm.sourceforge.net/html/classgdcm_1_1ImageHelper.html#ac7534b9c604f8e4e7cdd024244aff1e2</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 15, 2014 at 9:14 AM, Guillaume Lemaître <span dir="ltr"><<a href="mailto:g.lemaitre58@gmail.com" target="_blank">g.lemaitre58@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">Hi Nick,<div><br></div><div>From what you are bringing up, it seems that the problem could be during the reading. Could you check the value of tag manually. I mean not with gdcm to see if you obtained the same output (I would go with matlab). If the values are the same, the problem if any could come from what is already written in the header of the DICOM and not itk.</div>

<div><br></div><div>Cheers,</div><div><br></div></div><div class="gmail_extra"><div class=""><br><br><div class="gmail_quote">On 15 April 2014 14:46, NPatterson <span dir="ltr"><<a href="mailto:pattersonnp.work@gmail.com" target="_blank">pattersonnp.work@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Having done some more investigating, it appears that the origin that is<br>
returned from the call:<br>
<br>
reader->GetOutput()->GetOrigin()<br>
and<br>
reader->GetOutput()->GetSpacing()<br>
<br>
are not returning the correct values for the PET DICOM files. I have no<br>
ideas as to why this is...<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Misunderstood-ResampleDICOM-example-behaviour-tp7585365p7585367.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Misunderstood-ResampleDICOM-example-behaviour-tp7585365p7585367.html</a><br>


<div><div>Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div>-- <br><div dir="ltr"><div><span style="font-family:'Times New Roman';font-size:medium"><table style="width:638px" border="0" cellpadding="0">
<tbody><tr style="height:37.5pt">
<td style="width:228px;height:37.5pt;padding-top:0.75pt;padding-right:0.75pt;padding-bottom:0.75pt;padding-left:0.75pt" align="left" valign="top"><b><span style="font-family:Arial,Helvetica;font-size:8pt">LEMAÎTRE Guillaume</span><span style="font-size:8pt;font-family:Helvetica"><br>

</span><font size="1"><span style="font-family:Arial">PhD Candiate<br>MSc Erasmus Mundus ViBOT (Vision-roBOTic)<br></span></font><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><font color="#000000">MSc Business Innovation and Technology Management (in progress)<br>

</font></span></b><span style="font-size:7.5pt;font-family:Arial" lang="EN-GB"><b><br></b><font color="#0DB02B"><a href="mailto:g.lemaitre58@gmail.com" target="_blank">g.lemaitre58@gmail.com</a><br><br></font></span><p></p>

</td><td style="width:400px;height:37.5pt;padding-top:0.75pt;padding-right:0.75pt;padding-bottom:0.75pt;padding-left:0.75pt" align="left" valign="top"><span style="font-size:8pt"><b><span style="font-family:Arial,Helvetica"><font color="#000000">ViCOROB - Computer Vision and Robotic Team</font></span></b></span><span style="font-size:7.5pt;font-family:Arial"><font color="#000000"><br>

Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona<br>Tel. <a href="tel:%2B34%20972%2041%2098%2012" value="+34972419812" target="_blank">+34 972 41 98 12</a> - Fax. <a href="tel:%2B34%20972%2041%2082%2059" value="+34972418259" target="_blank">+34 972 41 82 59</a> </font></span><br>
<span lang="EN-GB"><a href="http://vicorob.udg.es/" style="font-family:Arial;font-size:7.5pt" target="_blank">http://vicorob.udg.es/</a><br>
<font color="#000000"><b><font face="Arial, Helvetica"><span style="font-size:11px">LE2I - Le Creusot</span></font><br></b><font face="Arial" size="1">IUT Le Creusot, Laboratoire LE2I, 12 rue de la Fonderie, 71200 Le Creusot<br>

Tel. <a href="tel:%2B33%203%2085%2073%2010%2090" value="+33385731090" target="_blank">+33 3 85 73 10 90</a></font></font><span style="font-family:Arial;font-size:x-small"> - Fax. <a href="tel:%2B33%203%2085%2073%2010%2097" value="+33385731097" target="_blank">+33 3 85 73 10 97</a></span><span style="font-family:Arial;font-size:x-small"> </span><span style="font-family:Arial;font-size:x-small"><br>

</span><span lang="EN-GB" style="font-family:Arial;font-size:7.5pt"><a href="http://le2i.cnrs.fr" target="_blank">http://le2i.cnrs.fr</a></span></span></td></tr></tbody></table></span></div><div style="text-align:left"><img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103962984/config/le2i.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103388011/config/vico.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103887254/config/ub.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340103809482/config/udg.png">  <img src="https://sites.google.com/site/glemaitre58/_/rsrc/1340104225210/config/vibot.png"></div>

<a href="https://sites.google.com/site/glemaitre58/" target="_blank">https://sites.google.com/site/glemaitre58/</a><br>Vice - Chairman of A.S.C. Fours UFOLEP<br>Chairman of A.S.C. Fours FFC<br>Webmaster of <a href="http://ascfours.free.fr" target="_blank">http://ascfours.free.fr</a></div>


</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.kitware.com/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" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>