how to compare the value of a pixel with all other pixel?
Show older comments
i have to compare each pixel with all other pixels and find equal values.
Accepted Answer
More Answers (2)
Jos (10584)
on 28 Oct 2013
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)
sheno39
on 28 Oct 2013
0 votes
Categories
Find more on Image Segmentation and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!