最終更新:2021-04-26 (月) 02:53:37 (1095d)  

cv2.warpAffine
Top / cv2.warpAffine

https://docs.opencv.org/4.0.1/da/d54/group__imgproc__transform.html#ga0203d9ee5fcd28d40dbc4a1ea4451983

dst = cv2.warpAffine(src, M, dsize[, dst[, flags[, borderMode[, borderValue]]]])
cv2.warpAffine(イメージソース,回転・移動を指定する行列,画像の大きさ,flags)

パラメータ

  • srcinput image.
    dstoutput image that has the size dsize and the same type as src .
    M2×3 transformation matrix.
    dsizesize of the output image.

移動行列?

  • M = np.float32([[1,0,150],[0,1,100]])

回転行列

関連

参考