trans_mat = [[ 9.99999939e-01 -3.49065843e-04 3.60630465e-01]
[ 3.49065843e-04 9.99999939e-01 -2.60340185e-01]]
scale_factor = 1.6
final_trans_mat = ?
final_im = cv2.warpAffine(
mat,
final_trans_mat,
(w, h)
)
如何将trans_mat
和scale_factor
合并为一个转化矩阵final_trans_mat
?