how to read column wise pixels using FOR LOOP

when I'm using this code I got below results....... figure,plot(sum(bw,2),1:size(bw,1));
so I need how to read column wise pixels using FOR LOOP? can any one tell me how to read pixels column wise ....?
Thanks in Advance

댓글 수: 6

Jan
Jan 2017년 3월 6일
what does "read pixels" mean exactly? What is the input and what is the wanted output?
DB
DB 2017년 3월 6일
This is my input image
how to extract only white pixels in the above image and using FOR LOOP and display the result on histogram projection
Thanks you
Adam
Adam 2017년 3월 6일
What exactly are you expecting a histogram of only white pixels to show?!
DB
DB 2017년 3월 6일
I'm expecting row wise and column wise white pixels on the image using FOR LOOP
Adam
Adam 2017년 3월 6일
It still doesn't make sense what you want. Focus on the result you want. The fact you think you should use a for loop is irrelevant to what you are actually trying to get as an end result.
DB
DB 2017년 3월 6일
This is my input image
I want output like this

댓글을 달려면 로그인하십시오.

 채택된 답변

Adam
Adam 2017년 3월 7일
편집: Adam 2017년 3월 7일

0 개 추천

Judging from your last comment what you want is a plot of the number of black pixels in each column of the image:
figure; area( sum( ~bw ) )
should give you this.

추가 답변 (0개)

질문:

DB
2017년 3월 6일

편집:

2017년 3월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by