If the doctor thinks there may be a tumor in the pituitary or hypothalamus, he or she may need to take a picture of your brain. This is done with a CT scan or MRI. CTs and MRIs are painless. CT scans use x-rays and MRI uses a strong magnetic field. MRI is usually better at showing pituitary or hypothalamic tumors.