How to efficiently vectorize (i.e. avoid explicit loops) a mapping of some colours into others in a Numpy array

后端 未结 0 344
独厮守ぢ
独厮守ぢ 2021-02-05 19:35

I have as input a Numpy matrix of rank three (i.e. an image: horizontal, vertical and 4 color channels). I want to read this matrix element-wise in their first two indices and m

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