NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.spatialimages.SpatialImage

Next topic

nibabel.spatialimages.SpatialImage

Reggie -- the one

nibabel.spatialimages.Header

digraph inheritance7af5eb2cb4 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "Header" [shape=ellipse,URL="#nibabel.spatialimages.Header",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }

class nibabel.spatialimages.Header(data_dtype=<type 'numpy.float32'>, shape=(0, ), zooms=None)

Template class to implement header protocol

copy()

Copy object to independent representation

The copy should not be affected by any changes to the original object.

data_from_fileobj(fileobj)

Read data in fortran order

data_to_fileobj(data, fileobj)

Write image data to file in fortran order

classmethod from_fileobj(klass, fileobj)
classmethod from_header(klass, header=None)
get_base_affine()
get_data_dtype()
get_data_shape()
get_default_affine()
get_zooms()
set_data_dtype(dtype)
set_data_shape(shape)
set_zooms(zooms)
write_to(fileobj)