Skip to content

Commit

Permalink
revisado componentes sem muita lógica implementada
Browse files Browse the repository at this point in the history
  • Loading branch information
Piemontez committed May 2, 2024
1 parent a1ca577 commit 2af359f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/opencv/inputs/CVGaussianKernelComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}

Expand All @@ -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);
Expand Down

0 comments on commit 2af359f

Please sign in to comment.