Lines Matching defs:thresh
103 int thresh = 255*3;
117 if(tmp < thresh)
118 thresh = tmp;
123 thresh = (thresh + 255*3 + 255*3)/3;
139 if(tmp[0]+tmp[1]+tmp[2] < thresh){
170 int thresh = 255;
176 if(buffer[i + j + k*bw + l] < thresh)
177 thresh = buffer[i + j + k*bw + l];
182 thresh = (thresh + 255 + 255)/3;
196 if(tmp < thresh){
716 double thresh)
722 DBG(10,"sanei_magic_isBlank: start: %f\n",thresh);
724 /*convert thresh from percent (0-100) to 0-1 range*/
725 thresh /= 100;
767 DBG (5, "sanei_magic_isBlank: sum:%f lines:%d thresh:%f density:%f\n",
768 imagesum,params->lines,thresh,imagesum/params->lines);
770 if(imagesum/params->lines <= thresh){
788 int dpiX, int dpiY, double thresh)
801 /*convert thresh from percent (0-100) to 0-1 range*/
802 thresh /= 100;
804 DBG (10, "sanei_magic_isBlank2: start %d %d %f %d\n",xhalf,yhalf,thresh,blockpix);
835 /* block was darker than thresh, keep image */
836 if(blocksum/yhalf > thresh){
869 /* block was darker than thresh, keep image */
870 if(blocksum/yhalf > thresh){