Corrections

Contents

Corrections#

class pulserver.recon.Corrections[source]#

Bases: object

The corrections a shipped reconstruction makes to the images of one stream.

In order:

  1. the Fermi filter of the k-space of each complex image the solve returns (fermi_filtered()), history FERMI;

  2. gradient nonlinearity correction (gradient_unwarped()), history GRADUNWARP, where the header states the coil’s table;

  3. the division of the magnitude images by the receive field (IntensityCorrection), history N4; real, imaginary and phase images are sent as reconstructed.

The header’s recon parameter KSpaceFilter, GradientUnwarp or IntensityCorrection turns its step off where it is 0 or one of the off words of SWITCH_WORDS, and on where it is any other number or an on word; where the header states none, or a value of neither kind, the argument decides. Which steps are on, and why any is off, is logged when the stream starts; each step is logged when it runs, at INFO for the first image of the stream and at DEBUG after. A step that fails leaves the image as it is, and the log says why. Make one per stream.

Parameters:
  • header (ismrmrd.xsd.ismrmrdHeader) – The stream’s header.

  • kspace_filter (bool, default=True) – Each step where the header states no recon parameter for it.

  • gradient_unwarp (bool, default=True) – Each step where the header states no recon parameter for it.

  • intensity_correction (bool, default=True) – Each step where the header states no recon parameter for it.

Methods

applied

Return the history tags of the steps applied since the last call, in order, and forget them.

filtered

Return image Fermi filtered (fermi_filtered()) where the filter is on; image itself otherwise or where it fails.

filtered_along

Return kspace, centred along axis, multiplied by fermi_profile() of extent along its axis along, where the filter is on.

intensity_corrected

Return results with their magnitude images divided by the receive field (IntensityCorrection) where the correction is on.

ran

Record a step a plugin made to the image itself, such as the EPI susceptibility correction.

unwarped

Return image corrected for gradient nonlinearity (gradient_unwarped()) where the correction is on, each geometry's correction built once for the stream.