'Stretching' histograms (levels) in Numpy, Python – Photoshop
I have grayscale image whose background is, on a 0-255 color scale, a mid-white color with an average pixel color value of 246; the foreground is mid-grey with an average pixel-color value of 186. I would like to 'shift' every…