This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case ImageProcessingType.MobileDensitometry: | |
bool isFullSet; | |
//Convert from color to grayscale | |
Imgproc.cvtColor(frameMatrix, grayMatrix, Imgproc.COLOR_RGBA2GRAY); | |
//Make a Rect to define ROI | |
OpenCVForUnity.CoreModule.Rect guideBox = new OpenCVForUnity.CoreModule.Rect(new Point(grayMatrix.cols() / 2 - 125, grayMatrix.rows() / 2 + 10), new Point(grayMatrix.cols() / 2 + 125, grayMatrix.rows() / 2 + 260)); |