NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.arrayproxy.ArrayProxy

Next topic

nibabel.batteryrunners

Reggie -- the one

nibabel.arrayproxy.ArrayProxy

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

class nibabel.arrayproxy.ArrayProxy(file_like, header)

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

This fairly generic implementation allows us to deal with Analyze and its variants, including Nifti1, and with the MGH format, apparently.

It requires a header object with methods: * copy * get_data_shape * data_from_fileobj

Other image types might need to implement their own implementation of this API. See minc for an example.

shape