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
|
alias of Header
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