affinetransform

AffineTransform

class skimage.transform.AffineTransform(matrix=None, scale=None, rotation=None, shear=None, translation=None) [source]

Bases: skimage.transform._geometric.ProjectiveTransform

2D affine transformation of the form:

..:math:

X = a0*x + a1*y + a2 =
= sx*x*cos(rotation) - sy*y*sin(rotation + shear) + a2
Y = b0*x + b1*y + b2 =
= sx*x*sin(rotation) + sy*y*cos(rotation + shear) + b2

where sx and sy are zoom factors in the x and y directions, and the homogeneous transformation matrix is:

[[a0  a1  a2]
 [b0  b1  b2]
 [0   0    1]]
Parameters:

matrix : (3, 3) array, optional

Homogeneous transformation matrix.

scale : (sx, sy) as array, list or tuple, optional

Scale factors.

rotation : float, optional

Rotation angle in counter-clockwise direction as radians.

shear : float, optional

Shear angle in counter-clockwise direction as radians.

translation : (tx, ty) as array, list or tuple, optional

Translation parameters.

Attributes

params ((3, 3) array) Homogeneous transformation matrix.
__init__(matrix=None, scale=None, rotation=None, shear=None, translation=None) [source]
rotation
scale
shear
translation
doc_scikit_image
2017-01-12 17:20:04
Comments
Leave a Comment

Please login to continue.