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 typecomplex64
orcomplex128
. Must have shape[..., C, *K]
, whereK
is the shape of the spatial frequency dimensions,C
is the number of coils and...
is the batch shape, which can have any rank. Note thatK
is the reduced or undersampled shape.mask –
A
Tensor
. The sampling mask. Must have typebool
. Must have shapeS
, whereS
is the shape of the spatial dimensions. In other words,mask
should have the shape of a fully sampled k-space. For each point,mask
should 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 frommask
should have shapeK
.calib – A
Tensor
. The calibration data. Must have typecomplex64
orcomplex128
. Must have shape[..., C, *R]
, whereR
is the shape of the calibration region,C
is the number of coils and...
is the batch shape, which can have any rank and must be broadcastable to the batch shape ofkspace
.calib
is required whenmethod
is"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 typecomplex64
orcomplex128
. Must have shape[..., C, *S]
, whereS
is shape of the spatial dimensions,C
is the number of coils and...
is the batch shape, which can have any rank and must be broadcastable to the batch shape ofkspace
. Note thatsensitivities
are not used for the GRAPPA computation, but they are used for adaptive coil combination. Ifsensitivities
are 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 andS
is 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