local contrast normalization for input images