Numpy.digitize() gives more bins than expected when using bin edges from numpy.histogram

后端 未结 0 1281
说谎
说谎 2021-01-16 00:50

My goal is to assign each pixel of an image, in my case an numpy array, the frequency of the bin it falls into. For example, I have a values like [0.5, 1, 2, 2, 4]

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