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.
Brightness and contrast
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Brightness and contrast
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
-
- Posts: 15
- Joined: Fri, 2014-08-15, 08:12
Re: Brightness and contrast
Thanks, only [Ww], who gave me the results needed.
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 1 guest