How to implement a 3D - Boolean Operation in Matlab to make an intersection like in blender (or any other 3D Software)

5 views (last 30 days)
I am working on creating 3D images from 3 individual binary images, that were taken with 3 cameras. I have a corresponding calibration and know the setup.
The current idea of my code is to extrude the 2D binary image (Example attached in i60.jpg) according to the camera calibration. An extruded image looks like this: extrude_example.png. With all 3 cameras extruded and a binning algorithm, I can create my final 3D-shape. This works fine so far, but takes a long time to compute, since I need to create a loot of extrusion steps to get a good surface.
I was thinking now to speed this up by recreating the process I would do in a 3D-modeling software like Blender. There I also extrude the outline of the binary image and create an intersection easily by just creating a spline for the outline, extrude them and use a boolean operator. Like this: Blender example with 2 extruded images
But I have no idea how to implement something like this in matlab. I wanted to create two instances of my binary contour at the top and bottom end of the extrusion 'tube' and then define faces between the individual points and create an intersection afterwards. The point creation is no porblem but the face definiton and the intersection(boolean operator) are. Does anyone have an idea how this could be implemented?
Any help is appreciated. Thanks in advance Katl

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!