[Dcmlib] Rescale slope - problem!
Mathieu Malaterre
mathieu.malaterre at kitware.com
Wed Nov 9 13:48:04 CET 2005
Jean-Pierre Roux wrote:
> Joel Kullberg wrote:
>
>> Hi
>>
>> I am a new user of gdcm through the ITK package and I would like to
>> turn the rescaling of when Dicom data is read.
>>
>> I saw the “user friendly” rescale slope entry on the online “TODO-list”.
>>
>> I now wonder how to do this in today’s version?
>>
> Hi, Joel.
> Sorry for being late to answer.
>
> Actually, we considered it's an 'aplication level' problem
> (visualisation), and not a gdcm problem -it wouln't be very clever to
> modify pixel values to take into account 'rescale slope' and 'rescale
> intercept'-
> We let users getting those two values, and pass them to VTK, or Qt, or
> any visualisation library they use.
Joel,
Sorry I missed your first post in the ML...
Anyway if you want to have a look at what an application level looks
like, have a look at the itk-level that I wrote:
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/IO/itkGDCMImageIO.cxx?root=Insight
In particular the templated function RescaleSlope
HTH
Mathieu
More information about the Dcmlib
mailing list