[ITK-users] [ITK] Misunderstood ResampleDICOM example behaviour

Matt McCormick matt.mccormick at kitware.com
Tue Apr 15 09:28:25 EDT 2014


Guillaume make some good points.  DICOM is difficult partially because of
the variations in how metadata is stored per modality and vendor.

A couple of other tips:

- Make sure to use v4.5.2 or Git master to have the fix for writing GDCM
z-spacing.
- Watch out for variations in the rescale slope/intercept tags per slice
that are common with PET.
- Calling the static method gdcm::SetForcePixelSpacing( true ) [1] may help
with some non-standard files.

HTH,
Matt

[1]
http://gdcm.sourceforge.net/html/classgdcm_1_1ImageHelper.html#ac7534b9c604f8e4e7cdd024244aff1e2


On Tue, Apr 15, 2014 at 9:14 AM, Guillaume Lemaître
<g.lemaitre58 at gmail.com>wrote:

> Hi Nick,
>
> 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.
>
> Cheers,
>
>
>
> On 15 April 2014 14:46, NPatterson <pattersonnp.work at gmail.com> wrote:
>
>> Having done some more investigating, it appears that the origin that is
>> returned from the call:
>>
>> reader->GetOutput()->GetOrigin()
>> and
>> reader->GetOutput()->GetSpacing()
>>
>> are not returning the correct values for the PET DICOM files. I have no
>> ideas as to why this is...
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://itk-insight-users.2283740.n2.nabble.com/Misunderstood-ResampleDICOM-example-behaviour-tp7585365p7585367.html
>> Sent from the ITK Insight Users mailing list archive at Nabble.com.
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>
>
>
> --
>
>
>
>
> *LEMAÎTRE Guillaume PhD CandiateMSc Erasmus Mundus ViBOT
> (Vision-roBOTic)MSc Business Innovation and Technology Management (in
> progress) *
> g.lemaitre58 at gmail.com
>
> *ViCOROB - Computer Vision and Robotic Team*
> Universitat de Girona, Campus Montilivi, Edifici P-IV 17071 Girona
> Tel. +34 972 41 98 12 - Fax. +34 972 41 82 59
> http://vicorob.udg.es/
>
> *LE2I - Le Creusot*IUT Le Creusot, Laboratoire LE2I, 12 rue de la
> Fonderie, 71200 Le Creusot
> Tel. +33 3 85 73 10 90 - Fax. +33 3 85 73 10 97
> http://le2i.cnrs.fr
>
> https://sites.google.com/site/glemaitre58/
> Vice - Chairman of A.S.C. Fours UFOLEP
> Chairman of A.S.C. Fours FFC
> Webmaster of http://ascfours.free.fr
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140415/36e8e991/attachment.html>


More information about the Insight-users mailing list