Maximizing the information content of dual energy x-ray and CT imaging