Binarized image into finite element software

5 visualizaciones (últimos 30 días)
Ivan Labetic
Ivan Labetic el 18 de Feb. de 2020
Comentada: Riccardo Scorretti el 22 de Jun. de 2020
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 comentario
Riccardo Scorretti
Riccardo Scorretti el 22 de Jun. de 2020
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).

Iniciar sesión para comentar.

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by