Fastest way to randomly permute only a subset of indices (akin to non-black pixels) in a numpy array

前端 未结 0 1855
执笔经年
执笔经年 2021-01-01 15:57

I have a 3D numpy array of shape, e.g.: (500,500,3), with only some [i,j,:] cells that are zero across all 3 channels (imagine an RGB image with all channels being zero = bl

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