Quantitative analysis of contrast enhancement