fitting.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:calcam 作者: euratom-software 项目源码 文件源码
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.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号