PURPOSE: This clinical trial is studying MRI scans to see how well they evaluate the effects of radiation therapy and chemotherapy in patients with newly diagnosed glioblastoma multiforme or anaplastic glioma.