Merge pull request #731 from ankit-maverick/SimilarityTransform

Correcting a bug in SimialarityTransform
This commit is contained in:
Johannes Schönberger
2013-09-18 22:57:05 -07:00
+1 -1
View File
@@ -515,7 +515,7 @@ class SimilarityTransform(ProjectiveTransform):
[math.sin(rotation), math.cos(rotation), 0],
[ 0, 0, 1]
])
self._matrix *= scale
self._matrix[0:2, 0:2] *= scale
self._matrix[0:2, 2] = translation
else:
# default to an identity transform