Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Piemontez committed May 2, 2024
1 parent 7b89bdd commit 5536b4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/utils/HistogramCalcComponent.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import cv, { Mat, Point } from 'opencv-ts';
import cv, { Point } from 'opencv-ts';
import { Position } from 'reactflow';
import GCStore from '../../core/contexts/GCStore';
import { CVFComponent } from '../../ide/components/NodeComponent';
Expand Down Expand Up @@ -54,7 +54,6 @@ export class HistogramCalcComponent extends CVFComponent {
const out = new cv.Mat(this.histHeight, this.histSize, channels > 1 ? cv.CV_8UC3 : cv.CV_8U, new cv.Scalar(255, 255, 255));
GCStore.add(out);

const scale = this.histHeight / image.rows;
const colors = channels > 1 ? this.colorRGB : this.colorBlack;

for (let channel = channels - 1; channel >= 0; channel--) {
Expand Down

0 comments on commit 5536b4f

Please sign in to comment.