I have 2d list of ints like this:
list1 = [[1, 30, 50], [21, 45, 9], [97, 321, 100]]
Next i am going to convert this to numpy array:
myarr = np.asarray(list1)
Next i am going to convert this to Image using PIL like this:
img = Image.fromarray(myarr, "I")
img.save("my.png")
the problem is that i dont want image in grayscale. I dont know how to convert this in to collored image. I have to use eny map function or somethig else ?