Skip to content
Snippets Groups Projects
Commit 0e37bd43 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

ProxyImage removed - moved into FSLeyes, as it belongs there.

parent 5f26bb51
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment