% CORS = [Xaverage,Yaverage] = VideoOIScenter(frame)
% get the center of the OIS test char
% Inputs:
% frame, jpg photo, and also one frmae from mpg
% Outputs:
% [Xaverage,Yaverage]
% the position of the center. Pixel
% CORS = [r,gr,gb,b]=splitBayer(in,bayer_order)
% from frmae of photo, get the ccm data ,and AWBdata
% Inputs:
% in, the image need capture in light box,and there is color checker
% bayer_order the oder of FRAME. rggb and so on
% Output
输入图像的帧,计算出来ccm和awb的增益
% CORS = [CCM, WB_gain] = CalCCM(FRAME,FrameGR,width,height,bayer_order)
% from frmae of photo, get the ccm data ,and AWBdata
% Inputs:
% FRAME, the image need capture in light box,and there is color checker
% in the