Lines Matching refs:slope
68 double slope, int * finXInter, int * finYInter);
556 /* slope is too shallow, don't want to divide by 0 */
558 DBG(15,"sanei_magic_findSkew: slope too shallow: %0.08f\n",TSlope);
600 /* function to do a simple rotation by a given slope, around
606 int centerX, int centerY, double slope, int bg_color)
611 double slopeRad = -atan(slope);
1263 /* Repeatedly call getLine to find the best range of slope and offset.
1293 double slope = 0;
1308 ret = getLine(height,width,buff,slopes,minSlope+sStep2,maxSlope+sStep2,offsets,minOffset+oStep2,maxOffset+oStep2,&slope,&offset,&density);
1313 DBG(15,"getTopEdge: %d %d %+0.4f %d %d\n",i,j,slope,offset,density);
1316 topSlope = slope;
1334 /* if slope can zoom in some more, do so. */
1389 double slope;
1417 /* build an array of pretty-print values for slope */
1425 /* build an array of scaling factors for slope */
1475 /* build 2-d array of 'density', divided into slope and offset ranges */
1498 slope = (double)rise/run;
1499 if(slope >= maxSlope || slope < minSlope)
1503 offset = slope * hWidth + buff[i] - slope * i;
1507 sIndex = (slope - minSlope) * slopes/(maxSlope-minSlope);
1534 * preferred (smaller absolute value) slope and offset */
1560 fprintf(stderr,"slope: %02d %+02.2f %03d:",i,slopeCenter[i],slopeScale[i]);
1591 * perpendicular to top slope across the image
1597 double slope, int * finXInter, int * finYInter)
1614 int tyi = top[i] - (slope * i);
1615 int txi = tyi/-slope;
1642 int byi = bot[i] - (slope * i);
1643 int bxi = byi/-slope;