阅读背景:

numpy替换平均为2 * 2块的数组元素

来源:互联网 

I have an m*n matrix in numpy. I want to divide my matrix into 2*2 blocks and then replace each element with average of the elements in its block. for example consider the following array:. I want to divide




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: