Skip to main content

tgv_qsm

Function tgv_qsm 

Source
pub fn tgv_qsm(
    phase: &[f64],
    mask: &[u8],
    grid: &Grid,
    params: &TgvParams,
    b0_dir: (f64, f64, f64),
    progress: impl FnMut(usize, usize),
) -> Vec<f64>
Expand description

Main TGV-QSM reconstruction

§Arguments

  • phase - Wrapped phase data
  • mask - Binary mask
  • grid - Volume grid (dimensions and voxel sizes)
  • params - TGV parameters
  • b0_dir - B0 field direction
  • progress - Progress callback (iteration, total_iterations)

The reconstruction runs in single precision internally; inputs and outputs use f64 to match the rest of the crate’s API.