Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

[panotools-cvs] SF.net SVN: panotools:[1016] branches/libpano_gsoc2009_mosaic/math.c

 [panotools-cvs] SF.net SVN: panotools:[1016] branches/libpano_gsoc2009_mosaic/math.c From: - 2009-08-01 02:48:23 Revision: 1016 http://panotools.svn.sourceforge.net/panotools/?rev=1016&view=rev Author: dkg5 Date: 2009-08-01 02:48:16 +0000 (Sat, 01 Aug 2009) Log Message: ----------- Working code for tilting image wall.jpg image by 30 degrees Modified Paths: -------------- branches/libpano_gsoc2009_mosaic/math.c Modified: branches/libpano_gsoc2009_mosaic/math.c =================================================================== --- branches/libpano_gsoc2009_mosaic/math.c 2009-08-01 02:46:55 UTC (rev 1015) +++ branches/libpano_gsoc2009_mosaic/math.c 2009-08-01 02:48:16 UTC (rev 1016) @@ -437,8 +437,9 @@ printf( "Entered modified vert function \n"); // params: double - //double theta = 0.523599; // 30 degrees in radians - double theta = 0.174532925; // 10 degrees in radians + double theta = 0.523599; // 30 degrees in radians + //double theta = 0.174532925; // 10 degrees in radians + //double theta = 0.0523598776; // 3 degrees in radians //double theta = 0.087; // small angle in radians double v[3]; // 3D projective coordinate vector double m_slant[3][3]; // slant matrix @@ -477,12 +478,22 @@ // *y_src = (y_dest * cos(theta))/(1 - y_dest * sin(theta)); // Compare to STRAIGHT to SLANT matrix (should be the same!) - // - ymax = 5.5; // max pixel coordinate for minigrid image - FOV = DEG_TO_RAD(30); // FOV for minigrid image - z0 = ymax/tan(FOV/2); // 30 is full angle FOV in degrees + // Parameters for minigrid image +// ymax = 5.5; // max pixel coordinate for minigrid image +// FOV = DEG_TO_RAD(30); // FOV for minigrid image +// z0 = ymax/tan(FOV/2); // FOV is full angle FOV in degrees +// // z0 is distance to image from center of projection +// // replace with distance param?? + + // Parameters for wall image + ymax = 375; // max pixel coordinate for wall image + // this value is entered manually. + // where does this value come from?? + FOV = DEG_TO_RAD(25.3607669836396); // FOV for wall image + z0 = ymax/tan(FOV/2); // FOV is full angle FOV in degrees // z0 is distance to image from center of projection - // replace with distance param?? + // replace with distance param?? + //z0 = 1667.618212; // distance param for image //z1 = z0 - y_dest *tan(theta); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.