Skip to main content

tv_admm

Function tv_admm 

Source
pub fn tv_admm(
    local_field: &[f64],
    mask: &[u8],
    nx: usize,
    ny: usize,
    nz: usize,
    vsx: f64,
    vsy: f64,
    vsz: f64,
    bdir: (f64, f64, f64),
    lambda: f64,
    rho: f64,
    tol: f64,
    max_iter: usize,
) -> Vec<f64>
Expand description

TV-ADMM dipole inversion (optimized)

§Arguments

  • local_field - Local field values (nx * ny * nz)
  • mask - Binary mask (nx * ny * nz), 1 = inside ROI
  • nx, ny, nz - Array dimensions
  • vsx, vsy, vsz - Voxel sizes in mm
  • bdir - B0 field direction
  • lambda - Regularization parameter (typically 1e-3 to 1e-4)
  • rho - ADMM penalty parameter (typically 100*lambda)
  • tol - Convergence tolerance
  • max_iter - Maximum iterations

§Returns

Susceptibility map