Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gaussian blur and adaptive threshold issue on greyscale mat

I am trying to convert inputframe received in onCameraFrame into greyscale so that i can apply gaussianblur and adaptivethreshold. But moment i create gaussian mat and apply blur it sort of hang does not display any kind of real frame. mGrayMat = new Mat(height, width, CvType.CV_8UC1);

Where as inputFrame received from onCameraFrame . inputFrame.copyTo(mGrayMat); mGaussianMat.create(mGrayMat.size(), mGrayMat.type()); Imgproc.GaussianBlur(mGrayMat, mGaussianMat, new Size(7,7), 0.0);

Not sure is this a right way of doing it ??

Gaussian blur and adaptive threshold issue on greyscale mat

I am trying to convert inputframe received in onCameraFrame into greyscale so that i can apply gaussianblur and adaptivethreshold. But moment i create gaussian mat and apply blur it sort of hang does not display any kind of real frame. frame.

mGrayMat = new Mat(height, width, CvType.CV_8UC1);

CvType.CV_8UC1); // Where as inputFrame received from onCameraFrame . inputFrame.copyTo(mGrayMat); mGaussianMat.create(mGrayMat.size(), mGrayMat.type()); Imgproc.GaussianBlur(mGrayMat, mGaussianMat, new Size(7,7), 0.0);

0.0);

Not sure is this a right way of doing it ??