Skip to content

Commit

Permalink
Merge pull request scikit-image#731 from ankit-maverick/SimilarityTra…
Browse files Browse the repository at this point in the history
…nsform

Correcting a bug in SimialarityTransform
  • Loading branch information
ahojnnes committed Sep 19, 2013
2 parents 1b4a06f + 0ed1e22 commit 52f01d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skimage/transform/_geometric.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def __init__(self, matrix=None, scale=None, rotation=None,
[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
Expand Down

0 comments on commit 52f01d1

Please sign in to comment.