You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use PinholeLens can solve,but,i wan't cv2.undistort(fisheye_image, intrinsics, dist_coeffs)
how i do?
defmake_cylindrical_cam(cam: Camera):
"""generates a cylindrical camera with a centered horizon"""assertisinstance(cam.lens, RadialPolyCamProjection)
# creates a cylindrical projectionlens=PinholeLens(cam.lens.coefficients[0])
rot_zxz=SciRot.from_matrix(cam.rotation).as_euler('zxz')
# adjust all angles to multiples of 90 degreerot_zxz=np.round(rot_zxz/ (np.pi/2)) * (np.pi/2)
# center horizonrot_zxz[1] =np.pi/2# noinspection PyArgumentListreturnCamera(
rotation=SciRot.from_euler(angles=rot_zxz, seq='zxz').as_matrix(),
translation=cam.translation,
lens=lens,
size=cam.size, principle_point=(cam.cx_offset, cam.cy_offset),
aspect_ratio=cam.aspect_ratio
)
Here is my code on how to remove the distortion of fish eyes
The text was updated successfully, but these errors were encountered: