Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用 affine_transform 放大图像
s = 0.005 frame = nd.affine_transform(frame, [1-s,1-s,1],[h*s/2,w*s/2,0], order=1)
现在,我的问题是如何缩小?我尝试使用乘法[h*s*2,w*s*2,0]而不是除法 ( [h*s/2,w*s/2,0]) 进行缩放,但不是缩小而是向上和向左推动图像。
[h*s*2,w*s*2,0]
[h*s/2,w*s/2,0]