An adaptive approach for image contrast enhancement using local correlation