1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-28 23:03:03 +04:00

fix for #2063 ( Mat(Mat m, Rect roi) returns wrong sub-mat)

This commit is contained in:
Andrey Pavlenko
2012-06-20 07:43:01 +00:00
parent 43f2682e15
commit dc93c21962
2 changed files with 19 additions and 4 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ public class Mat {
public Mat(Mat m, Rect roi)
{
nativeObj = n_Mat(m.nativeObj, roi.x, roi.x + roi.width, roi.y, roi.y + roi.height);
nativeObj = n_Mat(m.nativeObj, roi.y, roi.y + roi.height, roi.x, roi.x + roi.width);
return;
}