Binarized image into finite element software

5 ビュー (過去 30 日間)
Ivan Labetic
Ivan Labetic 2020 年 2 月 18 日
コメント済み: Riccardo Scorretti 2020 年 6 月 22 日
Hi,
I have microscopy 2D picture (1024*1280) which i have converted to gray and bin scale
a=imread('pok.jpg');
b=rgb2gray(a);
c=im2bw(b)
zero (O) pixel values present first(solid) phase, and 1-pixel values present second (liquid) phase. Is it possible to convert only liquid phase (1-pixel values) to some format to create 2D model (of that liquid phase) wich would be imported in finite element software for subsequent simulations?
  1 件のコメント
Riccardo Scorretti
Riccardo Scorretti 2020 年 6 月 22 日
Hi. Up to my understanding you have a 2D labeled image and you want to obtain a mesh so as to use it in a FEM software.
You have at least three options:
1) you convert each pixel of you image in a quadrangle, and feed it directly to a FEM software; in this case you will obtain a regular grid as mesh, which is not optimal;
2) make use of Gmsh to generate a mesh directly from your image (https://people.montefiore.uliege.be/geuzaine/); mind that by using this approach, you stillhave to assign a label (= a region) to each triangle;
3) make use of Iso2mesh (http://iso2mesh.sourceforge.net/cgi-bin/index.cgi) to obtain a 3D mesh corresponding to you image; then it is possible to extract a 2D mesh (but this is a little bit tricky).

サインインしてコメントする。

回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by