When reading a low-contrast image it automatically take this example:
In [1]: from PIL import Image
In [2]: import numpy as np
In [3]: import matplotlib.pyplot as plt
In [4]: img = Image.open('images/map.jpg')
In [5]: arr = np.asarray(img)
In [6]: plt.gray()
In [7]: plt.imshow(arr)
Out[7]: <matplotlib.image.AxesImage at 0x7f9c7e88f490>
In [8]: plt.show()
Input
Plot (no change this is automatic by matplotlib.)
Because this input is different from the plot without, modifying anything.
I need low-contrast image to implement an algorithm to contrast stretching
Reading the book amazon Digital Image Processing (Rafael C. Gonzalez, Richard E. Woods)
PS: matplotlib is converting the automatic. I do not need.