It is a painless and non-invasive test that uses a strong magnetic field, radio waves and a computer to make highly detailed images of the brain. The scan identifies areas of brain lesion and blood vessel abnormalities. A contrast agent helps provide a clearer image of the area.