added extra check in CalibrateDebevec to make sure the points are within the image:
http://code.opencv.org/issues/4124
This commit is contained in:
parent
3c7f7de477
commit
3c769edea0
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user