|
29 | 29 |
|
30 | 30 | **Gradient Table Representation**. |
31 | 31 | The :class:`~nifreeze.data.dmri.base.DWI` class represents diffusion MRI data must |
32 | | -be provided a gradient table, which is a :class:`numpy.ndarray` of shape (N, 4), where N |
33 | | -is the number of diffusion-weighted volumes. |
| 32 | +be provided a gradient table, which is a :class:`numpy.ndarray` of shape ``(N, 4)``, where |
| 33 | +``N`` is the number of diffusion-weighted volumes. |
34 | 34 | The first three columns represent the gradient directions (b-vectors), and the fourth column |
35 | 35 | represents the b-values in s/mm². |
36 | 36 | *NiFreeze* expects that the gradient directions are normalized to unit length for non-zero |
37 | | -b-values, and that the b=0 volumes have a gradient direction of (0, 0, 0). |
| 37 | +b-values, and that the :math:`b=0` volumes have a gradient direction of :math:`(0, 0, 0)`. |
38 | 38 | When non-unit b-vectors are detected, the corresponding b-value is automatically adjusted to |
39 | 39 | reflect the actual diffusion weighting. |
40 | 40 | If the input gradient table does not conform to these expectations, it will be automatically |
|
47 | 47 | The :class:`~nifreeze.data.dmri.base.DWI` class requires a ``dataobj`` that can be an array-like |
48 | 48 | object. |
49 | 49 | The final step of the initialization process examines the data object and the gradient table, |
50 | | -and removes b=0 volumes from the data **AND** the gradient table. |
| 50 | +and removes :math:`b=0` volumes from the data **AND** the gradient table. |
51 | 51 | If no ``bzero`` parameter is provided, a reference low-b volume is computed as the median of all |
52 | | -the low-b volumes (b < 50 s/mm²) and inserted in the ``DWI.bzero`` attribute. |
| 52 | +the low-b volumes (``b <`` :data:`~nifreeze.data.dmri.utils.DEFAULT_LOWB_THRESHOLD` s/mm²) and |
| 53 | +inserted in the :attr:`~nifreeze.data.dmri.base.DWI.bzero` attribute. |
53 | 54 | Therefore, ***NiFreeze* WILL NOT be able to reconstruct the original data organization**. |
54 | 55 | This design choice simplifies the internal representation and processing of diffusion MRI data. |
55 | | -If you want to calculate a b=0 reference map in a more sophisticated way (e.g., after realignment |
56 | | -of all the low-b volumes), you should handle this separately and feed your own reference through |
57 | | -the ``bzero`` parameter. |
| 56 | +If you want to calculate a :math:`b=0` reference map in a more sophisticated way (e.g., after |
| 57 | +realignment of all the low-b volumes), you should handle this separately and feed your own |
| 58 | +reference through the ``bzero`` parameter. |
58 | 59 |
|
59 | 60 | """ |
60 | 61 |
|
|
0 commit comments