MRI uses strong magnetic fields and radio waves to produce detailed images of the inside of the body without using ionizing radiation. It works by aligning hydrogen atoms in the body parallel to a strong primary magnetic field. Radiofrequency pulses then excite the hydrogen atoms which emit signals as they relax back to their original alignment. Gradient coils are used to spatially encode these signals which are received by RF coils. The computer system then uses Fourier transformation to convert the signals into images that are displayed.