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
a95870fe
Commit
a95870fe
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
RF: Don't use nibabel get_data method
parent
6f9ecfa5
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/mghimage.py
+2
-1
2 additions, 1 deletion
fsl/data/mghimage.py
with
2 additions
and
1 deletion
fsl/data/mghimage.py
+
2
−
1
View file @
a95870fe
...
...
@@ -12,6 +12,7 @@ Freesurfer ``mgh``/``mgz`` image files.
import
os.path
as
op
import
six
import
numpy
as
np
import
nibabel
as
nib
import
fsl.utils.path
as
fslpath
...
...
@@ -54,7 +55,7 @@ class MGHImage(fslimage.Image):
name
=
'
MGH image
'
filename
=
None
data
=
image
.
get_
data
(
)
data
=
np
.
asanyarray
(
image
.
data
obj
)
xform
=
image
.
affine
vox2surf
=
image
.
header
.
get_vox2ras_tkr
()
...
...
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