slope/intercept in dcmimgle/dcmimage

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
markw
Posts: 84
Joined: Mon, 2005-01-17, 01:08

slope/intercept in dcmimgle/dcmimage

#1 Post by markw »

Hello all,

I am working with MR modality images. Sometimes these images have tags rescale intercept/rescale slope. Reading comp.protocols.dicom the posts say that you should not use intercept/slope on MR modality images.

So does the class dcmimgle/dcmimage which uses intercept/slope before giving you the pixel data take this into account if modailty is MR? Or can MR still use (and should?) really use these tags too?

Thanks,
Mark

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 »

The module dcmimgle always [1] uses the values of Rescale Slope/Intercept if these attributes are present in the dataset. If you don't want this you have the choice to disable the modality LUT transformation by setting the flag CIF_IgnoreModalityTransformation in the constructor of class DicomImage.

[1] Apart from XA and XRF images as required by the DICOM standard.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest