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
0e37bd43
Commit
0e37bd43
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
ProxyImage removed - moved into FSLeyes, as it belongs there.
parent
5f26bb51
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
+0
-29
0 additions, 29 deletions
fsl/data/image.py
with
0 additions
and
29 deletions
fsl/data/image.py
+
0
−
29
View file @
0e37bd43
...
...
@@ -571,35 +571,6 @@ class Image(Nifti1, notifier.Notifier):
return
data
class
ProxyImage
(
Image
):
"""
The ``ProxyImage`` class is a simple wrapper around an :class:`Image`
instance. It is intended to be used to represent images or data which
are derived from another image.
"""
def
__init__
(
self
,
base
,
*
args
,
**
kwargs
):
"""
Create a ``ProxyImage``.
:arg base: The :class:`Image` instance upon which this ``ProxyImage``
is based.
"""
if
not
isinstance
(
base
,
Image
):
raise
ValueError
(
'
Base image must be an Image instance
'
)
self
.
__base
=
base
kwargs
[
'
header
'
]
=
base
.
nibImage
.
get_header
()
Image
.
__init__
(
self
,
base
.
data
,
*
args
,
**
kwargs
)
def
getBase
(
self
):
"""
Returns the base :class:`Image` of this ``ProxyImage``.
"""
return
self
.
__base
# TODO The wx.FileDialog does not
# seem to handle wildcards with
# multiple suffixes (e.g. '.nii.gz'),
...
...
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