utils.sidecar

Documentation

Implements the xps data structure described by Markus Nilsson (https://github.com/markus-nilsson/md-dmri/blob/master/mdm/readme.txt)

This quantifies multiple diffusion encoding data

Functions

angle2bvec(phi, theta)

angle2fullrot(phi, theta, psi)

bt2b(bt)

Derives b-value from the b-tensor

bt2btensor(bt)

Converts flattend b-value into b-tensor using

btensor2bt(btensor)

Flattens the b-tensor

bvec2angle(bvec)

Converts the symmetry axis to an angle

concat(*parts)

Concatenate multiple MDE XPS objects

decompose(btensor)

Decomposes the b-tensor into eigen-values and symmetry axis

eigenvalues2shape(b, b_delta, b_eta)

fullrot2angle(bvec, bvec2)

Converts the symmetry + secondary axes to an angle

get_sidecar(filename)

Gets the sidecar corresponding to a known file

reconstruct(b_passxx, b_passyy, b_passzz, …)

Reconstructs the b-tensor based on the eigen-values/vectos

register_conversion(input, output)

Classes

AcquisitionParams(*args, **kwargs)