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;
6 years ago
k = 4;
graph = Image2Graph(image);
%clusters = mySpectralClustering(graph, k);
6 years ago
%clusters = myNCuts(graph, k);
clusters = recursiveNCuts(graph);
6 years ago
%calculateNcut(graph, clusters);
unique(clusters)
6 years ago
clusters = reshape(clusters, size(image, 1), []);
imshow(meanClustersColorRGB(imageT, clusters))
6 years ago
clearvars graph clusters k image