前言
总结一下最近看的关于opencv图像几何变换的一些笔记.
这是原图:
1.平移
import cv2
import numpy as np
img = cv2.imread(image0.jpg, 1)
imgInfo = img.shape
height = imgInfo[0]
width = imgInfo[1]
mode = imgInfo[2]
dst = np.zeros(imgInfo, np.uint8)
for i in range( height ):
for j in range( width - 100 ):
dst[i, j + 10
1