Creating a 2D mesh of a real image

2 visualizzazioni (ultimi 30 giorni)
Matthew Worker
Matthew Worker il 27 Dic 2020
Commentato: Matthew Worker il 28 Dic 2020
Hello,
I want to create a 4*4, 2 dimentional mesh of an image of a composite material (containing an inclusion).
I have tried to collect data from the image using the function size, however i do not know how to procede for the mesh.
Thank you.
  4 Commenti
Rik
Rik il 28 Dic 2020
Your question is still not clear to me, and I can't run your code because you decided to post it as an image.
Matthew Worker
Matthew Worker il 28 Dic 2020
rows=251;
columns=257;
[R, C] = meshgrid(1:10:rows, 1:10:columns);
r=size(R)
c=size(C)
Z=zeros(r(1),c(2));
T = delaunay(R,C);
trimesh(T,R,C,Z)
view(0,300)
I have been able to visualize a mesh of a rectangle, as shown in this figure:
I want now to mesh a circle inside of it(wich will represent the inclusion).
Your help will be appreciated.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by