How can I use the Proc.Negative function to correctly invert the grayscale values for a DICOM image that has a RescaleSlope value of <> 1, and where DICOM_Range is iedrSetBlackWhite?
I'm attaching a sample project together with a sample DICOM file. The first TImageEnView control loads the image with the defaults, the second TImageEnView sets DICOM_Range to iedrSetBlackWhite.
When I call the Proc.Negative function, the first TImageEnView control inverts the colors correctly, but the second TImageEnView displays a flat white image.
Is there some other setting that needs to be set in this case?
That option works, but it isn't feasible because we need to be able to identify each pixel's original HU value. Is using a color map feasible to invert the values?