ImageEn, unit iexBitmaps

TIOParams.DICOM_WindowCenterOffset

TIOParams.DICOM_WindowCenterOffset


Declaration

property DICOM_WindowCenterOffset: Double;


Description

Returns the calculated offset of the window center.


Demo

Demo  Demos\InputOutput\DicomRange\Dicom.dpr


Example

ImageEnView1.IO.NativePixelFormat := true;
ImageEnView1.IO.Params.DICOM_Range := iedrSetBlackWhite;
ImageEnView1.IO.LoadFromFile( 'D:\slice91.dcm' );
dcenter := ImageEnView1.IO.Params.DICOM_WindowCenterOffset + StrToFloat( edtLevel.Text );
dMin := dcenter - 0.5 - StrToFloat( edtWidth.Text ) - 1) / 2;
dMax := dcenter - 0.5 + StrToFloat( edtWidth.Text ) - 1) / 2;
ImageEnView1.IEBitmap.BlackValue := dMin;
ImageEnView1.IEBitmap.WhiteValue := dMax;
ImageEnView1.Update();


See Also

DICOM_RescaleSlope
DICOM_RescaleIntercept
DICOM_WindowCenter
DICOM_WindowWidth