Previous topic

medpy.io.header.Header.get_direction

Next topic

medpy.io.header.Header.get_offset

This Page

medpy.io.header.Header.get_info_consistent

Header.get_info_consistent(ndim)[source]

Returns the main meta-data information adapted to the supplied image dimensionality.

It will try to resolve inconsistencies and other conflicts, altering the information avilable int he most plausible way.

Parameters:

ndim : int

image’s dimensionality

Returns:

spacing : tuple of floats

offset : tuple of floats

direction : ndarray