fix similarity rotate + scale

thanks Topochicho

see https://github.com/jcupitt/libvips/issues/154
This commit is contained in:
John Cupitt 2014-08-13 17:44:29 +01:00
parent 2f72a9925f
commit 0b896119d4
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,6 @@
12/8/14 started 7.40.5
12/8/14 started 7.40.6
- more doc fixes
- fix similarity rotate+scale, thanks Topochicho
25/7/14 started 7.40.5
- fix a race in im_maxpos_avg()

View File

@ -6,6 +6,8 @@
* 25/10/13
* - oops, reverse rotation direction to match the convention used in the
* rest of vips
* 13/8/14
* - oops, missing scale from b, thanks Topochicho
*/
/*
@ -82,7 +84,7 @@ vips_similarity_build( VipsObject *object )
return( -1 );
a = similarity->scale * cos( VIPS_RAD( similarity->angle ) );
b = -sin( VIPS_RAD( similarity->angle ) );
b = similarity->scale * -sin( VIPS_RAD( similarity->angle ) );
c = -b;
d = a;