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 次查看(过去 30 天)
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?

采纳的回答

Matt J
Matt J 2022-2-1
编辑:Matt J 2022-2-1
Use isosurface to triangulate the surface of the spine. Then, use stlwrite,
  1 个评论
Anupreet Singh
Anupreet Singh 2022-2-2
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by