Indexing a PIL image

前端 未结 1 1754
心在旅途
心在旅途 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)
提交回复
热议问题