What does […, :3] mean when indexing an array?

前端 未结 0 1492
执笔经年
执笔经年 2021-01-12 16:41

I\'ve seen this line of Python code (using "skimage" package):

source_image = resize(source_image, (256, 256))[..., :3]

I understan

相关标签:
回答
  • 消灭零回复
提交回复
热议问题