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 % Selection des segments qui ont leurs extrémités dans l'image
ok = vx(1, :) > 1 & vx(1, :) < size(bw_img, 1) & ... ok = vx(1, :) > 1 & vx(1, :) < size(bw_img, 1) & ...
vx(2, :) > 1 & vx(2, :) < size(bw_img, 1) & ... vx(2, :) > 1 & vx(2, :) < size(bw_img, 1) & ...
vy(1, :) > 1 & vy(1, :) < size(bw_img, 2) & ... vy(1, :) > 1 & vy(1, :) < size(bw_img, 2) & ...
vy(2, :) > 1 & vy(2, :) < size(bw_img, 2); vy(2, :) > 1 & vy(2, :) < size(bw_img, 2);
vx = floor(vx(:, ok)); vx = floor(vx(:, ok));
vy = floor(vy(:, ok)); vy = floor(vy(:, ok));
@ -188,7 +188,7 @@ R = R';
% affichage des cercles % affichage des cercles
vx_vy = [vy(1, :) vy(2, :); vx(1, :) vx(2, :)]'; vx_vy = [vy(1, :) vy(2, :); vx(1, :) vx(2, :)]';
T = 1; 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 % affichage du squellette
plot(vy, vx, 'b'); plot(vy, vx, 'b');
@ -215,7 +215,7 @@ nexttile;
imshow(bw_img); imshow(bw_img);
hold on hold on
vx_vy = [vy(1, :) vy(2, :); vx(1, :) vx(2, :)]'; 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'); plot(vy, vx, 'b');
%% Reconstruction des points 3D %% Reconstruction des points 3D
@ -263,7 +263,7 @@ view(80, -10);
%% Tetraedrisation de Delaunay %% Tetraedrisation de Delaunay
T = delaunayTriangulation(X(1, :)', X(2, :)', X(3, :)'); 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 % Affichage de la tetraedrisation de Delaunay
% figure(7); % figure(7);