MR imaging was performed with fluid-attenuated inversion recovery , proton-density , T2-weighted , and T1-weighted sequences , which were postprocessed with an automated computer algorithm that classified brain tissue as gray or white matter and as normal or ischemic .