Brightness and contrast

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Ahmed_Zikry
Posts: 15
Joined: Fri, 2014-08-15, 08:12

Brightness and contrast

#1 Post by Ahmed_Zikry »

Hello,

Is there a way to change brightness and contrast of dicom image before changing it before converting dicom image to pgm or any other image type.

J. Riesmeier
DCMTK Developer
Posts: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Brightness and contrast

#2 Post by J. Riesmeier »

I guess you are talking about the command line tool dcm2pnm (or dcmj2pnm or dcml2pnm). There are numerous command line options that allow for setting the VOI (Value of Interest) transformation:

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
    +Wfl  --linear-function     set VOI LUT function to LINEAR
    +Wfs  --sigmoid-function    set VOI LUT function to SIGMOID

Ahmed_Zikry
Posts: 15
Joined: Fri, 2014-08-15, 08:12

Re: Brightness and contrast

#3 Post by Ahmed_Zikry »

Thanks, only [Ww], who gave me the results needed.

Post Reply

Who is online

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