Creating a 2D mesh of a real image

2 views (last 30 days)
Matthew Worker
Matthew Worker on 27 Dec 2020
Commented: Matthew Worker on 28 Dec 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 Comments
Rik
Rik on 28 Dec 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 on 28 Dec 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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!