GetLinearVOILUT example for C++ Builder
void __fastcall TForm1::Button1Click(TObject *Sender)
{
/* check the linearity of the LUT and computes its window width and center
by using GetLinearVOILUT method.*/
L_DOUBLE Width, Center;
L_INT nRet;
LEADImage1->Load("e:\\image1.cmp", 0, 1, 1 );
nRet = LEADImage1->GetLinearVOILUT(Center, Width, 0);
if(nRet == SUCCESS)
ShowMessage( "Window Center = " + FloatToStr(Center) + "\nWindow Width" + FloatToStr(Width));
}