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!
