bigger margin for affine

This commit is contained in:
John Cupitt 2010-10-12 13:37:00 +00:00
parent 569fd3bd5c
commit 332476835f
3 changed files with 6 additions and 5 deletions

View File

@ -33,6 +33,7 @@
- convolution functions support complex images - convolution functions support complex images
- im_blend() can have any format condition image and it's converted to uchar - im_blend() can have any format condition image and it's converted to uchar
- security fix for vips-7.23 wrapper script (thanks Jay) - security fix for vips-7.23 wrapper script (thanks Jay)
- im_affine() has a larger safety margin
12/5/10 started 7.22.2 12/5/10 started 7.22.2
- the conditional image of ifthenelse can be any format, a (!=0) is added if - the conditional image of ifthenelse can be any format, a (!=0) is added if

1
TODO
View File

@ -1,4 +1,5 @@
- maybe im_draw_smudge() is too slow :-( also, we had a sanity failure with - maybe im_draw_smudge() is too slow :-( also, we had a sanity failure with
it, argh it, argh

View File

@ -260,12 +260,11 @@ affinei_gen( REGION *or, void *seq, void *a, void *b )
/* That does round-to-nearest, because it has to stop rounding errors /* That does round-to-nearest, because it has to stop rounding errors
* growing images unexpectedly. We need round-down, so we must * growing images unexpectedly. We need round-down, so we must
* add half a pixel along the left and top. But we are int :( so add 1 * add half a pixel along the left and top. But we are int :( so add 1
* pixel. * pixel.
*
* Add an extra line along the right and bottom as well, for rounding.
*/ */
need.top -= 1; im_rect_marginadjust( &need, 1 );
need.left -= 1;
need.width += 1;
need.height += 1;
/* Now go to space (2) above. /* Now go to space (2) above.
*/ */