def get_cam_to_lab_rotation(self,field=None):
if field is None:
if self.nfields > 1:
raise Exception('This calibration has multiple sub-fields; you must specify a pixel location to get_cam_to_lab_rotation!')
else:
field = 0
rotation_matrix = np.matrix(cv2.Rodrigues(self.fit_params[field].rvec)[0])
return rotation_matrix.transpose()
# Given pixel coordinates x,y, return the NORMALISED
# coordinates of the corresponding un-distorted points.
评论列表
文章目录