create a 3d graph from a series of contours

2 views (last 30 days)
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 Comment
Giuseppe
Giuseppe on 7 May 2011
i've finish, i used isosurface method..it works very good, ihave create a matrix x-y-number of plane

Sign in to comment.

Accepted Answer

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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!