Inheritance diagram for nipy.core.image.image:
This module defines the Image class, as well as two functions that create Image instances.
fromarray : create an Image instance from an ndarray
merge_images : create an Image by merging a sequence of Image instance
Bases: object
The Image class provides the core object type used in nipy. An Image represents a volumetric brain image and provides means for manipulating the image data. Most functions in the image module operate on Image objects.
Notes
Images should be created through the module functions load and fromarray.
Examples
>>> from nipy.core.image import image
>>> from nipy.testing import anatfile
>>> from nipy.io.api import load_image
>>> img = load_image(anatfile)
>>> import numpy as np
>>> img = image.fromarray(np.zeros((21, 64, 64), dtype='int16'),
... 'kji', 'zxy')
Create an Image object from array and CoordinateMap object.
Images should be created through the module functions load and fromarray.
Parameters: | data : A numpy.ndarray coordmap : A CoordinateMap Object |
---|
See also
Create an image from a numpy array.
Parameters: | data : numpy array
names : a list of axis names coordmap : A CoordinateMap
|
---|---|
Returns: | image : An Image object |
See also
Create a new file based image by combining a series of images together. The resulting CoordinateMap are essentially copies of images[0].coordmap
Parameters: | images : [Image]
cls : class
clobber : bool
axis : string
|
---|---|
Returns: | ``cls`` : |