windowing/leveling...in a jpg?!

i can convert dcm (DICOM) files into jpeg files, but i have no idea how to take into account the windowing/leveling of those dicom files. i don't want to straight up have all the values go through the conversion, i want to display only from a certain range. i know some windowing/leveling algorithms, but applying them to my DICOM files doesn't actually change the data of the dicom file (unless you save them as a DICOM tag) but regardless the image data after the header is constant. basically, the visual of a given DCM file with a certain windowing/leveling adjustment i need to get into jpg.



anyone have any ideas?



-raw
[677 byte] By [raw_enha] at [2007-11-19 14:09:13]