Diff of /src/hugin_base/algorithms/optimizer/PhotometricOptimizer.cpp [1f3dd7] .. [c1d915]  Maximize  Restore

  Switch to side-by-side view

--- a/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.cpp
+++ b/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.cpp
@@ -337,9 +337,7 @@
     // difference mode
     optimOpts[4] = LM_DIFF_DELTA;
     
-#ifdef DEBUG
     ret=dlevmar_dif(&photometricError, &photometricVis, &(p[0]), &(x[0]), m, n, nMaxIter, optimOpts, info, NULL, &(cov(0,0)), &data);  // no jacobian
-#endif
     // copy to source images (data.m_imgs)
     data.FromX(p.begin());
     // calculate error at solution