How can I solve this ? It doesn't work.
이전 댓글 표시
Hello ,
I have an image and I need to scan all pixels and need to find 65 brithness pixel how many times used ?
I setup an algorithm but it doesnt work . Can you help me how can I solve it.
The image :

im = imread('unnamed.jpg');
griformat= rgb2gray(im);
counter=0;
for i=1: 256
for j=1 : 256
if griformat==65
counter=counter+1;
fprintf('times: %f \n ', counter)
else
j=j+1;
end
end
end
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!