why dose the dcm2pnm work not fine?

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
norman
Posts: 4
Joined: Thu, 2005-06-09, 08:57

why dose the dcm2pnm work not fine?

#1 Post by norman »

I use the dcm2pnm funtion to convert DICOM image to BMP image file,but I find the BMP image too bad,it like the gray sky.but the DICOM image was showed very in the efilm.
could any one tell me how can i do it?Mybe the dcm2pnm function need some especial parameter? :?:

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

You should specify an appropriate VOI window:

Code: Select all

VOI LUT transformation:
    -W    --no-windowing        no VOI windowing (default)
    +Wi   --use-window          [n]umber : integer
                                use the n-th VOI window from image file
    +Wl   --use-voi-lut         [n]umber : integer
                                use the n-th VOI look up table from image file
    +Wm   --min-max-window      compute VOI window using min-max algorithm
    +Wn   --min-max-window-n    compute VOI window using min-max algorithm,
                                ignoring extreme values
    +Wr   --roi-min-max-window  [l]eft [t]op [w]idth [h]eight : integer
                                compute ROI window using min-max algorithm,
                                region of interest is specified by l,t,w,h
    +Wh   --histogram-window    [n]umber : integer
                                compute VOI window using Histogram algorithm,
                                ignoring n percent
    +Ww   --set-window          [c]enter [w]idth : float
                                compute VOI window using center c and width w
If the image does not contain any useful VOI window you could try the min-max window (+Wm).

norman
Posts: 4
Joined: Thu, 2005-06-09, 08:57

than you very much!

#3 Post by norman »

Jörg Riesmeier wrote:You should specify an appropriate VOI window:

Code: Select all

VOI LUT transformation:
    -W    --no-windowing        no VOI windowing (default)
    +Wi   --use-window          [n]umber : integer
                                use the n-th VOI window from image file
    +Wl   --use-voi-lut         [n]umber : integer
                                use the n-th VOI look up table from image file
    +Wm   --min-max-window      compute VOI window using min-max algorithm
    +Wn   --min-max-window-n    compute VOI window using min-max algorithm,
                                ignoring extreme values
    +Wr   --roi-min-max-window  [l]eft [t]op [w]idth [h]eight : integer
                                compute ROI window using min-max algorithm,
                                region of interest is specified by l,t,w,h
    +Wh   --histogram-window    [n]umber : integer
                                compute VOI window using Histogram algorithm,
                                ignoring n percent
    +Ww   --set-window          [c]enter [w]idth : float
                                compute VOI window using center c and width w
If the image does not contain any useful VOI window you could try the min-max window (+Wm).
it worked very fine after using +Wm parameter,Than your Very much!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest