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!
