Filter löschen
Filter löschen

display output clustering as image

2 Ansichten (letzte 30 Tage)
Tomas
Tomas am 16 Mär. 2014
Beantwortet: Image Analyst am 16 Mär. 2014
Hello,
I want to show cluster save in cell.
binary image i show cluster
Z = cellfun(@(Z) Z', Z,'Un',0);
Z = cellfun(@(Z) cell2mat(Z), Z,'Un',0);
Z = cellfun(@(Z) sub2ind(size(I) , Z(:,1) , Z(:,2)), Z,'Un',0);
figure
cluster = zeros(size(I));
for ii = 1:length(Z)
cluster(Z{ii}) = ii;
end
imshow((cluster))
when I have a grayscale image, how i show cluster in image ?
Thanks

Antworten (1)

Image Analyst
Image Analyst am 16 Mär. 2014
Try putting "hold on" and plotting the clusters
plot(x, y, 'r*', 'MarkerSize', 15);
which puts an asterisk at the location of every data point in the data set. If they're clustered, you'll see clusters of asterisks.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by