Semester assignments for the course "Digital Image Processing" of THMMY in AUTH university.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
472 B

clear
clear all
% For reproducibility
rng(1);
load('dip_hw_2.mat');
clusters = mySpectralClustering(d1a, 2);
clusters = clusters ./ 2;
%clusters = reshape(clusters, 4, []);
figure();
imshow(clusters);
clusters = mySpectralClustering(d1a, 3);
clusters = clusters ./ 3;
%clusters = reshape(clusters, 4, []);
figure();
imshow(clusters);
clusters = mySpectralClustering(d1a, 4);
clusters = clusters ./ 4;
%clusters = reshape(clusters, 4, []);
figure();
imshow(clusters);