mr2.phantoms.b0map_from_sh_coefficients
- mr2.phantoms.b0map_from_sh_coefficients(shape: SpatialDimension[int], fov: SpatialDimension[float], coefficients: Tensor) Tensor[source]
Evaluate a real spherical-harmonic B0 map on a Cartesian grid.
- Parameters:
shape (
SpatialDimension[int]) – Grid dimensions.fov (
SpatialDimension[float]) – Field of view in meters (fov_z, fov_y, fov_x).coefficients (
Tensor) – Coefficients in the order returned byrandom_b0_sh_coefficients(). The output has the same unit as these coefficients.
- Returns:
b0_map – B0 field map with dimensions (z, y, x), in the unit of
coefficients.