I have the following matrix in YV12 colorspace (stored as 1-channel image). It's filled with data which came from Android camera preview.
mYuv = new Mat(mPreviewHeight + (mPreviewHeight/2), mPreviewWidth, CvType.CV_8UC1);
Is it possible to extract some sub-region of this image and convert it to RGB colorspace subsequently? To say, I want to extract the following rect:
x1: 150
y1: 50
width: 60
height: 60
Thanks in advance.