Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
e3bb0fcf
Commit
e3bb0fcf
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
DOC: update
parent
e4acefd6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/image.py
+3
-8
3 additions, 8 deletions
fsl/data/image.py
with
3 additions
and
8 deletions
fsl/data/image.py
+
3
−
8
View file @
e3bb0fcf
...
...
@@ -840,17 +840,12 @@ class Nifti(notifier.Notifier, meta.Meta):
def
adjust
(
self
,
pixdim
=
None
,
shape
=
None
,
origin
=
None
):
"""
Return a new ``Nifti`` object with the specified ``pixdim``
or ``shape``. The affine is of the new ``Nifti`` is adjusted
accordingly.
"""
Return a new ``Nifti`` object with the specified ``pixdim`` or
``shape``. The affine of the new ``Nifti`` is adjusted accordingly.
Only one of ``pixdim`` or ``shape`` can be specified.
The default behaviour of the ``origin`` argument (``
'
centre
'
``) causes
the corner voxel of the output to have the same centre as the corner
voxel of the input. If the origin is ``
'
corner
'
``, an offset is
applied which effectively causes the origin corners of the voxel grids
of the input and output to be aligned.
See :func:`.affine.rescale` for the meaning of the ``origin`` argument.
:arg pixdim: New voxel dimensions
:arg shape: New image shape
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment