From 2af359fe0ca09bbc36198b6187265eae1adeebaa Mon Sep 17 00:00:00 2001 From: piemontez Date: Thu, 2 May 2024 08:05:43 -0300 Subject: [PATCH] =?UTF-8?q?revisado=20componentes=20sem=20muita=20l=C3=B3g?= =?UTF-8?q?ica=20implementada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx b/src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx index f0b89d3..2dc52a5 100644 --- a/src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx +++ b/src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx @@ -30,7 +30,7 @@ export class CVGaussianKernelComponent extends CVFOutputComponent { this.buildKernel( name === 'rows' ? (value as number) : this.rows, name === 'cols' ? (value as number) : this.cols, - name === 'sigma' ? (value as number) : this.sigma + name === 'sigma' ? (value as number) : this.sigma, ); } @@ -39,7 +39,7 @@ export class CVGaussianKernelComponent extends CVFOutputComponent { GCStore.add(this.out, -100); this.kernel = new cv.Mat(rows, cols, cv.CV_32F); - + console.log(cv); const g1 = cv.getGaussianKernel(rows, sigma, cv.CV_32F); const g2 = cv.getGaussianKernel(cols, sigma, cv.CV_32F); cv.multiply(g1, g2.t(), this.kernel, 1);