how to accelerate the numpy for-loop, for coloring point-cloud by its intensity
how to accelerate the numpy for-loop, for coloring point-cloud by its intensity Question: enter code hereI want to color a point-cloud by its intensity. currently I use the following for-loop to apply a colormap function to the intensity(4th-dim) of points: import numpy as np points = np.random.random([128*1200,4]) points_colors = np.zeros([points.shape[0], 3]) for idx, p_c in …