LightControl example for C++ Builder
void __fastcall TForm1::LightControlClick(TObject *Sender)
{
L_UINT LowerAvr [3];
L_UINT Average [3];
L_UINT UpperAvr [3];
LowerAvr[0]= 100;/*for blue, gray or yuv*/
LowerAvr[1]= 120;/*for green*/
LowerAvr[2]= 80; /*for red*/
Average [0]= 150;/*for blue, gray or yuy*/
Average [1]= 140;/*for green*/
Average [2]= 128;/*for red*/
UpperAvr[0]= 190;/*for blue, gray or yuv*/
UpperAvr[1]= 200;/*for green*/
UpperAvr[2]= 220;/*for red*/
LEADImage1->LightControl( LowerAvr, Average, UpperAvr, RGB_SPACE );
}