阅读背景:

查看给定坐标处的点在矩阵中是否为True

来源:互联网 

I have a numpy matrix A of size MxN of bool type. Than I have an array B of ROWSx2 that contains, in each row, a pair of coordinates x,y. I would like to find the list of coordinates of the matrix A whose index is contained in the array A and whose value is equal to True. I try with this command but it returns a 3d dimensional array and I don't understand why:I have a numpy matrix A of size MxN of bool typ




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

分享到: