CoilCompressionTransform
This object records one fitted global coil transform and its calibration metadata. Prefer fit_coil_compression to manual construction, and reuse the same object for data and sensitivity maps. See the coil compression workflow.
Example
using HighOrderMRI, Random
calibration = randn(MersenneTwister(21), ComplexF32, 64, 4)
transform = fit_coil_compression(calibration; n_virtual_coils=2)
@assert size(transform) == (4, 2)
transform.retained_energyAPI
Type
CoilCompressionTransformLinear transform fitted by fit_coil_compression. The compression_matrix has size (input_coils, virtual_coils) and acts on the coil dimension from the right. singular_values contains the complete singular-value spectrum of the fitted calibration matrix after optional noise prewhitening, and retained_energy is the fraction of its squared singular-value energy kept by the selected virtual coils.
When noise_covariance is not nothing, the transform includes the whitening and compression operations in one matrix. If s is prewhitening_scale_factor, it satisfies compression_matrix' * (noise_covariance / s) * compression_matrix ≈ I. The default s=1 recovers the usual uncorrected covariance convention.
Apply the same transform to acquired data and coil-sensitivity maps with apply_coil_compression.
Source: src/Recon/CoilCompression.jl
Compatibility constructor
CoilCompressionTransform(compression_matrix::Matrix{Complex{T}},
singular_values::Vector{T},
retained_energy::T,
noise_covariance::Union{Nothing, Matrix{Complex{T}}}) where T <: AbstractFloatConstruct a transform from an existing compression matrix and metadata. When noise_covariance is present, infer prewhitening_scale_factor from the mean diagonal of Cᴴ Ψ C; otherwise use one. This compatibility constructor records supplied values without refitting or validating the transform. Prefer fit_coil_compression for fitting a consistent transform.