Diff of /src/hugin_base/algorithms/basic/CalculateOptimalROI.h [10a514] .. [d2a914] Maximize Restore

  Switch to side-by-side view

--- a/src/hugin_base/algorithms/basic/CalculateOptimalROI.h
+++ b/src/hugin_base/algorithms/basic/CalculateOptimalROI.h
@@ -37,8 +37,8 @@
 {
     public:
         ///
-        CalculateOptimalROI(PanoramaData& panorama)
-         : PanoramaAlgorithm(panorama)
+        CalculateOptimalROI(PanoramaData& panorama, bool intersect = false)
+         : PanoramaAlgorithm(panorama), intersection(intersect)
         {
             //set to zero for error condition
             o_optimalROI = vigra::Rect2D(0,0,0,0);
@@ -88,6 +88,8 @@
         vigra::Rect2D o_optimalROI;
         vigra::Size2D o_optimalSize;
         
+        bool intersection;
+        
         UIntSet activeImages;
         std::map<unsigned int,PTools::Transform*> transfMap;
         //map for storing already tested pixels