Code: Select all
shiva@RSV-HP-ENVY-15-Notebook-PC:~/PET phantom/PET phantom$ dcm2pnm --write-png -v --min-max-window -im content0.dcm out.png
I: reading DICOM file: content0.dcm
I: preparing pixel data
W: invalid value for 'FrameTime' (0) ... ignoring
I: dumping image parameters
I: filename : content0.dcm
I: transfer syntax : Little Endian Explicit
I: SOP class : PositronEmissionTomographyImageStorage
I: SOP instance UID : 1.2.826.0.1.3680043.2.88.1508.401.1.46.20110829201211492
I: columns x rows : 128 x 128
I: bits per sample : 1
I: color model : MONOCHROME2
I: pixel aspect ratio : 1.00
I: number of frames : 1 (1 processed)
I: VOI LUT function : <default>
I: VOI windows in file : 0
I: VOI LUTs in file : 0
I: presentation shape : <default>
I: overlays in file : 0
I: maximum pixel value : 0
I: minimum pixel value : 0
I: activating VOI window min-max algorithm
I: writing frame 1 to out.png
I: cleaning up memory
As you can see the min / max pixel value is zero. So its unable to compute Window Level based on min/max. Other viewers like clearcanvas are able to properly read this image. Link to file http://filebin.ca/2ivtg7zfpA4B/content0.dcm
I am using dcmtk 3.6.1. Can I somehow patch dcmtk to make this work. Please advise