1 | initial version |
Your code should look like this:
Rgba = new Mat();
Yuv = new Mat(previewSize.height + previewSize.height / 2, previewSize.width, CvType.CV_8UC1, data);
Gray = mYuv.submat(0, getFrameHeight(), 0, getFrameWidth());
Imgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);
Process(Gray, Rgba);