From e072fa8121f530dd175fcfed99565064d5ab3bcb Mon Sep 17 00:00:00 2001 From: Julien Dehos Date: Tue, 26 Jul 2016 18:01:36 +0200 Subject: [PATCH] fix a bug in MergeDebevec (modify input times) --- modules/photo/src/merge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);