mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-29 13:30:24 +08:00
Correcting bug in SimialarityTransform
This commit is contained in:
1 parent
8d0f91724f
commit
0ed1e22034
1 file changed
+1
-1
@@ -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