SetImageROI

497 views
Skip to first unread message

Russar

unread,
Jul 30, 2011, 10:09:55 AM7/30/11
to android-opencv
Hello,

i cant find the equivalent method in android-opencv.

- SetImageROI

I´d like to copy a small image into a specific region of a big image,
I think thats the right method to use.

maybe I'm blind


greetings

Kirill Kornyakov

unread,
Aug 1, 2011, 2:56:37 AM8/1/11
to android...@googlegroups.com
In OpenCV 2.x submatrices are used instead of ROI. You can create 2 submatrices (first on src, second on dst) with Mat::operator() and than call Mat::copyTo(). You can read the code of image-manipulations sample on how to do it in Java. See how mRgbaInnerWindow and mGrayInnerWindow are created and used.

Regards,
Kirill
Reply all
Reply to author
Forward
0 new messages