here,the intensity component is included to calculate norm.The code may need to be changed to: depth = np.linalg.norm(scan[:,:3], 2, axis=1)
depth = np.linalg.norm(scan[:,:3], 2, axis=1)