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!
window/level with rescale slope/intercept
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2505
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: window/level with rescale slope/intercept
Unless you pass the flag CIF_IgnoreModalityTransformation to the DicomImage constructor the Modality LUT transformation (e.g. Rescale Slope/Intercept) is applied.
Re: window/level with rescale slope/intercept
thanks! I take it the window/level returned by DicomImage::getWindow() always respect the rescale slope/intercept with a constructor of flags=0.
Who is online
Users browsing this forum: Google [Bot] and 1 guest