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?

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

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개)

제품

릴리스

R2021a

질문:

2022년 2월 1일

댓글:

2022년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by