Edge Detection


2004-02-25 04:41:50 PM
cppbuilder0
I have been searching for a "difference" function that will take
a bitmap, and produce an array of pixel differences as they occur
in that bitmap - similar to the "diff" command in Matlab:
Y = diff(X) calculates differences between adjacent elements of
X.
I had a version written using 2 for loops but it was very slow
compared to the other functions I have written that use the
scanline approach.
Can anyone advise on where I might find an optimised function
to do what I want?
Thanks