I have an array of specific numbers with 784 elements: [67, 67, 40, 61, 79, 41, 79, 67, 40, 67, 67, 40, 61, 79, 41, 91, 79, 45, 93, 41, 67, 91, 78,...] range is from 0 to 255
My code is:
ImageArray = [67, 67, 40, 61, 79, 41, 79, 67, 40, 67, 67, 40, 61,...]
ImageArray = np.array(ImageArray)
ImageArray = np.reshape(ImageArray, (28,28))
data = im.fromarray(ImageArray)
data.save('image.png')
but image its just black image
How can I get an image in 1 channel from 0 to 255?