remap 查看:https://blog.csdn.net/yangfengman/article/details/52769716.net
remap 其實就是一個座標到另外一個座標的映射,好比常常用在魚眼鏡頭的矯正,blog
map1, map2 = cv2.fisheye.initUndistortRectifyMap(K, D, np.eye(3), K, DIM,cv2.CV_16SC2)
魚眼鏡頭返回2個map,就是原圖像的在(x,y)上的點通過矯正後,映射到新圖像的點(x_new, y_new),的矩陣對應關係。rem
x_new = map1[x,y]get
y_new = map2[x,y]it