필터 지우기
필터 지우기

create a 3d graph from a series of contours

조회 수: 1 (최근 30일)
Giuseppe
Giuseppe 2011년 4월 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