Hello,
I'd like to convert Mat inputFrame to 8UC3. But I don't know how to do it.
Specificaly, I use javacamera and I want to convert inputFrame to 8UC3 and substitute inputFrame(8UC3) for mOutputFrame.
Please let me know how to convert inputFrame to 8UC3.
[my code that is using javacamera and opencv in android]
・・・
@Override
public void onCameraViewStarted(int width, int height) {
mOutputFrame = new Mat(width, height, CvType.CV_8UC3);
}
・・・
@Override
public Mat onCameraFrame(Mat inputFrame) throws UnsupportedEncodingException {
//I want to convert inputFrame to 8UC3 and substitute inputFrame(8UC3) for mOutputFrame.
}
return mOutputFrame;
}
↧