tfmri.recon.grappa
tfmri.recon.grappa¶
- grappa(kspace, mask, calib, kernel_size=5, weights_l2_regularizer=0.0, combine_coils=True, sensitivities=None, return_kspace=False)[source]¶
Reconstructs an MR image using GRAPPA.
- Parameters
kspace – A
Tensor. The k-space samples. Must have typecomplex64orcomplex128. Must have shape[..., C, *K], whereKis the shape of the spatial frequency dimensions,Cis the number of coils and...is the batch shape, which can have any rank. Note thatKis the reduced or undersampled shape.mask –
A
Tensor. The sampling mask. Must have typebool. Must have shapeS, whereSis the shape of the spatial dimensions. In other words,maskshould have the shape of a fully sampled k-space. For each point,maskshould be True if the corresponding k-space sample was measured and False otherwise. True entries should correspond to the data inkspace, and the result of dropping all False entries frommaskshould have shapeK.calib – A
Tensor. The calibration data. Must have typecomplex64orcomplex128. Must have shape[..., C, *R], whereRis the shape of the calibration region,Cis the number of coils and...is the batch shape, which can have any rank and must be broadcastable to the batch shape ofkspace.calibis required whenmethodis"grappa". For other methods, this parameter is not relevant.kernel_size –
An int or list of
ints. The size of the GRAPPA kernel. Must have length equal to the image rank or number of spatial dimensions. If a scalar int is provided, the same size is used in all dimensions.weights_l2_regularizer – An optional float. The regularization factor for the L2 regularization term used to fit the GRAPPA weights. If 0.0, no regularization is applied.
combine_coils –
An optional
bool. If True, multi-coil images are combined. Otherwise, the uncombined images are returned. Defaults to True.sensitivities – A
Tensor. The coil sensitivity maps. Must have typecomplex64orcomplex128. Must have shape[..., C, *S], whereSis shape of the spatial dimensions,Cis the number of coils and...is the batch shape, which can have any rank and must be broadcastable to the batch shape ofkspace. Note thatsensitivitiesare not used for the GRAPPA computation, but they are used for adaptive coil combination. Ifsensitivitiesare not provided, coil combination will be performed using the sum of squares method.return_kspace –
An optional
bool. If True, returns the filled k-space without performing the Fourier transform. In this case, coils are not combined regardless of the value ofcombine_coils.
- Returns
A
Tensor. The reconstructed images. Has the same type askspace. Has shape[..., S], where...is the reconstruction batch shape andSis the spatial shape.
References
- 1
Griswold, M.A., Jakob, P.M., Heidemann, R.M., Nittka, M., Jellus, V., Wang, J., Kiefer, B. and Haase, A. (2002), Generalized autocalibrating partially parallel acquisitions (GRAPPA). Magn. Reson. Med., 47: 1202-1210. https://doi.org/10.1002/mrm.10171