create a 3d graph from a series of contours

1 次查看(过去 30 天)
hy,i have not exeperience with 3d graph and interpolation, somebody can help me? i have an array of structurs with 2 field, internal and external contours of an esophagus, identificated by me trough an active contour, a snake, and rappresented by a matrix of 589x2 element,the rows are slightly variable. now i want to create a 3d graph of the esophagus respecting my found coordinates, i try with plot3(x,y,z),hold on but i want to represent the surface.can somebody help me with the interpolation?? how i may use interp3 and mesh? at the end of my contours detecting i call this function
function done = treD(s)
numb_frame =size(s,2);
x=zeros(numb_frame);
y=zeros(numb_frame);
for i=1:numb_frame
elem_in=size(s(i).bordo_in(:,1),1);
z=ones(elem_in,1);
x=s(i).bordo_in(:,1);
y=s(i).bordo_in(:,2);
D=plot3(s(i).bordo_in(:,1),s(i).bordo_in(:,2),z+i);hold on;
end
done='done';
end
how i can insert an interpolation and a mesh?
  1 个评论
Giuseppe
Giuseppe 2011-5-7
i've finish, i used isosurface method..it works very good, ihave create a matrix x-y-number of plane

请先登录,再进行评论。

采纳的回答

Doug Hull
Doug Hull 2012-9-17
i've finish, i used isosurface method..it works very good, ihave create a matrix x-y-number of plane

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by