getpixel 73 lib/gocr/box.c pixel_atp(b, x, y) = getpixel(p, x + x0, y + y0); getpixel 250 lib/gocr/database.c { if((getpixel(b,x2,y2)<cs)) c1='#'; } getpixel 302 lib/gocr/database.c v1=((getpixel(p1,x1+x*dx1/dx,y1+y*dy1/dy)<cs)?1:0); i1=8; // better gray? getpixel 303 lib/gocr/database.c v2=((getpixel(p2,x2+x*dx2/dx,y2+y*dy2/dy)<cs)?1:0); i2=8; // better gray? getpixel 311 lib/gocr/database.c if( ((getpixel(p1,x1+x*dx1/dx+i1*(1+dx1/32),y1+y*dy1/dy+i2*(1+dy1/32))<cs)?1:0) getpixel 312 lib/gocr/database.c !=((getpixel(p2,x2+x*dx2/dx+i1*(1+dx2/32),y2+y*dy2/dy+i2*(1+dy2/32))<cs)?1:0) ) v1++; getpixel 281 lib/gocr/gocr.h int getpixel(pix *p, int x, int y); getpixel 359 lib/gocr/ocr0.c if (getpixel(box1->p,xl+i,yu+i)< cs) break; i3=i; getpixel 361 lib/gocr/ocr0.c if (getpixel(box1->p,xl+i,yu+i)>=cs) break; i3=i-i3; getpixel 363 lib/gocr/ocr0.c if (getpixel(box1->p,xr-i,yu+i)< cs) break; i4=i; getpixel 365 lib/gocr/ocr0.c if (getpixel(box1->p,xr-i,yu+i)>=cs) break; i4=i-i4; getpixel 1629 lib/gocr/ocr0.c if( (getpixel(bp,x ,y )>=cs || dx<7) && getpixel(bp,x+1,y )>=cs getpixel 1630 lib/gocr/ocr0.c && getpixel(bp,x ,y-1)< cs && getpixel(bp,x+1,y-1)< cs ) getpixel 2644 lib/gocr/ocr0.c if( getpixel(bp,x ,y )>=cs && getpixel(bp,x+1,y )>=cs getpixel 2645 lib/gocr/ocr0.c && getpixel(bp,x ,y-1)< cs && getpixel(bp,x+1,y-1)< cs ) { j=0;break; } getpixel 2858 lib/gocr/ocr0.c if ((getpixel(bp,x,y)<cs)!=(getpixel(bp,dx-1-x,y)<cs)) { y=dy+1; break; } getpixel 2943 lib/gocr/ocr0.c if( getpixel(bp,x ,y )>=cs getpixel 2944 lib/gocr/ocr0.c && getpixel(bp,x+1,y )< cs getpixel 2945 lib/gocr/ocr0.c && getpixel(bp,x+1,y-1)< cs getpixel 2946 lib/gocr/ocr0.c && getpixel(bp,x ,y-1)< cs ) { i=0;break; } getpixel 3700 lib/gocr/ocr0.c if ((getpixel(bp,x,y)<cs)!=(getpixel(bp,dx-1-x,y)<cs)) { y=dy+1; break; } getpixel 3892 lib/gocr/ocr0.c if( getpixel(bp,x ,y )>=cs getpixel 3893 lib/gocr/ocr0.c && getpixel(bp,x+1,y )< cs getpixel 3894 lib/gocr/ocr0.c && getpixel(bp,x+1,y-1)< cs getpixel 3895 lib/gocr/ocr0.c && getpixel(bp,x ,y-1)< cs ) { i=0;break; } getpixel 3956 lib/gocr/ocr0.c if( getpixel(bp,x ,y )>=cs getpixel 3957 lib/gocr/ocr0.c && getpixel(bp,x+1,y )< cs getpixel 3958 lib/gocr/ocr0.c && getpixel(bp,x+1,y-1)< cs getpixel 3959 lib/gocr/ocr0.c && getpixel(bp,x ,y-1)< cs ) { i=0;break; } getpixel 6397 lib/gocr/ocr0.c if ((getpixel(bp,x,y)<cs)!=(getpixel(bp,dx-1-x,y)<cs)) { y=dy+1; break; } getpixel 6415 lib/gocr/ocr0.c if( rx*rx + ry*ry < r1*r1 ) if( getpixel(box1->p,x,y)>=cs ){ d++;x=x1+1;y=y1+1; } getpixel 6416 lib/gocr/ocr0.c if( rx*rx + ry*ry > r2*r2 ) if( getpixel(box1->p,x,y)< cs ){ d++;x=x1+1;y=y1+1; } getpixel 93 lib/gocr/output.c if((getpixel(px->p,x2-x0+px->x0, getpixel 114 lib/gocr/output.c { if((getpixel(b,x2,y2)<cs)) c1='@'; } getpixel 148 lib/gocr/output.c fprintf(stderr,"%c", c1[ ((getpixel(b,x,y)<JOB->cfg.cs)?0:8)+marked(b,x,y) ] ); getpixel 152 lib/gocr/output.c fprintf(stderr,"%c", c1[ ((getpixel(b,x,y)<JOB->cfg.cs)?0:8)+marked(b,x,y) ] ); getpixel 134 lib/gocr/pgm2asc.c if( ((getpixel(p,x,y)<cs)?1:0)^(ret&1) ) r0++; else r1++; getpixel 165 lib/gocr/pgm2asc.c q=((getpixel(p,x,y)<cs)?1:0)^(ret&1); getpixel 168 lib/gocr/pgm2asc.c ddy&=(~1)|(((getpixel(p,x+ry,y+rx)<cs)?1:0)^(ret&1)); getpixel 169 lib/gocr/pgm2asc.c ddy&=(~2)|(((getpixel(p,x-ry,y-rx)<cs)?1:0)^(ret&1))*2; getpixel 195 lib/gocr/pgm2asc.c rc |= ((getpixel(p, x, y) < cs) ? 1 : 2); // break if rc==3 getpixel 216 lib/gocr/pgm2asc.c k = ((getpixel(p, x, y) < cs) ? 1 : 0); // 0=white 1=black getpixel 422 lib/gocr/pgm2asc.c prev = getpixel(p, x0, y0) < cs; // 0=white 1=black getpixel 429 lib/gocr/pgm2asc.c color = getpixel(p, x, y) < cs; // 0=white 1=black getpixel 485 lib/gocr/pgm2asc.c r = ((getpixel(p, *x, *y) < cs) ? rb : rw); // select rule getpixel 506 lib/gocr/pgm2asc.c t=((getpixel(p,x,y)<cs)?1:0); getpixel 508 lib/gocr/pgm2asc.c if( t==((getpixel(p,x+dy,y-dx)<cs)?1:0) // right free? getpixel 528 lib/gocr/pgm2asc.c if( (getpixel(p,x,y)<cs)^col ) getpixel 533 lib/gocr/pgm2asc.c if( (getpixel(p,x,y)<cs)^col ) getpixel 538 lib/gocr/pgm2asc.c if( (getpixel(p,x,y)<cs)^col ) getpixel 543 lib/gocr/pgm2asc.c if( (getpixel(p,x,y)<cs)^col ) getpixel 577 lib/gocr/pgm2asc.c col = ((getpixel(p, x, y) < cs) ? 0 : 1); getpixel 594 lib/gocr/pgm2asc.c for ( ; x>0 && (col == ((getpixel(p, x-1, y) < cs) ? 0 : 1)) ; x--); getpixel 598 lib/gocr/pgm2asc.c && col != ((getpixel(p, x , y+dx) < cs) ? 0 : 1) getpixel 599 lib/gocr/pgm2asc.c && col == ((getpixel(p, x-1, y+dx) < cs) ? 0 : 1) getpixel 609 lib/gocr/pgm2asc.c for ( ; x<p->x && (col == ((getpixel(p, x , y) < cs) ? 0 : 1)) ; x++) { getpixel 614 lib/gocr/pgm2asc.c if ( col == ((getpixel(p, x , y+dx) < cs) ? 0 : 1) getpixel 616 lib/gocr/pgm2asc.c col != ((getpixel(p, x-1, y ) < cs) ? 0 : 1) getpixel 617 lib/gocr/pgm2asc.c || col != ((getpixel(p, x-1, y+dx) < cs) ? 0 : 1) ) getpixel 628 lib/gocr/pgm2asc.c && col == ((getpixel(p, x-1, y ) < cs) ? 0 : 1) getpixel 629 lib/gocr/pgm2asc.c && col != ((getpixel(p, x , y ) < cs) ? 0 : 1) getpixel 630 lib/gocr/pgm2asc.c && col != ((getpixel(p, x-1, y+dx) < cs) ? 0 : 1) getpixel 631 lib/gocr/pgm2asc.c && col == ((getpixel(p, x , y+dx) < cs) ? 0 : 1) getpixel 663 lib/gocr/pgm2asc.c i = ((getpixel(p, x, y) < cs) ? 0 : 1); getpixel 678 lib/gocr/pgm2asc.c i == ((getpixel(p, x + dx, y) < cs) ? 0 : 1) /* color */; getpixel 691 lib/gocr/pgm2asc.c g_debug(fprintf(stderr," x=%3d y=%3d d=%d i=%d p=%3d rc=%d\n",x,y,d,i,getpixel(p,x,y),rc);) getpixel 695 lib/gocr/pgm2asc.c && i == ((getpixel(p, x + j, y) < cs) ? 0 : 1); j += dx) { getpixel 705 lib/gocr/pgm2asc.c if ( outbounds(p, nx, ny) || i != ((getpixel(p,nx,ny)<cs) ? 0 : 1) ) { getpixel 806 lib/gocr/pgm2asc.c i1 = ((getpixel(p, x, y ) < cs) ? 0 : 1); getpixel 807 lib/gocr/pgm2asc.c i2 = ((getpixel(p, x + d0[d][0], y + d0[d][1]) < cs) ? 0 : 1); getpixel 811 lib/gocr/pgm2asc.c x,y,ds,d0[ds][0],d0[ds][1],i1,i2,getpixel(p,x,y),mark,cs);) getpixel 896 lib/gocr/pgm2asc.c if ( outbounds(p, nx, ny) || i1 != ((getpixel(p,nx,ny)<cs) ? 0 : 1) ) { getpixel 978 lib/gocr/pgm2asc.c if (getpixel(&b, x, 0) >= cs) getpixel 980 lib/gocr/pgm2asc.c if (getpixel(&b, x, b.y - 1) >= cs) getpixel 984 lib/gocr/pgm2asc.c if (getpixel(&b, 0, y) >= cs) getpixel 986 lib/gocr/pgm2asc.c if (getpixel(&b, b.x - 1, y) >= cs) getpixel 995 lib/gocr/pgm2asc.c if (getpixel(&b, x, y) >= cs) { // hole found getpixel 1054 lib/gocr/pgm2asc.c if (getpixel(&b, x, y) < cs) getpixel 1116 lib/gocr/pgm2asc.c v1 =((getpixel(p1,x1+x ,y1+y )<cs)?1:0); i1=8; // better gray? getpixel 1117 lib/gocr/pgm2asc.c v2 =((getpixel(p2,x2+x ,y2+y )<cs)?1:0); i2=8; // better gray? getpixel 1124 lib/gocr/pgm2asc.c if( ((getpixel(p1,x1+x+i1*(1+dx/32),y1+y+i2*(1+dy/32))<cs)?1:0) getpixel 1125 lib/gocr/pgm2asc.c !=((getpixel(p2,x2+x+i1*(1+dx/32),y2+y+i2*(1+dy/32))<cs)?1:0) ) v1++; getpixel 1196 lib/gocr/pgm2asc.c || getpixel(p,xa,ya)>=cs /* || 2*ya<y0+y1 */ || dots>0 ){ getpixel 1200 lib/gocr/pgm2asc.c if (getpixel(p,x,y)<cs && (getpixel(p,x+1,y)<cs getpixel 1201 lib/gocr/pgm2asc.c || getpixel(p,x,y+1)<cs)){ xa=x;ya=y;y=-1;break; } getpixel 1224 lib/gocr/pgm2asc.c if (getpixel(p,x,y0-1)<cs getpixel 1225 lib/gocr/pgm2asc.c && getpixel(p,x,y0 )<cs && (marked(&b,x-x0,0)&1)!=1) getpixel 1230 lib/gocr/pgm2asc.c if (getpixel(p,x0-1,y)<cs getpixel 1231 lib/gocr/pgm2asc.c && getpixel(p,x0 ,y)<cs && (marked(&b,0,y-y0 )&1)!=1) getpixel 1236 lib/gocr/pgm2asc.c if (getpixel(p,x1+1,y)<cs getpixel 1237 lib/gocr/pgm2asc.c && getpixel(p,x1 ,y)<cs && (marked(&b,x1-x0,y-y0)&1)!=1) getpixel 1243 lib/gocr/pgm2asc.c if ( (marked(&b,x,y )&3)==1 && getpixel(&b,x,y )<cs ) getpixel 1300 lib/gocr/pgm2asc.c if ( getpixel(p, x,y)>=cs || getpixel(p,nx,y)< cs) // b/w transition? getpixel 227 lib/gocr/remove.c cn[0]=getpixel(pp,x-1,y); getpixel 228 lib/gocr/remove.c cn[4]=getpixel(pp,x+1,y); /* horizontal */ getpixel 229 lib/gocr/remove.c cn[2]=getpixel(pp,x,y-1); getpixel 230 lib/gocr/remove.c cn[6]=getpixel(pp,x,y+1); /* vertical */ getpixel 231 lib/gocr/remove.c cn[1]=getpixel(pp,x-1,y-1); getpixel 232 lib/gocr/remove.c cn[3]=getpixel(pp,x+1,y-1); /* diagonal */ getpixel 233 lib/gocr/remove.c cn[7]=getpixel(pp,x-1,y+1); getpixel 234 lib/gocr/remove.c cn[5]=getpixel(pp,x+1,y+1); getpixel 235 lib/gocr/remove.c cm=getpixel(pp,x,y); getpixel 244 lib/gocr/remove.c cn[0]=getpixel(pp,x-2,y); getpixel 245 lib/gocr/remove.c cn[4]=getpixel(pp,x+2,y); /* horizontal */ getpixel 246 lib/gocr/remove.c cn[2]=getpixel(pp,x,y-2); getpixel 247 lib/gocr/remove.c cn[6]=getpixel(pp,x,y+2); /* vertical */ getpixel 248 lib/gocr/remove.c cn[1]=getpixel(pp,x-2,y-2); getpixel 249 lib/gocr/remove.c cn[3]=getpixel(pp,x+2,y-2); /* diagonal */ getpixel 250 lib/gocr/remove.c cn[7]=getpixel(pp,x-2,y+2); getpixel 251 lib/gocr/remove.c cn[5]=getpixel(pp,x+2,y+2); getpixel 266 lib/gocr/remove.c x-box2->x0,y-box2->y0,i0,i1,i2,i3,i3,cm,getpixel(pp,x,y),cs); getpixel 361 lib/gocr/remove.c if (getpixel(box2->p,box2->x0,box2->y0)<cs) j++; getpixel 362 lib/gocr/remove.c if (getpixel(box2->p,box2->x1,box2->y0)<cs) j++; getpixel 363 lib/gocr/remove.c if (getpixel(box2->p,box2->x0,box2->y1)<cs) j++; getpixel 364 lib/gocr/remove.c if (getpixel(box2->p,box2->x1,box2->y1)<cs) j++;