From dbb75083a0b615b36b34c1be14ff6a03d27a7397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Tschumperl=C3=A9?= Date: Fri, 22 Jun 2018 21:51:20 +0200 Subject: [PATCH] . --- src/main/cpp/CImg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/cpp/CImg.h b/src/main/cpp/CImg.h index 8445df9..83db0d9 100644 --- a/src/main/cpp/CImg.h +++ b/src/main/cpp/CImg.h @@ -35947,9 +35947,9 @@ namespace cimg_library_suffixed { _regularization = std::max(_regularization,0.01f); const unsigned int psize = (unsigned int)(1 + 2*_radius); CImg - mean_I = guide.get_blur_box(psize,true), mean_p = get_blur_box(psize,true), - cov_Ip = (guide.get_mul(*this)).blur_box(psize,true)-=mean_I.get_mul(mean_p), + mean_I = guide.get_blur_box(psize,true).resize(mean_p), + cov_Ip = get_mul(guide).blur_box(psize,true)-=mean_p.get_mul(mean_I), var_I = guide.get_sqr().blur_box(psize,true)-=mean_I.get_sqr(), &a = cov_Ip.div(var_I+=_regularization), &b = mean_p-=a.get_mul(mean_I);