Our test image, img_2617.tif, is 1810x606 (WxH). Each element in the big list is a row, of which there are 606. Each element in the row list is a column list. Each column list has 1810 columns. Each element in the column list is a 3-element list. This three element list contains the R,G,B raw image data.
@brunston
In [2]:
import numpy as np
from PIL import Image
In [3]:
img = Image.open("IMG_2617.tif")
img_data = np.array(img)
img_data
Out[3]:
In [4]:
len(img_data)
Out[4]:
In [5]:
len(img_data[0])
Out[5]:
In [6]:
len(img_data[0][1])
Out[6]:
In [7]:
np.fliplr(img_data)
Out[7]:
In [ ]: