Geometry and Space#

Image Geometry#

ImageGeometry(shape[, voxsize, rotation, ...])

Defines the correspondence between voxel coordinates and "world" coordinates, eg, RAS, for an image.

transform.geometry.cast_image_geometry(obj)

Cast object to ImageGeometry type.

Coordinate Space#

Space(name)

Coordinate space representation.

transform.space.cast_space(obj[, ...])

Cast object to coordinate Space.

Orientation#

transform.orientation.orientation_to_rotation_matrix(...)

Computes the direction cosine matrix corresponding to an orientation.

transform.orientation.rotation_matrix_to_orientation(matrix)

Examines a (3, 3) direction cosine matrix and determines the corresponding orientation, indicating the primary direction of each axis in the 3D matrix.

transform.orientation.slice_direction(...)

Determines primary slice direction string from orientation.

transform.orientation.check_orientation(...)

Checks an orientation string to ensure it is valid, meaning that all axes are represented exactly once and no invalid characters are present.