Magnetic resonance imaging is a medical imaging technique that is used as a diagnostic tool to view detailed internal structures of the body. The machine uses powerful magnetic fields to align and manipulate certain atoms in the body to construct a detailed image. While the test costs more than X-ray, there is no risk of radiation exposure and the images obtained are of a higher quality.