# ResampleDICOM example and DCMTK no output

**URL:** <https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654>\
**Category:** Uncategorized\
**Created:** [February 8, 2018, 2:58pm UTC](https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654 "2018-02-08T14:58:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibr](https://discourse.itk.org/user_avatar/discourse.itk.org/ibr/32/468_2.png) [@ibr](https://discourse.itk.org/u/ibr)\
**Post date:** [February 8, 2018, 2:58pm UTC](https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654/1 "2018-02-08T14:58:22Z")

</div>

Dear all,  
I have the same problem as in this post:  
[http://itk-users.7.n7.nabble.com/ITK-users-ResampleDICOM-example-and-DCMTK-td34473.html](http://itk-users.7.n7.nabble.com/ITK-users-ResampleDICOM-example-and-DCMTK-td34473.html)  
in short, no output.  
The problem started when I tried to load large micro CT (13GB) to 3D Slicer. Slicer reported default spacing and origin [1,1,1] and [0,0,0].  
I tried to use ITK directly but I got the same error. I found the above post so I used it. The good news, DCMTK report correct spacing and origin. The bad news, when I do resampling, I got the same error in the post, no output.  
I did a work around by saving the dicom to nrrd file then use Slicer to produce a dicom again when needed but it would be nice if the code above works.  
Best!  
Ibraheem

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [February 8, 2018, 3:45pm UTC](https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654/2 "2018-02-08T15:45:51Z")

</div>

Hi Ibraheem,

In the latest Slicer Nightly, it can optionally use ITK with a DCMTK backend instead of ITK with a GDCM backend, which should be helpful in your case.

HTH,  
Matt

CC: @fedorov @lassoan @jcfr @pieper

---

<div class="post-metadata">

**Author:** ![ibr](https://discourse.itk.org/user_avatar/discourse.itk.org/ibr/32/468_2.png) [@ibr](https://discourse.itk.org/u/ibr)\
**Post date:** [February 8, 2018, 6:02pm UTC](https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654/3 "2018-02-08T18:02:56Z")

</div>

cool, I will give it a try. Thanks for the info.

---

<div class="post-metadata">

**Author:** ![ibr](https://discourse.itk.org/user_avatar/discourse.itk.org/ibr/32/468_2.png) [@ibr](https://discourse.itk.org/u/ibr)\
**Post date:** [February 8, 2018, 6:26pm UTC](https://discourse.itk.org/t/resampledicom-example-and-dcmtk-no-output/654/4 "2018-02-08T18:26:27Z")

</div>

Just tried it. It works perfect. Thanks again
