reverse similarity rotation direction convention
The rest of vips uses +ve-is-clockwise convention, like almost all image processing packages. The new similarity operator was mistakenly using the mathematical +ve-is-anticlockwise convention, oops.
This commit is contained in:
parent
ece34465f0
commit
3dce5951c2
@ -1,5 +1,7 @@
|
|||||||
18/10/13 started 7.36.3
|
18/10/13 started 7.36.3
|
||||||
- fix compiler warnings in ubuntu 13.10
|
- fix compiler warnings in ubuntu 13.10
|
||||||
|
- reverse similarity rotation direction to match the convention used
|
||||||
|
elsewhere in vips
|
||||||
|
|
||||||
10/10/13 started 7.36.2
|
10/10/13 started 7.36.2
|
||||||
- better jpeg startup
|
- better jpeg startup
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
*
|
*
|
||||||
* 3/10/13
|
* 3/10/13
|
||||||
* - from similarity.c
|
* - from similarity.c
|
||||||
|
* 25/10/13
|
||||||
|
* - oops, reverse rotation direction to match the convention used in the
|
||||||
|
* rest of vips
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -79,7 +82,7 @@ vips_similarity_build( VipsObject *object )
|
|||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
a = similarity->scale * cos( VIPS_RAD( similarity->angle ) );
|
a = similarity->scale * cos( VIPS_RAD( similarity->angle ) );
|
||||||
b = sin( VIPS_RAD( similarity->angle ) );
|
b = -sin( VIPS_RAD( similarity->angle ) );
|
||||||
c = -b;
|
c = -b;
|
||||||
d = a;
|
d = a;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user