Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected docstrings for affine transformations #492

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading