/// <summary> /// Explicit constructor /// </summary> /// <param name="ipc">object, of type ImageProcessor.ImageProcessingCore</param> public ThresholdingAlgorithms(ImageProcessingCore ipc) { this.IPCore = ipc; this.croppedImg = new Mat(); this.imgPreContours = new Mat(); this.imgGrayscale = new Mat(); this.imgBlurred = new Mat(); this.histogram = new Mat(); this.imgThreshold = new Mat(); this.largestContourArea = new Mat(); }
/// <summary> /// Explicit constructor /// </summary> /// <param name="ipc">object, of type ImageProcessor.ImageProcessingCore</param> public ImageDistanceCalibration(ImageProcessingCore ipc) { this.IPCore = ipc; this.pointsList = new List <OpenCvSharp.Point>(); this.croppedImg = new Mat(); this.imgGrayscale = new Mat(); this.imgBlurred = new Mat(); this.histogram = new Mat(); this.imgThreshold = new Mat(); this.invertedThreshold = new Mat(); this.imgMedian = new Mat(); }