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.
 
 

33 lines
583 B

%% Initialization
clear
clear all
% For reproducibility
rng(1);
load('dip_hw_2.mat');
%% Executes experiments for the affinity matrix
% Clustering into two clusters
clusters = mySpectralClustering(d1a, 2);
% Presents results
clusters = clusters ./ 2;
figure();
imshow(clusters');
% Clustering into three clusters
clusters = mySpectralClustering(d1a, 3);
% Presents results
clusters = clusters ./ 3;
figure();
imshow(clusters');
% Clustering into four clusters
clusters = mySpectralClustering(d1a, 4);
% Presents results
clusters = clusters ./ 4;
figure();
imshow(clusters');