From: <bru...@us...> - 2009-02-10 23:22:47
|
Revision: 3636 http://hugin.svn.sourceforge.net/hugin/?rev=3636&view=rev Author: brunopostle Date: 2009-02-10 21:30:45 +0000 (Tue, 10 Feb 2009) Log Message: ----------- Fix stack detection when spanning 180 degree boundary, bug #2084923 Modified Paths: -------------- hugin/trunk/src/hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp Modified: hugin/trunk/src/hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp =================================================================== --- hugin/trunk/src/hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp 2009-02-10 11:15:52 UTC (rev 3635) +++ hugin/trunk/src/hugin_base/algorithms/panorama_makefile/PanoramaMakefileExport.cpp 2009-02-10 21:30:45 UTC (rev 3636) @@ -62,11 +62,13 @@ // find all images that have a suitable overlap. SrcPanoImage simg = pano.getSrcImage(srcImg); double maxShift = simg.getHFOV() / 10.0; + double minShift = 360.0 - maxShift; for (UIntSet::iterator it = allImgs.begin(); it != allImgs.end(); ) { unsigned srcImg2 = *it; it++; SrcPanoImage simg2 = pano.getSrcImage(srcImg2); - if ( fabs(simg.getYaw() - simg2.getYaw()) < maxShift + if ( (fabs(simg.getYaw() - simg2.getYaw()) < maxShift + || fabs(simg.getYaw() - simg2.getYaw()) > minShift) && fabs(simg.getPitch() - simg2.getPitch()) < maxShift ) { stack.insert(srcImg2); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |