pub fn lbv(
field: &[f64],
mask: &[u8],
grid: &Grid,
params: &LbvParams,
progress: impl FnMut(usize, usize),
) -> Result<(Vec<f64>, Vec<u8>), InputError>Expand description
LBV background field removal (LBV.m)
§Arguments
field- Total field in ppm (nx * ny * nz)mask- Binary mask (nx * ny * nz), non-zero = braingrid- Volume dimensions and voxel sizesparams- LBV parameters, with the scan’s field strength and echo timesprogress- Progress callback (step, steps): one step per multigrid level, and the finish
§Returns
(local_field, interior): the local field in ppm as LBV.m returns it (defined on the
interior; see the module docs for the voxels around it), and LBV.m’s interior (the mask
minus peel + 1 layers).