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.
 
 

15 lines
343 B

image = imageT;
k = 4;
graph = Image2Graph(image);
%clusters = mySpectralClustering(graph, k);
%clusters = myNCuts(graph, k);
clusters = recursiveNCuts(graph);
%calculateNcut(graph, clusters);
unique(clusters)
clusters = reshape(clusters, size(image, 1), []);
imshow(meanClustersColorRGB(imageT, clusters))
clearvars graph clusters k image