make_caipirinha_mask#
- pypulseqpp.make_caipirinha_mask()[source]#
Generate a CAIPIRINHA lattice sampling mask.
mask[y, z]isTruewhen the view(y, z)is acquired: lineyis acquired wheny mod ry = 0, and on it partitionzwhen(z - delta * (y // ry)) mod rz = 0. The lattice is anchored at(0, 0)and spreads the aliasing along both phase-encoding directions [1].- Parameters:
- Returns:
Boolean support mask of shape
shape, with nominal accelerationry * rz; the finite grid can change the realised factor. It encodes no acquisition order.- Return type:
- Raises:
ValueError – If an undersampling factor is below one.
See also
make_cartesian_plane_samplingthe same lattice anchored on the k-space centre, with calibration and partial Fourier.
make_epi_shot_offsetssegmented blipped-CAIPI shot offsets that tile this lattice.
References
Examples
>>> import numpy as np >>> import pypulseqpp as pp >>> mask = pp.make_caipirinha_mask((4, 4), 2, 2, delta=1) >>> mask.astype(int) array([[1, 0, 1, 0], [0, 0, 0, 0], [0, 1, 0, 1], [0, 0, 0, 0]]) >>> np.argwhere(mask).tolist() [[0, 0], [0, 2], [2, 1], [2, 3]]