Applies an affine transform to the image, and places the result in a new image with the given size.
Data is a 6-tuple (a, b, c, d, e, f) which contain the first two rows from an affine transform matrix. For each pixel (x, y) in the output image, the new value is taken from a position (a x + b y + c, d x + e y + f) in the input image, rounded to nearest pixel.
This function can be used to scale, translate, rotate, and shear the original image.
您可以检查^{} 。可能不存在与
imtransform
完全等价的函数。但是一般的转换功能确实存在。在Python Image Library有一个接受矩阵的变换函数。我不确定它是否与Matlab语义完全相同:
相关问题 更多 >
编程相关推荐