How I can compare one pixel to a neighbor pixel and also another pixel?

1 view (last 30 days)
Also, how I can make a difference histogram of the comparison results? Or how I can make a difference histogram generally?

Accepted Answer

Image Analyst
Image Analyst on 14 Jan 2013
How do you want to compare them? Do you want to subtract them? If so you can use conv2(). Do you want to know how many times one gray level occurs next to another gray level? If so you can use graycomatrix().
  13 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!