medpy.io
medpy.io.header.Header.get_voxel_spacing
medpy.io.header.Header.set_offset
Header.
set_direction
Set image’s direction.
direction : tuple of floats
the image’s direction / affine transformation matrix must be of square shape default to the identity matrix