get_brainweb_map#
- mrinufft.extras.data.get_brainweb_map(sub_id)[source]#
Get M0, T1 and T2 parametric maps from a brainweb crisp segmentation.
Output maps have the same shape as the tissue segmentation.
- Parameters:
sub_id (int) – Subject ID.
- Raises:
ImportError – If brainweb-dl is not installed.
- Returns:
M0 (np.ndarray) – Proton Density map. For sub_id > 0, it is a binary mask.
T1 (np.ndarray) – T1 map map in [ms].
T2 (np.ndarray) – T2 map map in [ms].
- Return type: