Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 2194

problem with convert image to geometry with the function mphimage2geom in Matlab LiveLink

$
0
0
hello,

i was very happy to find that with the function 'mphimage2geom' provided in Matlab LiveLink it's possible to convert a grey scale image into geometry. It's quite cool. A comsol model can be generated with the function. then physics can be assigned to the geometry in the comsol model. But now my problem is that the functions sometime works, sometimes not.

Details about my problem: 2 images are attached here. the image named 'test_original.tif' can be directly converted into geometry without any problem. but with the image 'test_processed.tif' in which the empty space is filled in ImageJ , it doesn't work anymore. Matlab gives error message on matrix dimension problem. But the image dimension was not changed at all. Can someone help to explain where it goes wrong? Has anyone had this problem before?

Thank you!

Chunyan

Viewing all articles
Browse latest Browse all 2194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>