Scale a numpy array with from -0.1 - 0.2 to 0-255
You can also use uint8 datatype while storing the image from numpy array.
import numpy as np
 from PIL import Image
 img = Image.fromarray(np.uint8(tmp))
tmp is my np array of size 255*255*3.
I have an numpy array in python that represent an image its size is 28x28x3 while the max value of it is 0.2 and the min is -0.1. I want to scale that image between 0-255. How can I do so?