提交 3c769ede 编写于 作者: V Vadim Pisarevsky

added extra check in CalibrateDebevec to make sure the points are within the image:

http://code.opencv.org/issues/4124
上级 3c7f7de4
......@@ -90,7 +90,9 @@ public:
for(int i = 0, x = step_x / 2; i < x_points; i++, x += step_x) {
for(int j = 0, y = step_y / 2; j < y_points; j++, y += step_y) {
sample_points.push_back(Point(x, y));
if( 0 <= x && x < images[0].cols &&
0 <= y && y < images[0].rows )
sample_points.push_back(Point(x, y));
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册