[Insight-users] Modality LUT transform with gdcmIO

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Feb 20 18:01:06 EST 2007


Jesús,

	No ITK will always apply the modality LUT for grayscale image. You 
cannot control this option. There is IMHO no reason to disable this 
behavior. Please describe why you are looking for something like this 
This is potentially dangerous, since it will affect professional 
interpretation of the image.

-Mathieu

Jesús Spí­nola wrote:
> Is this behaviour modificable? I mean, is there a method in the proper 
> gdcm class to turn on/off  the modality lut transforms?
> 
> 2007/2/8, Mathieu Malaterre < mathieu.malaterre at kitware.com 
> <mailto:mathieu.malaterre at kitware.com>>:
> 
>     Jesús Spí­nola wrote:
>      > Hello,
>      >
>      > I'm reading a series of DICOM images with the itk::ImageSeriesReader
>      > class attaching the itk::GDCMImageIO as the ImageIO for the
>     series reader.
>      > When the rescale intercept and rescale slope values are present
>     in the
>      > dicom series, this parameters are applied to the resulting
>     itk::Image.
>      > Another way of define a rescale of the values of the raw pixels
>     of the
>      > dicom images is the modality lut. If present, does gdcm apply this
>      > modality lut to the resulting image? If it does not, there's any
>     method
>      > to make gdcm apply this lut?
> 
> 
>     Hi Jesús,
> 
>        Yes GDCM will apply any modality lut directly for you. In case of an
>     RGB image be sure to construct a RGB pixeltype for reading your image.
> 
>     HTH
>     Mathieu
> 
> 



More information about the Insight-users mailing list