From a6ee365156c517d47d99666782c24e18127b4691 Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Fri, 25 Oct 2024 20:11:49 +0300 Subject: [PATCH] Update find_ellipses.cpp --- modules/ximgproc/src/find_ellipses.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ximgproc/src/find_ellipses.cpp b/modules/ximgproc/src/find_ellipses.cpp index de73f833b47..b5ab61e7930 100644 --- a/modules/ximgproc/src/find_ellipses.cpp +++ b/modules/ximgproc/src/find_ellipses.cpp @@ -1218,9 +1218,10 @@ void EllipseDetectorImpl::getTriplets413(VVP &pi, VVP &pj, VVP &pk, } } -void EllipseDetectorImpl::preProcessing(Mat1b &image, Mat1b &dp, Mat1b &dn) { +void EllipseDetectorImpl::preProcessing(Mat1b &src, Mat1b &dp, Mat1b &dn) { // smooth image - GaussianBlur(image, image, _kernelSize, _sigma); + Mat image; + GaussianBlur(src, image, _kernelSize, _sigma); // temp variables Mat1b edges;// edge mask