# load dicom images generated by dcmtk 

**URL:** <https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247>\
**Category:** Support\
**Created:** [April 22, 2020, 11:23am UTC](https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247 "2020-04-22T11:23:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![filipaferreira](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@filipaferreira](https://discourse.slicer.org/u/filipaferreira)\
**Post date:** [April 22, 2020, 11:23am UTC](https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247/1 "2020-04-22T11:23:29Z")

</div>

Hi, I’m using dcmtk to load dicom images using cmd.  
But when I load the image it comes very grayish and opaque, we can´t see anything.  
And the original image shows an abdomen.  
Any Idea what could be?

(I’m using a tcpsrv file for the server and a tcpprt.exe file to send the image  
using this command : tcpprt.exe -c “C:\Users\ASUS\Desktop\DcmPrint\test\tcpprt-1.cfg” -a 1 -t 192.168.137.1:3100 -aet PRINT\_SCU “C:\Users\ASUS\Desktop\DcmPrint\test\CT.1.2.392.200036.9116.2.6.1.3268.2055352805.1562047084.630692”)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 22, 2020, 1:58pm UTC](https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247/2 "2020-04-22T13:58:35Z")

</div>

If you set Window Center (0028,1050) and Window Width (0028,1051) DICOM attributes then the image will be loaded with that brightness/contrast setting. You can always adjust the displayed brightness/contrast of the image as shown [here](https://discourse.slicer.org/t/feedback-requested-how-to-improve-mouse-interaction-in-views/6420).

---

<div class="post-metadata">

**Author:** ![filipaferreira](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@filipaferreira](https://discourse.slicer.org/u/filipaferreira)\
**Post date:** [April 22, 2020, 2:32pm UTC](https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247/3 "2020-04-22T14:32:41Z")

</div>

> [@lassoan](#):
>
> setting

I don´t have that elements in my file, the onlything that I have related is the “VOILUT”

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 22, 2020, 2:56pm UTC](https://discourse.slicer.org/t/load-dicom-images-generated-by-dcmtk/11247/4 "2020-04-22T14:56:06Z")

</div>

Slicer’s scalar volume reader plugin currently does not consider VOI LUT but it should not be too hard for you to add it. The reader is implemented in Python (DICOMScalarVolumePlugin.py, you can find it among installed Slicer files) and you can make the necessary changes around [here](https://github.com/Slicer/Slicer/blob/master/Modules/Scripted/DICOMPlugins/DICOMScalarVolumePlugin.py#L398-L409). If you managed to implement it then a pull request is welcome. We would be also happy to help if you get stuck with something.
