Clear Filters
Clear Filters

I have a 3D logical matrix represented a segmented spinal volume. I want to export this volume as .obj or .stl for further use. How can I do this?

3 views (last 30 days)
I processed a volume of CT spinal images, and segmented out the ROI for my desired application. I now want to export the 3D logical matrix as a .obj or .stl file. I have not found a feasible solution to this yet. Does anyone know how I can go about doing this?

Accepted Answer

Matt J
Matt J on 1 Feb 2022
Edited: Matt J on 1 Feb 2022
Use isosurface to triangulate the surface of the spine. Then, use stlwrite,
  1 Comment
Anupreet Singh
Anupreet Singh on 2 Feb 2022
Hi Matt,
Thanks for your response. So my segmented volume is of the following form: BW - 512x513x312 logical.
I used isosurface in the following way: s = isosurface(BW);
The output was a struct with two fields: vertices and faces.
I attempted to use this in the stlwrite function, but I got an error back saying that s is not a triangulation object. Am I missing a step?

Sign in to comment.

More Answers (0)

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!