diff --git a/examples/ColorCamera/rgb_undistort.py b/examples/ColorCamera/rgb_undistort.py index 97e71b184..bb72bac37 100755 --- a/examples/ColorCamera/rgb_undistort.py +++ b/examples/ColorCamera/rgb_undistort.py @@ -18,7 +18,7 @@ def getMesh(calibData, ispSize): for y in range(mapX.shape[0] + 1): # iterating over height of the image if y % meshCellSize == 0: rowLeft = [] - for x in range(mapX.shape[1]): # iterating over width of the image + for x in range(mapX.shape[1] + 1): # iterating over width of the image if x % meshCellSize == 0: if y == mapX.shape[0] and x == mapX.shape[1]: rowLeft.append(mapX[y - 1, x - 1]) @@ -85,4 +85,4 @@ def create_pipeline(calibData): cv2.imshow(q.getName(), frame) if cv2.waitKey(1) == ord('q'): - break \ No newline at end of file + break