Merge pull request #2991 from kovand11:calibrateDebevecFix

pull/3015/merge
Vadim Pisarevsky 11 years ago
commit cf2a307832
  1. 2
      modules/photo/src/calibrate.cpp

@ -104,7 +104,7 @@ public:
for(size_t i = 0; i < sample_points.size(); i++) {
for(size_t j = 0; j < images.size(); j++) {
int val = images[j].ptr()[3*(sample_points[i].y * images[j].cols + sample_points[j].x) + channel];
int val = images[j].ptr()[3*(sample_points[i].y * images[j].cols + sample_points[i].x) + channel];
A.at<float>(eq, val) = w.at<float>(val);
A.at<float>(eq, LDR_SIZE + (int)i) = -w.at<float>(val);
B.at<float>(eq, 0) = w.at<float>(val) * log(times.at<float>((int)j));

Loading…
Cancel
Save