I'm using matplotlib
to do it but for some reason, my code creates an unexpected image.
import numpy as np
import matplotlib.pyplot as plt
from scipy.misc import imread,imsave
# original image
image1=imread('img.jpg')
plt.imshow(image1)
plt.show()
# empesize the blue in that image
plt.imshow(image1*[0.95,0.95,1])
plt.show()
result:
The top image is the original one and the second (which is shown) is the unexpected result.
It seems that no matter what values I enter to the vector, I get the same strange result. Why?