CompressChannels#
- class pulserver.recon.CompressChannels[source]#
Bases:
GadgetProject the receive channels of each readout onto
n_virtualvirtual channels as it arrives.The calibration readouts (
REForIMA) that lead a scan are held until the first readout that is not one: the basis is the eigenvectors of the channel covariance of every sample of the held readouts of the first contrast, of all of them where none is of the first contrast (bartorch.tools.cc()), of which then_virtualwith the largest eigenvalues are kept. It is stored incontext.coil_compression, so the mapscoil_maps()estimates record it. The held readouts are then given on, projected, ahead of that readout, and every later readout is projected as it arrives, so a buffer holdsn_virtualchannels. Readouts held when the stream ends are given on byrelease().A stream whose first readout is not a calibration readout, or whose readouts have no more than
n_virtualchannels, passes unchanged, as do navigator and noise readouts. Place the gadget afterPrewhiten, so the basis is that of whitened channels, and before any gadget that changes the header of a readout: a held readout is given on with its acquisition as this gadget received it.Corresponds to Gadgetron’s
PCACoilGadgetandCoilReductionGadget.- Parameters:
n_virtual (int) – Virtual channels kept.
Methods