style: autoformatting
This commit is contained in:
parent
fcd1df58b1
commit
ba64881f6a
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue