how to plot intensity graph for an image

hi, i want to plot a intensity graph of an image like this
for an image
to find out the either closed or opened state of eye. i need this for my project. thank you

1 件のコメント

Vedpal Singh
Vedpal Singh 2014 年 12 月 30 日
Hello,
To sort out this problem, I think improfile command is the best option.
VP Singh

サインインしてコメントする。

 採用された回答

Dishant Arora
Dishant Arora 2014 年 2 月 22 日
編集済み: Dishant Arora 2014 年 2 月 22 日

1 投票

Convert it to grayscale and take mean along the rows using mean(I,2)
I = rgb2gray('fullfilename')
plot(1:size(I,1) , mean(I,2));

5 件のコメント

saravanan.R
saravanan.R 2014 年 2 月 22 日
i didn't get the intensity changes like above graph. how to get more clear result .any suggestion
Walter Roberson
Walter Roberson 2014 年 2 月 22 日
None that less, that is correct code for as much of the properties of the plot as can be deduced from the labels and description. What plot result do you get ?
Dishant Arora
Dishant Arora 2014 年 2 月 22 日
Does the graph shown above belongs to the same image or was it just an example??
Instead of gray scale intensity it might take average of 3 planes,or just an individual plane out of the 3.
saravanan.R
saravanan.R 2014 年 2 月 23 日
i got this graph for a above eye image. can i find out the state of the eye whether it is closed or not using this intensity graph. if not means can u tel me any other method to do so. eye state detection is important section in my project. can u help me
Dishant Arora
Dishant Arora 2014 年 2 月 23 日
編集済み: Dishant Arora 2014 年 2 月 23 日
If the eye is closed distance between the two deep valleys would increase. As eyelashes would go down.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeEye Tracking についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by