mr2.algorithms.csm.walsh

mr2.algorithms.csm.walsh(coil_images: Tensor, smoothing_width: SpatialDimension[int] | int, align_phase: bool = True) Tensor[source]

Calculate a coil sensitivity map (csm) using Walsh’s method [WAL2000].

This function computes CSMs from a set of complex coil images assuming spatially slowly changing sensitivity maps using Walsh’s method [WAL2000].

The algorithm follows these steps:

  1. Compute Pointwise Covariance: Calculate the covariance matrix of the coil images at each voxel to capture inter-coil signal relationships.

  2. Apply Smoothing Filter: Smooth the covariance matrices across spatial dimensions using a uniform filter of specified width to reduce noise and enforce spatial consistency.

  3. Dominant Eigenvector Estimation via Power Iteration: Perform power iterations to approximate the dominant eigenvector of the covariance matrix at each voxel, representing the principal component of the signal.

  4. Normalize Sensitivity Maps: Normalize the resulting eigenvectors to produce the final CSMs.

  5. Phase Alignment (Optional): If align_phase is True, aligns the eigenvectors’ global phase to a reference derived from the coil data [INA2013]. This prevents phase singularities that otherwise cause destructive interference when spatially interpolating or downsampling the maps.

This function supports one or more sets of coil images with leading dimensions. The input should be a tensor with dimensions (..., coils, z, y, x). Prefer using CsmData when sensitivity estimation should stay synchronized with MR2 data containers and metadata.

Parameters:
  • coil_images (Tensor) – Images for each coil element, shape (..., coils, z, y, x).

  • smoothing_width (Union[SpatialDimension[int], int]) – Width of the smoothing filter.

  • align_phase (bool, default: True) – If True, resolve the phase ambiguity of eigenvectors relative to the data [INA2013].

Returns:

csm – Coil sensitivity map, shape (..., coils, z, y, x).

References

[WAL2000] (1,2)

Walsh DO, Gmitro AF, Marcellin MW (2000) Adaptive reconstruction of phased array MR imagery. MRM 43

[INA2013] (1,2)

Inati S, Hansen M, Kellman P (2013) A solution to the phase problem in adaptive coil combination. in Proceedings of the 21st Annual Meeting of ISMRM, Salt Lake City, USA, 2672.