Clear Filters
Clear Filters

Pixel intensity plot graph in matlab

2 views (last 30 days)
ali
ali on 7 Mar 2013
Commented: Hirak Mazumdar on 13 Mar 2017
hi all,
how can we plot pixel intensity graph of an image in matlab? just like this.

Answers (1)

Image Analyst
Image Analyst on 7 Mar 2013
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 Comments
ali
ali on 8 Mar 2013
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 on 8 Mar 2013
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?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!