Problem:
Have PointsData as numpy array, with row as point, and column x, y, z

PointsData.shape
(9483,3)
How to extract x,y,z coordinate as vectors, this is useful using argmax to find point index with max value.
Solution:
x,y,z = PointsData.T
就是将Nx3的矩阵,转置成3xN的矩阵,然后unpack分别给x,y,z
461

被折叠的 条评论
为什么被折叠?



