We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I start to play with OpenCV using Greg Borensteins Processing implementation. I've implemented a PVImage to MAT class to access OpenCV methods direct. Now I'm looking into perspective transformation and Region of Interest but have no success so far. Any hints are welcome.
Comments
Region of Interest seems to be very easy.
Rect ROI = new Rect(1280/2-300,300,500,300); Mat roiImg = new Mat(mask_yw_image, ROI);
But results like Hughlines have to be transferred back.
Core.line(img_BGR, new Point(val[0]+1280/2-300, val[1]+300), new Point(val[2]+1280/2-300, val[3]+300), new Scalar(255, 0, 0), 5);
And PerspectiveTransformation is slightly more difficult. It seems to be more difficult to define correct input and outputQuads.
Indeed , at least it is very simple.