Borrar filtros
Borrar filtros

create a 3d graph from a series of contours

1 visualización (últimos 30 días)
Giuseppe
Giuseppe el 30 de Abr. de 2011
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 comentario
Giuseppe
Giuseppe el 7 de Mayo de 2011
i've finish, i used isosurface method..it works very good, ihave create a matrix x-y-number of plane

Iniciar sesión para comentar.

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by