An MRI scanner is a device in which the patient lies within a large, powerful magnet where the magnetic field is used to align the magnetization of some atomic nuclei in the body, and radio frequency magnetic fields are applied to systematically alter the alignment of this magnetization. This causes the nuclei to produce a rotating magnetic field detectable by the scanner—and this information is recorded to construct an image of the scanned area of the body. Magnetic field gradients cause nuclei at different locations to precess at different speeds, which allows spatial information to be recovered using Fourier analysis of the measured signal. By using gradients in different directions, 2D images or 3D volumes can be obtained in any arbitrary orientation.