Inside the MRI scanner, there is a powerful magnetic field that interacts with protons in the body. The scanner produces radiofrequency pulses which further interact with protons, causing them to give off a signal that is detected by the scanner and transformed into images. MRI sequences such as T1-weighted, T2-weighted, FLAIR, DWI, and images with gadolinium contrast are analyzed and compared to the clinical history to identify abnormalities and arrive at a diagnosis. Diffusion tensor imaging can also be used to detect and characterize ischemic brain injuries.