Working with dicom Images, I have a two trackbars: TrackBarBlack and TrackBarWhite.
I need to set these trackbars the min and max values to control Blackvalue and WhiteValue of a dicom image.
The first track:TrackBarBlack control the BlackValue and the second, TrackBarWhite the WhiteValue.
How could I check the pixel format of a dicom image and set these values at runtime?
pseudo code:
if DicomPixelFormat=xx then begin
TrackBarBlack.Min=???
TrackBarBlack.Max=???
TrackBarWhite.Min=???
TrackBarWhite.Max=???
end else if if DicomPixelFormat=yy then begin
TrackBarBlack.Min=???
TrackBarBlack.Max=???
TrackBarWhite.Min=???
TrackBarWhite.Max=???
end;
Luiz