Indexing a PIL image

前端 未结 1 1755
心在旅途
心在旅途 2021-01-19 00:13

Is PIL\'s image coordinate indexing reversed? Is it indexed as image[column, row]?

I have an image which I open using PIL (pillow)

img = Image.open(\         


        
1条回答
  •  既然无缘
    2021-01-19 00:41

    PIL indexes images in Cartesian co-ordinates. So it is indexed as img[col, row].

    0 讨论(0)
提交回复
热议问题