tools.shot_encoding#
- bartorch.tools.shot_encoding()#
Encoding of a segmented acquisition whose shots each multiply the image by their own phase.
\(\sum_s \mathrm{diag}(M_s)\, E\, \mathrm{diag}(c_s)\), built as
FieldCorrectedwith its coefficients given: shot \(s\) reads the lines \(M_s\) of the image times its phase \(c_s\), as MUSE encodes them (Chen et al., NeuroImage 2013, doi:10.1016/j.neuroimage.2013.01.076).- Parameters:
encoding (bartorch.linop.CartesianSense) – Encoding of the image grid
(..., y, x);(y, x)for one partition.masks (torch.Tensor) –
(shots, ..., y)booleans, the lines each shot placed: the image grid without its readout, a plane given as one partition or none.phases (torch.Tensor) –
(shots, ..., y, x)unit-magnitude phases on the image grid.
- Return type: