window/level with rescale slope/intercept

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
gzhang
Posts: 50
Joined: Wed, 2015-09-02, 09:24

window/level with rescale slope/intercept

#1 Post by gzhang »

Hi, I have some confusion regarding the window/level when it is associated with some rescale slope/intercept:

Suppose a DicomImage object is constructed with
DicomImage::DicomImage (DcmObject * , const E_TransferSyntax, flags = 0, fstart = 0, fcount = 0)
Are the window/level values returned by DicomImage::getWindow() calculated with or without applying the rescale slope/intercept contained in the Dicom header?

Alternatively, if the DicomImage object is constructed with a specific rescale slope/intercept:
DicomImage::DicomImage (DcmObject * , const E_TransferSyntax, const double slope, const double intercept, flags = 0, fstart = 0, fcount = 0),
Are they going to be reflected by the window/level values returned by DicomImage::getWindow()?

This, of course, can be tested, but what if there is some rescale slope/intercept contained in the header and they are just not read in or recognized correctly?

Thanks for the help!

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

Re: window/level with rescale slope/intercept

#2 Post by J. Riesmeier »

Unless you pass the flag CIF_IgnoreModalityTransformation to the DicomImage constructor the Modality LUT transformation (e.g. Rescale Slope/Intercept) is applied.

gzhang
Posts: 50
Joined: Wed, 2015-09-02, 09:24

Re: window/level with rescale slope/intercept

#3 Post by gzhang »

thanks! I take it the window/level returned by DicomImage::getWindow() always respect the rescale slope/intercept with a constructor of flags=0.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest