style: autoformatting

This commit is contained in:
Laurent Fainsin 2022-04-06 23:25:09 +02:00
parent fcd1df58b1
commit ba64881f6a

View file

@ -141,9 +141,9 @@ plot(vy, vx, 'b');
% Selection des segments qui ont leurs extrémités dans l'image
ok = vx(1, :) > 1 & vx(1, :) < size(bw_img, 1) & ...
vx(2, :) > 1 & vx(2, :) < size(bw_img, 1) & ...
vy(1, :) > 1 & vy(1, :) < size(bw_img, 2) & ...
vy(2, :) > 1 & vy(2, :) < size(bw_img, 2);
vx(2, :) > 1 & vx(2, :) < size(bw_img, 1) & ...
vy(1, :) > 1 & vy(1, :) < size(bw_img, 2) & ...
vy(2, :) > 1 & vy(2, :) < size(bw_img, 2);
vx = floor(vx(:, ok));
vy = floor(vy(:, ok));
@ -188,7 +188,7 @@ R = R';
% affichage des cercles
vx_vy = [vy(1, :) vy(2, :); vx(1, :) vx(2, :)]';
T = 1;
viscircles(vx_vy(1:T:end, :), R(1:T:end), 'Color',[0 1 0 0.3]);
viscircles(vx_vy(1:T:end, :), R(1:T:end), 'Color', [0 1 0 0.3]);
% affichage du squellette
plot(vy, vx, 'b');
@ -215,7 +215,7 @@ nexttile;
imshow(bw_img);
hold on
vx_vy = [vy(1, :) vy(2, :); vx(1, :) vx(2, :)]';
viscircles(vx_vy(1:T:end, :), R(1:T:end), 'Color',[0 1 0 0.3]);
viscircles(vx_vy(1:T:end, :), R(1:T:end), 'Color', [0 1 0 0.3]);
plot(vy, vx, 'b');
%% Reconstruction des points 3D
@ -263,7 +263,7 @@ view(80, -10);
%% Tetraedrisation de Delaunay
T = delaunayTriangulation(X(1, :)', X(2, :)', X(3, :)');
fprintf('Tetraedrisation terminee : %d tetraedres trouves. \n',size(T,1));
fprintf('Tetraedrisation terminee : %d tetraedres trouves. \n', size(T, 1));
% Affichage de la tetraedrisation de Delaunay
% figure(7);
@ -357,4 +357,4 @@ for i = 1:size(FACES, 1)
plot3([X(1, FACES(i, 3)) X(1, FACES(i, 2))], [X(2, FACES(i, 3)) X(2, FACES(i, 2))], [X(3, FACES(i, 3)) X(3, FACES(i, 2))], 'r');
end;
view(80, -10);
view(80, -10);