From: <bru...@us...> - 2012-09-16 21:40:14
|
Revision: 1350 http://panotools.svn.sourceforge.net/panotools/?rev=1350&view=rev Author: brunopostle Date: 2012-09-16 21:40:08 +0000 (Sun, 16 Sep 2012) Log Message: ----------- Fix Inverse transformation from output projection to Thoby input image is wrong Bug #891912 reported by Timothee Groleau (Thomas Modes) Modified Paths: -------------- trunk/libpano/math.c Modified: trunk/libpano/math.c =================================================================== --- trunk/libpano/math.c 2012-09-16 21:37:30 UTC (rev 1349) +++ trunk/libpano/math.c 2012-09-16 21:40:08 UTC (rev 1350) @@ -2569,7 +2569,12 @@ rho = sqrt( x_dest*x_dest + y_dest*y_dest )/ SCALE; - + if(fabs(rho)>THOBY_K1_PARM) + { + *x_src=0; + *y_src=0; + return 0; + }; theta = asin( rho/THOBY_K1_PARM) / THOBY_K2_PARM; phi = atan2( y_dest , x_dest ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |