Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

How to add 2D image from MATLAB to COMSOL as a geometry?

Please login with a confirmed email address before reporting spam

Hi all,

I have an 2D image with a size of 512x512. It's a section image from a CT image as DICOM. I converted it to .mat file by using dicomread() function in MATLAB. After that i want to import it as a geometry to a 2D empty model in COMSOL. Is there any method to do it?

BTW i solved the problem by converting DICOM file to .DXF to add as geometry. But I wonder can i convert 2D image .mat file to stl or another format suitable for importing to Comsol geometry?


2 Replies Last Post Dec 16, 2018, 6:49 p.m. EST
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago Dec 13, 2018, 4:00 a.m. EST

Hi

mphimage2geom should be a good starting point.

-------------------
Lars Gregersen
Comsol Denmark
Hi mphimage2geom should be a good starting point.

Please login with a confirmed email address before reporting spam

Posted: 5 years ago Dec 16, 2018, 6:49 p.m. EST

Hi

mphimage2geom should be a good starting point.

Thank you Lars,

I really appreciate your helps! Thank u so much!

Regards.

>Hi > >mphimage2geom should be a good starting point. Thank you Lars, I really appreciate your helps! Thank u so much! Regards.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.