digraph inheritancee6a1f66a83 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "SpatialImage" [shape=ellipse,URL="#nibabel.spatialimages.SpatialImage",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }
Initialize image
The image is a combination of (array, affine matrix, header), with optional metadata in extra, and filename / file-like objects contained in the file_map mapping.
Parameters : | data : array-like
affine : None or (4,4) array-like
header : None or mapping or header instance, optional
extra : None or mapping, optional
file_map : mapping, optional
|
---|
Class method to create new instance of own class from img
Parameters : | img : spatialimage instance
|
---|---|
Returns : | cimg : spatialimage instance
|
Fetch the image filename
Parameters : | None : |
---|---|
Returns : | fname : None or str
|
Save img in our own format, to name implied by filename
This is a class method
Parameters : | img : spatialimage instance
filename : str
|
---|
Class method to make files holder for this image type
Parameters : | mapping : None or mapping, optional
|
---|---|
Returns : | file_map : dict
|
Sets the files in the object from a given filename
The different image formats may check whether the filename has an extension characteristic of the format, and raise an error if not.
Parameters : | filename : str
|
---|
Write image to files implied by filename string
Parameters : | filename : str
|
---|---|
Returns : | None : |
Update header from information in image