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

NPatterson pattersonnp.work at gmail.com
Tue Apr 15 04:57:43 EDT 2014


Hi, 
 I have been adapting the ResampleDICOM example to resample CT and PET
images from 512x512 to 128x128. The example code exhibits exactly the same
behaviour as my slightly adapted code, so I won't repost the code here. 

http://www.itk.org/Wiki/ITK/Examples/DICOM/ResampleDICOM

  When running the CT images through the example, the resampling works
without a problem. However, when running the PET images through I observe
that:- 

Spacing is incorrect : [0.976563, 0.976563, 1]     (The 1 should be 3.5mm,
by the X and Y are correct) 

Also, the Position array (the physical position of the first voxel in each
slice) is set to 0,0,(sliceNumber). 

However the correct values are determined for the CT image, namely:- 

[0.976562, 0.976562, 3.5]  - voxels dimensions (Correctly ready) 

Some sample patient position of first voxel in each slice.. 
-249.512\-374.512\1230.5 
-249.512\-374.512\1234 
-249.512\-374.512\1237.5 
-249.512\-374.512\1241 
-249.512\-374.512\1244.5 
-249.512\-374.512\1248 
-249.512\-374.512\1251.5 
-249.512\-374.512\1255 
  
(Again, all correct). 



Can anybody explain what I am not understanding about the treatment of my CT
and my PET images? 

Regards, Nick. 



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Misunderstood-ResampleDICOM-example-behaviour-tp7585365.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


More information about the Community mailing list