Skip to content

estimate_noise_covariance ​

Estimate receive-noise covariance before fitting compression. The noise sample ordering, gains and receiver conditions must correspond to the acquired data. The coil guide explains the row-vector covariance convention and bandwidth correction.

Example ​

julia
using HighOrderMRI, Random, LinearAlgebra

noise = randn(MersenneTwister(21), ComplexF64, 128, 4)
covariance = estimate_noise_covariance(noise; coil_dim=2)
@assert size(covariance) == (4, 4)
@assert ishermitian(covariance)

API ​

julia
estimate_noise_covariance(noise_data::AbstractArray{Complex{T}};
    coil_dim::Integer = ndims(noise_data),
    center::Bool = true) where T <: AbstractFloat

Estimate the complex receive-noise covariance from noise-only samples. All dimensions other than coil_dim are flattened into independent observations. With center=true, the per-coil sample mean is removed and the unbiased 1 / (nObservation - 1) normalization is used. With center=false, the input is assumed to be zero mean and 1 / nObservation is used.

Acquire noise_data with the same receiver gains and channel ordering as the MRI data. Do not apply density compensation or coil compression before covariance estimation. When the noise scan and MRI data have different dwell times or effective receiver bandwidths, compute a correction with noise_prewhitening_scale_factor and pass it alongside the covariance to fit_coil_compression or compress_coils.

Source: src/Recon/CoilCompression.jl

HighOrderMRI.jl documentation · dev · code fa12c44 · docs fa12c44