Skip to content

fit_coil_compression ​

Fit one global transform from a calibration subset, then apply it to all samples and coil maps. Retained calibration energy is not an image-error bound or a guarantee about parallel-imaging noise amplification. The derivation and references describe the scope of truncated-SVD optimality.

Example ​

julia
using HighOrderMRI, Random

rng = MersenneTwister(21)
calibration = randn(rng, ComplexF64, 128, 4)
noise = randn(rng, ComplexF64, 256, 4)
covariance = estimate_noise_covariance(noise; coil_dim=2)
transform = fit_coil_compression(calibration;
    coil_dim=2, n_virtual_coils=2, noise_covariance=covariance)
@assert size(transform, 2) == 2

API ​

julia
fit_coil_compression(calibration_data::AbstractArray{Complex{T}};
    coil_dim::Integer = ndims(calibration_data),
    n_virtual_coils::Union{Nothing, Integer} = nothing,
    energy_threshold::Union{Nothing, Real} = nothing,
    noise_covariance::Union{Nothing, AbstractMatrix} = nothing,
    prewhitening_scale_factor::Real = 1) where T <: AbstractFloat

Fit an SVD-based coil-compression transform. All dimensions other than coil_dim are treated as calibration observations. Pass either an explicit n_virtual_coils or an energy_threshold in (0, 1]; specifying both or neither is an error. The energy criterion selects the smallest rank whose cumulative squared singular values reach the requested fraction.

When noise_covariance is supplied, the calibration data are first whitened with a Cholesky factor and the returned matrix combines whitening with the leading right singular vectors. This noise-whitened PCA is the globally optimal rank-constrained approximation of the whitened calibration matrix in the Frobenius norm. Without a covariance, identity noise covariance is assumed and the method reduces to conventional software coil compression.

Set prewhitening_scale_factor when the noise scan and acquisition use different dwell times or effective receiver bandwidths. For s=prewhitening_scale_factor, the fitted right whitening matrix satisfies W' * (noise_covariance / s) * W ≈ I. Compute s with noise_prewhitening_scale_factor. A non-unit value requires noise_covariance.

The implementation follows software channel compression by Huang et al. (doi:10.1016/j.mri.2007.04.010), with receive-noise conditioning following Kellman and McVeigh (doi:10.1002/mrm.20713). The truncated SVD optimality statement is limited to one global linear coil transform; it does not claim equivalence to spatially varying geometric-decomposition coil compression.

The returned transform is independent of array layout. It can therefore be fitted on a calibration view and then applied to complete acquired data and coil-sensitivity maps whose coil dimensions occur at different positions. Inputs are copied to the CPU for the decomposition.

Source: src/Recon/CoilCompression.jl

HighOrderMRI.jl documentation · stable · v0.1.2 · code 9af532a · docs 9af532a