mcot.mde.xps
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
Classes
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)
|
|
angle2bvec
-
mcot.mde.xps.angle2bvec(phi, theta)[source]
angle2fullrot
-
mcot.mde.xps.angle2fullrot(phi, theta, psi)[source]
bt2b
-
mcot.mde.xps.bt2b(bt)[source]
Derives b-value from the b-tensor
bt2btensor
-
mcot.mde.xps.bt2btensor(bt)[source]
Converts flattend b-value into b-tensor using
- Parameters
bt –
- Returns
-
btensor2bt
-
mcot.mde.xps.btensor2bt(btensor)[source]
Flattens the b-tensor
bvec2angle
-
mcot.mde.xps.bvec2angle(bvec)[source]
Converts the symmetry axis to an angle
concat
-
mcot.mde.xps.concat(*parts)[source]
Concatenate multiple MDE XPS objects
- Parameters
parts – individual MDE XPS objects
- Returns
new MDE XPS object
decompose
-
mcot.mde.xps.decompose(btensor)[source]
Decomposes the b-tensor into eigen-values and symmetry axis
eigenvalues2shape
-
mcot.mde.xps.eigenvalues2shape(b, b_delta, b_eta)[source]
fullrot2angle
-
mcot.mde.xps.fullrot2angle(bvec, bvec2)[source]
Converts the symmetry + secondary axes to an angle
get_sidecar
-
mcot.mde.xps.get_sidecar(filename) → mcot.mde.xps.AcquisitionParams[source]
Gets the sidecar corresponding to a known file
- Parameters
filename – path of NIFTI image
- Returns
corresponding metadata
reconstruct
-
mcot.mde.xps.reconstruct(b_passxx, b_passyy, b_passzz, bvec, bvec2)[source]
Reconstructs the b-tensor based on the eigen-values/vectos
register_conversion
-
mcot.mde.xps.register_conversion(input, output)[source]