Phase and magnitude correction is performed in two dimensions to reduce
ghosting in single shot and multi-shot EPI scans. First, a
phase/magnitude correction in the readout direction is carried out to
reduce echo shifts and gradient waveform distortions. Then, a two
dimensional phase/magnitude correction is performed to remove the
remaining xy phase/magnitude errors.