mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 16:13:47 +08:00
Merge pull request #731 from ankit-maverick/SimilarityTransform
Correcting a bug in SimialarityTransform
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user