pclpy icon indicating copy to clipboard operation
pclpy copied to clipboard

bounding box

Open lsymuyu opened this issue 7 years ago • 2 comments

How could i get the bounding box of one point cloud? Thanks. Shouyang

lsymuyu avatar Oct 08 '18 23:10 lsymuyu

@lsymuyu, do you mean selection of ROI?

niranjanreddy891 avatar Oct 09 '18 06:10 niranjanreddy891

If you're asking for axis aligned bounding box, you could use numpy functions:

xyz = point_cloud.xyz  # this is a numpy array
print(np.min(xyz, axis=0))  # The lower left corner
print(np.max(xyz, axis=0))  # The upper right one

Is this what you meant?

davidcaron avatar Oct 09 '18 15:10 davidcaron