Enhance images with histogram equalization and linear transformation