%%%%%%%%%%%%%%%%% Animation Cancer + Prostate
%redimension (grossissement comme on veut "*")
% + recalage (prend le point min)
for i=1:2
X1=x1*exp(i)-(88.5*exp(i)-88.5); % 88.5=min x1
Y1=y1*exp(i)-(85.9*exp(i)-85.9); % 85.9=min y1
Z1=z1*exp(i)-(66*exp(i)-66); % 66 = min z1
G = [X1,Y1,Z1];%nouvelle matrice
T1 = delaunay3(G(:,1),G(:,2),G(:,3));%algo delaunay
open('prostate3Drouge.fig');alpha(0.4); % prostate 3D
hold on
tetramesh(T1,G,'facecolor',[0 1 0]);%cancer reméché
V(:,i)=getframe; %capture de l'image
end
numtimes = 1; %nombre d'animations
fps = 1;%nb d'image par seconde
movie(V,numtimes,fps) %film
Partager