输入图像的帧,计算出来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 center of the photo. % Outputs: % CCM: CCM
可以参考,但是算法本身问题不少