NiBabel

Access a cacophony of neuro-imaging file formats

This Page

Reggie -- the one

nibabel.minc.MincImage

digraph inheritance417422743b { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "SpatialImage" [shape=ellipse,URL="nibabel.spatialimages.SpatialImage.html#nibabel.spatialimages.SpatialImage",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "MincImage" [shape=ellipse,URL="#nibabel.minc.MincImage",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "SpatialImage" -> "MincImage" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class nibabel.minc.MincImage(data, affine, header=None, extra=None, file_map=None)

Class for MINC images

The MINC image class uses the default header type, rather than a specific MINC header type - and reads the relevant information from the MINC file on load.

Methods

ImageArrayProxy
filespec_to_file_map
filespec_to_files
from_file_map
from_filename
from_files
from_filespec
from_image
get_affine
get_data
get_data_dtype
get_filename
get_header
header_class
instance_to_filename
load(klass, filename)
make_file_map
save
set_data_dtype
set_filename
to_file_map
to_filename
to_files
to_filespec
update_header

Initialize image

Parameters :

data : array-like

image data. It should be some object that retuns an array from np.asanyarray

affine : (4,4) array

homogenous affine giving relationship between voxel coordinates and world coordinates

header : None or mapping or header instance, optional

metadata for this image format

extra : None or mapping, optional

metadata to associate with image that cannot be stored in the metadata of this image type

file_map : mapping, optional

mapping giving file information for this image format

Methods

ImageArrayProxy
filespec_to_file_map
filespec_to_files
from_file_map
from_filename
from_files
from_filespec
from_image
get_affine
get_data
get_data_dtype
get_filename
get_header
header_class
instance_to_filename
load(klass, filename)
make_file_map
save
set_data_dtype
set_filename
to_file_map
to_filename
to_files
to_filespec
update_header
class ImageArrayProxy(minc_file)

Minc implemention of array proxy protocol

The array proxy allows us to freeze the passed fileobj and header such that it returns the expected data array.

classmethod MincImage.from_file_map(klass, file_map)