how to compare the value of a pixel with all other pixel?
Ältere Kommentare anzeigen
i have to compare each pixel with all other pixels and find equal values.
Akzeptierte Antwort
Weitere Antworten (2)
Jos (10584)
am 28 Okt. 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)
1 Kommentar
sheno39
am 28 Okt. 2013
sheno39
am 28 Okt. 2013
0 Stimmen
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
