how to compare the value of a pixel with all other pixel?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sheno39
el 28 de Oct. de 2013
Respondida: sheno39
el 28 de Oct. de 2013
i have to compare each pixel with all other pixels and find equal values.
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 28 de Oct. de 2013
M = randi(10,40,30);
uM = unique(M);
out = [uM, histc(M(:),uM)];
3 comentarios
Image Analyst
el 28 de Oct. de 2013
You forgot to attach your texture1.jpg image. Don't make it hard for us to help you. Make it easy for us to help you by attaching your image.
Más respuestas (2)
Jos (10584)
el 28 de Oct. de 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)
Ver también
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
