multidimensional indexing in numpy array

后端 未结 0 403
感情败类
感情败类 2021-01-16 10:26

Let\'s suppose I have an image such that image.shape=(280,280,3)

If I do img[[[1,2],[1,2],[1,2]]].shape, I obtain (2,). But I expected to obtain (2,2,2)...

How

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