diff --git a/sanei/sanei_magic.c b/sanei/sanei_magic.c index 10584e514..e83751e4a 100644 --- a/sanei/sanei_magic.c +++ b/sanei/sanei_magic.c @@ -1171,8 +1171,8 @@ getTopEdge(int width, int height, int resolution, int offsets = 31; double maxSlope = 1; double minSlope = -1; - int maxOffset = resolution/6; - int minOffset = -resolution/6; + int maxOffset = resolution; + int minOffset = -resolution; double topSlope = 0; int topOffset = 0; @@ -1431,7 +1431,7 @@ getLine (int height, int width, int * buff, * prefered (smaller absolute value) slope and offset */ for(i=0;i *finDensity){ *finDensity = lines[i][j]; *finSlope = slopeCenter[i]; @@ -1441,24 +1441,24 @@ getLine (int height, int width, int * buff, } if(0){ - DBG(15,"offsetCenter: "); + fprintf(stderr,"offsetCenter: "); for(j=0;j