feat: debut
This commit is contained in:
parent
428c83ca99
commit
e3b48425fc
|
@ -8,11 +8,11 @@ for i = 1:nb_images
|
||||||
nom = sprintf('images/viff.00%d.ppm',i-1);
|
nom = sprintf('images/viff.00%d.ppm',i-1);
|
||||||
else
|
else
|
||||||
nom = sprintf('images/viff.0%d.ppm',i-1);
|
nom = sprintf('images/viff.0%d.ppm',i-1);
|
||||||
end;
|
end
|
||||||
% L'ensemble des images de taille : nb_lignes x nb_colonnes x nb_canaux
|
% L'ensemble des images de taille : nb_lignes x nb_colonnes x nb_canaux
|
||||||
% x nb_images
|
% x nb_images
|
||||||
im(:,:,:,i) = imread(nom);
|
im(:,:,:,i) = imread(nom);
|
||||||
end;
|
end
|
||||||
% chargement des points 2D suivis
|
% chargement des points 2D suivis
|
||||||
% pts de taille nb_points x (2 x nb_images)
|
% pts de taille nb_points x (2 x nb_images)
|
||||||
% sur chaque ligne de pts
|
% sur chaque ligne de pts
|
||||||
|
@ -31,8 +31,20 @@ load dino_Ps;
|
||||||
% ...
|
% ...
|
||||||
|
|
||||||
% Affichage des images
|
% Affichage des images
|
||||||
|
|
||||||
|
K = 20;
|
||||||
|
m = 1;
|
||||||
|
n = 5;
|
||||||
|
|
||||||
figure;
|
figure;
|
||||||
subplot(2,2,1); imshow(im(:,:,:,1)); title('Image 1');
|
subplot(2,2,1); imshow(im(:,:,:,1)); title('Image 1');
|
||||||
|
hold on;
|
||||||
|
|
||||||
|
germes = super_pixel(im(:,:,:,1), K, m, 0);
|
||||||
|
scatter(germes(:,2), germes(:,1),'g');
|
||||||
|
germes = super_pixel(im(:,:,:,1), K, m, 10);
|
||||||
|
scatter(germes(:,2), germes(:,1),'r');
|
||||||
|
|
||||||
subplot(2,2,2); imshow(im(:,:,:,9)); title('Image 9');
|
subplot(2,2,2); imshow(im(:,:,:,9)); title('Image 9');
|
||||||
subplot(2,2,3); imshow(im(:,:,:,17)); title('Image 17');
|
subplot(2,2,3); imshow(im(:,:,:,17)); title('Image 17');
|
||||||
subplot(2,2,4); imshow(im(:,:,:,25)); title('Image 25');
|
subplot(2,2,4); imshow(im(:,:,:,25)); title('Image 25');
|
||||||
|
|
Loading…
Reference in a new issue