diff --git a/modules/photo/src/merge.cpp b/modules/photo/src/merge.cpp index 4292f7c1b3..9772212d7b 100644 --- a/modules/photo/src/merge.cpp +++ b/modules/photo/src/merge.cpp @@ -85,7 +85,7 @@ public: CV_Assert(log_response.rows == LDR_SIZE && log_response.cols == 1 && log_response.channels() == channels); - Mat exp_values(times); + Mat exp_values(times.clone()); log(exp_values, exp_values); result = Mat::zeros(size, CV_32FCC);