Dividing a bounding box into smaller cubes

I am working on 3D data (x,y,z). I want to divide the bounding box surrounding all the points into smaller cubes (voxels) and then find out the number of boxes containing a point. I have already created the bounding box. Any help would be appreciated. Thanks.

Answers (1)

How do you want to divide up the box? If into equally sized boxes, then see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F
If into sub regions that depend on the image, see qtdecomp().

3 Comments

It's 3D point cloud data from LIDAR and I want to divide the bounding box into equal number of cubes that can contain only one single point. Thanks,
I think you could probably use qtdecomp() for that if you had the right function to pass it.
Will try that then. Thank you.

Sign in to comment.

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!