suyashkumar / dicom

⚡High Performance DICOM Medical Image Parser in Go.
MIT License
934 stars 136 forks source link

Auto-scale pixel intensity values #2

Open suyashkumar opened 5 years ago

suyashkumar commented 5 years ago

The dicomutil CLI utility does not currently autoscale colors and intensities, but should probably do so.

suyashkumar commented 5 years ago

We can support a default autoscaling (redistribution) of values based on the min and max pixel value (purely for draft display purposes), while working on implementing the pipeline to look at the VOI LUT parameters and apply those scalings. To fully capture this will take some careful effort, as there are many branches of logic it might take to apply this correctly (including applying sigmoid scaling in some cases, or using certain defaults in certain cases, etc.).

AFAIK this applies to NativePixelData images, not sure about Encapsulated.