MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayTo resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Asked by Teemu on 14 Jan 2013

Also, how I can make a difference histogram of the comparison results? Or how I can make a difference histogram generally?

Answer by Image Analyst on 14 Jan 2013

Accepted answer

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().

Show 10 older comments

Teemu on 13 Feb 2013

How I can do it without conv2 function? Can I do it with loop? So I like to subtract pixel gray level to it´s neighbour pixel gray level using loop. How can I do it?

## 0 Comments