Creating a 2D mesh of a real image

2 次查看(过去 30 天)
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 个评论
Rik
Rik 2020-12-28
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 2020-12-28
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by