Text this: Appropriate Contrast Enhancement Measures for Brain and Breast Cancer Images