From: talal hammouri on
Am in need of code for frame differences as value that can be used to see how big the different between frames. i have used the function imabsdiff, but this function shows the difference as image i want a function to give only values and to determine some threshold value to accept the difference or not.


Thank you
From: Steven Lord on

"talal hammouri" <talalah(a)yahoo.com> wrote in message
news:hqmpe3$ddk$1(a)fred.mathworks.com...
> Am in need of code for frame differences as value that can be used to see
> how big the different between frames. i have used the function imabsdiff,
> but this function shows the difference as image i want a function to
> give only values and to determine some threshold value to accept the
> difference or not.

So you need to determine how to generate "only values" from the image
representing the difference. You could take the maximum value of that image
using MAX, the minimum with MIN, the norm of the difference matrix with NORM
(althought for this you may need to convert your image to double precision
if it's stored in an integer type), determine if there are any differences
at all with ANY, or whatever metric you want. Since we don't know what
you're trying to do, there's no way for us to tell what the best metric is
for the problem you're trying to solve.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ