A comprehensive approach to image-contrast enhancement