Previous topic

medpy.io.header.Header.get_voxel_spacing

Next topic

medpy.io.header.Header.set_offset

This Page

medpy.io.header.Header.set_direction

Header.set_direction(direction)[source]

Set image’s direction.

Returns:

direction : tuple of floats

the image’s direction / affine transformation matrix must be of square shape default to the identity matrix