フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how do i dislay output clustering ?

1 回表示 (過去 30 日間)
Tomas
Tomas 2014 年 4 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, i have matlab ocde
I = imread('obraz1.png'); %% input image
r = I(:,:,1);
g = I(:,:,2);
b = I(:,:,3);
H = g(:);%%green channel
[m n]=size(H)
P = [];
for i=1:m
for j=1:n
if H(i,j)<255
P = [P ; i j];
end
end
end
size(P)
MON=P;
[IDX,C]=kmeans(MON,3,'emptyaction','singleton')
How do i dislay clusters in image ?
Thanks for you help

回答 (1 件)

Image Analyst
Image Analyst 2014 年 4 月 20 日
The usual way is with scatter(). Though from your other post I'd say you're headed down the wrong path if you do that.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by