Use public attribute for parameter values

This commit is contained in:
Johannes Schönberger
2014-01-19 09:40:54 -05:00
parent c262ad2d44
commit b3d62afa28
4 changed files with 84 additions and 55 deletions
+2 -2
View File
@@ -33,14 +33,14 @@ First we create a transformation using explicit parameters:
tform = tf.SimilarityTransform(scale=1, rotation=math.pi / 2,
translation=(0, 1))
print(tform._matrix)
print(tform.matrix_)
"""
Alternatively you can define a transformation by the transformation matrix
itself:
"""
matrix = tform._matrix.copy()
matrix = tform.matrix_.copy()
matrix[1, 2] = 2
tform2 = tf.SimilarityTransform(matrix)