In [1]:
import numpy as np
from scipy.misc import imread, imresize
import matplotlib.pyplot as plt
%matplotlib inline
In [32]:
import numpy as np
from scipy.misc import imread, imresize
import matplotlib.pyplot as plt
img = imread('image/dog-image.jpg')
print (img.dtype, img.shape)
img_tinted = img * [1, 0.95, 0.9]
# img_tinted = imresize(img_tinted, (305, 593))
# Show the original image
plt.subplot(1, 2, 1)
plt.imshow(img)
# Show the tinted image
plt.subplot(1, 2, 2)
plt.imshow(np.uint8(img_tinted))
plt.show()
In [ ]: