diff --git a/README.md b/README.md index d67aadc..b30ded8 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ Check `camera_visualizer/visualize_cameras.py` for visualizing cameras in 3D. It ## Inspect camera parameters You can use `camera_inspector/inspect_epipolar_geometry.py` to inspect if the camera paramters are correct and follow the Opencv convention assumed by this codebase. The script creates a viewer for visually inspecting epipolar geometry like below: for key points in the top image, it plots their correspoinding epipolar lines in the bottom image. If the epipolar geometry does not look correct in this visualization, it's likely that there are some issues with the camera parameters. - + diff --git a/camera_inspector/inspect_epipolar_geometry.py b/camera_inspector/inspect_epipolar_geometry.py index 21121fa..bf67215 100644 --- a/camera_inspector/inspect_epipolar_geometry.py +++ b/camera_inspector/inspect_epipolar_geometry.py @@ -50,8 +50,8 @@ def inspect(img1, K1, W2C1, img2, K2, W2C2): img1, img2 = drawpointslines(img1, pts1, img2, lines2, colors) - im_to_show = np.concatenate((img1, img2), axis=0) - # down sample + im_to_show = np.concatenate((img1, img2), axis=1) + # down sample to fit screen h, w = im_to_show.shape[:2] im_to_show = cv2.resize(im_to_show, (int(0.5*w), int(0.5*h)), interpolation=cv2.INTER_AREA) cv2.imshow('epipolar geometry', im_to_show) diff --git a/camera_inspector/screenshot.png b/camera_inspector/screenshot.png index a039bce..319bb18 100644 Binary files a/camera_inspector/screenshot.png and b/camera_inspector/screenshot.png differ