Pixel intensity plot graph in matlab

2 次查看(过去 30 天)
ali
ali 2013-3-7
hi all,
how can we plot pixel intensity graph of an image in matlab? just like this.

回答(1 个)

Image Analyst
Image Analyst 2013-3-7
Use improfile() to get an intensity plot along a line. Then use plot() to plot it in a line plot like your picture shows.
  2 个评论
ali
ali 2013-3-8
I have tried it but ı havent succeeded.
I want to plot all pixel values for intensity like above. But it gives error.
for example my image is 480*640.
Image Analyst
Image Analyst 2013-3-8
Read your comment from my point of view and imagine if it's possible for me to help you with what information you've provided me. Would YOU be able to help someone who said that, but provided no image, no code, and no error message?

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by