Introduced histogram normalization