I have an image of shape (271, 300, 3) containing values between 0 and 1 (image/255) And I would like to put all the pixels of this image in another variable (pixel) with the method reshape, how to do that ? Here is my few code
image = plt.imread('im3.jpg')
im = image/255.0
print(im.shape) #(271, 300, 3)
Until here, I've tried to do that :
pixels = im.reshape(im.shape[0]*im.shape[1]*im.shape[2])
but I don't think it is the way to do that.