Menu

Python processing for PreClinical data.

API documentation of pypreclin.utilsΒΆ

Utility functions to process preclinical datasets.


pypreclin.utils.quaternions

Functions to operate on, or return, quaternions.

The module also includes functions for the closely related angle, axis pair as a specification for rotation.

Quaternions here consist of 4 values w, x, y, z, where w is the real (scalar) part, and x, y, z are the complex (vector) part.

Note - rotation matrices here apply to column vectors, that is, they are applied on the left of the vector. For example:

>>> import numpy as np
>>> q = [0, 1, 0, 0] # 180 degree rotation around axis 0
>>> M = quat2mat(q) # from this module
>>> vec = np.array([1, 2, 3]).reshape((3,1)) # column vector
>>> tvec = np.dot(M, vec)
pypreclin.utils.affine

Tools to play with affine matrices.

pypreclin.utils.export

Module that contains export utilities.

pypreclin.utils.reorient

Module that can be used to reorient images.

pypreclin.utils.filetools

File utilities.

Follow us

© 2020, Antoine Grigis Jordy Tasserie Bechir Jarraya .
Inspired by AZMIND template.