MATLAB Answers


Calculating difference between histograms

Asked by Renjith V Ravi on 13 Feb 2017
Latest activity Commented on by Renjith V Ravi on 13 Feb 2017
Can I use the command
Z = imabsdiff(X,Y)
for calculating the difference between histograms of two images.


Sign in to comment.

1 Answer

Answer by Image Analyst
on 13 Feb 2017
 Accepted Answer

Z = imabsdiff(X,Y) subtracts each element in array Y from the corresponding element in array X and returns the absolute difference in the corresponding element of the output array Z. If you passed two count arrays (histograms) in for X and Y, it would give the absolute value of the count differences, but what does that mean? Probably not what you hope it might. What are you trying to accomplish?


I have posted it as another question

Sign in to comment.