A CT or MRI scan is used when the doctor suspects a tumour in the pituitary gland.