How to filter numpy array by list of indices?

后端 未结 4 1078
清歌不尽
清歌不尽 2020-12-06 09:42

I have a numpy array, filtered__rows, comprised of LAS data [x, y, z, intensity, classification]. I have created a cKDTree of points

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 10:15

    It looks like you just need a basic integer array indexing:

    filter_indices = [1,3,5]
    np.array([11,13,155,22,0xff,32,56,88])[filter_indices] 
    

提交回复
热议问题