how to compare the value of a pixel with all other pixel?
古いコメントを表示
i have to compare each pixel with all other pixels and find equal values.
採用された回答
その他の回答 (2 件)
Jos (10584)
2013 年 10 月 28 日
You question is a little unclear. But, see
help unique
M = ceil(10*rand(40,30)) % pixel image
uM = unique(M) ;
% and use it like this
tf = M==uM(k)
[r,c] = find(tf)
カテゴリ
ヘルプ センター および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
