wbalance.c | 19 void estmateWhite(unsigned char *src, int len, int *wr, int *wb, int *wg){ 95 *wg = sum15b/count15b; 97 *wg = *wb = *wr=255; 101 void estmateWhiteBox(unsigned char *src, int iw, int ih, int x,int y, int *wr, int *wb, int *wg){ 127 *wg = g/sum; 139 int wg; local 143 estmateWhite(rgb,len,&wr,&wg,&wb); 145 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb); 147 int min = MIN(wr, MIN(wg, wb)); 148 int max = MAX(wr, MAX(wg, wb)) [all...] |