Skip to content

Commit

Permalink
Merge pull request #492 from seogier/affine-updates
Browse files Browse the repository at this point in the history
corrected docstrings for affine transformations
  • Loading branch information
ntustison committed Jul 12, 2023
2 parents 58ac6f6 + 733f1f4 commit 095f2bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ants/contrib/sampling/affine2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Translate2D(object):

def __init__(self, translation, reference=None, lazy=False):
"""
Initialize a Shear2D object
Initialize a Translate2D object
Arguments
---------
Expand Down Expand Up @@ -283,7 +283,7 @@ class RandomShear2D(object):

def __init__(self, shear_range, reference=None, lazy=False):
"""
Initialize a RandomRotate2D object
Initialize a RandomShear2D object
Arguments
---------
Expand Down
6 changes: 3 additions & 3 deletions ants/contrib/sampling/affine3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Translate3D(object):

def __init__(self, translation, reference=None, lazy=False):
"""
Initialize a Shear3D object
Initialize a Translate3D object
Arguments
---------
Expand Down Expand Up @@ -304,7 +304,7 @@ class RandomShear3D(object):

def __init__(self, shear_range, reference=None, lazy=False):
"""
Initialize a RandomRotate3D object
Initialize a RandomShear3D object
Arguments
---------
Expand Down Expand Up @@ -482,7 +482,7 @@ def transform(self, X=None, y=None):

class RandomRotate3D(object):
"""
Apply a Rotated3D transform to an image, but with the zoom
Apply a Rotate3D transform to an image, but with the zoom
parameters randomly generated from a user-specified range.
The range is determined by a mean (first parameter) and standard deviation
(second parameter) via calls to random.gauss.
Expand Down

0 comments on commit 095f2bd

Please sign in to comment.