mrpro.algorithms.reconstruction.IterativeSENSEReconstruction
- class mrpro.algorithms.reconstruction.IterativeSENSEReconstruction[source]
Bases:
RegularizedIterativeSENSEReconstructionIterative SENSE reconstruction.
This algorithm solves the problem \(\min_{x} ||Ax - y||_2^2\) by using a conjugate gradient algorithm to solve \(H x = b\) with \(H = A^H A\) and \(b = A^H y\) where \(A\) is the acquisition model (coil sensitivity maps, Fourier operator, k-space sampling), \(y\) is the acquired k-space data [PRU2001] .
Note: In [PRU2001] , a k-space weighting of the loss is used and a k-space filter is applied as a final step to null all k-space values outside the k-space coverage. This is not done here.
[PRU2001] (1,2)Pruessmann K, Weiger M, Boernert P, and Boesiger P (2001), Advances in sensitivity encoding with arbitrary k-space trajectories. MRI 46, 638-651. https://doi.org/10.1002/mrm.1241
- __init__(kdata: KData | None = None, fourier_op: LinearOperator | None = None, csm: Callable | CsmData | None = CsmData.from_idata_walsh, noise: KNoise | None = None, dcf: DcfData | None = None, *, n_iterations: int = 5) None[source]
Initialize IterativeSENSEReconstruction.
For a regularized version of the iterative SENSE algorithm please see
RegularizedIterativeSENSEReconstruction.- Parameters:
kdata (
KData|None, default:None) – Ifkdatais provided andfourier_opordcfareNone, thenfourier_opanddcfare estimated based onkdata. Otherwisefourier_opanddcfare used as provided.fourier_op (
LinearOperator|None, default:None) – Instance of theFourierOpused for reconstruction. IfNone, set up based onkdata.csm (
Callable|CsmData|None, default:CsmData.from_idata_walsh) – Sensitivity maps for coil combination. IfNone, no coil combination is carried out, i.e. images for each coil are returned. If aCallableis provided, coil images are reconstructed using the adjoint of theFourierOp(including density compensation) and then sensitivity maps are calculated using theCallable. For this,kdataneeds also to be provided. For examples have a look at themrpro.data.CsmDataclass e.g.from_idata_walshorfrom_idata_inati.noise (
KNoise|None, default:None) – Noise used for prewhitening. IfNone, no prewhitening is performeddcf (
DcfData|None, default:None) – K-space sampling density compensation. Only used to obtain a good starting point for the CG algorithm as by using the scaled density compensated direct reconstruction [FESSLER2010].n_iterations (
int, default:5) – Number of CG iterations
- Raises:
ValueError – If the
kdataandfourier_opareNoneor ifcsmis aCallablebutkdatais None.
- n_iterations: int
Number of CG iterations.
- regularization_data: torch.Tensor
Regularization data (i.e. prior) \(x_{\mathrm{reg}}\).
- regularization_weight: torch.Tensor
Strength of the regularization \(\lambda\).
- regularization_op: LinearOperator
Linear operator \(B\) applied to the current estimate in the regularization term.
- dcf: DcfData | None
Density Compensation Data.
- csm: CsmData | None
Coil Sensitivity Data.
- noise: KNoise | None
Noise Data used for prewhitening.
- fourier_op: LinearOperator
Fourier Operator.
- forward(kdata: KData) IData[source]
Apply the reconstruction.
- Parameters:
kdata (
KData) – k-space data to reconstruct.- Returns:
the reconstruced image.
- direct_reconstruction(kdata: KData) IData[source]
Direct reconstruction of the MR acquisition.
Here we use \(S^H F^H W\) to calculate the image data using the coil sensitivity operator \(S\), the Fourier operator \(F\), and the density compensation operator \(W\). \(S\) and \(W\) are optional: If they have not been set in this instance, no coil combination or density compensation, respectively, will be performed.
- Parameters:
kdata (
KData) – k-space data- Returns:
image data
- recalculate_csm(kdata: KData, csm_calculation: Callable[[IData], CsmData] = CsmData.from_idata_walsh, noise: KNoise | None | Literal[False] = None) Self[source]
Update (in place) the CSM from KData.
- Parameters:
kdata (
KData) – k-space data used for adjoint reconstruction (including DCF-weighting if available), which is then used for CSM estimation.csm_calculation (
Callable[[IData],CsmData], default:CsmData.from_idata_walsh) – Function to calculate csm expecting idata as input and returning csmdata. For examples have a look at theCsmData.noise (
Union[KNoise,None,Literal[False]], default:None) – Noise measurement for prewhitening. IfNone,self.noise(if previously set) is used. IfFalse, no prewithening is performed even ifself.noiseis set. Use this if thekdatais already prewhitened.