What is the ” pixel-difference” filter in the assignment?
That is just the subtraction of adjacent pixels. This can be done across the rows, and down the columns. It would look something like DiffImage(y, x) = Image(y, x) – Image(y, x-1) for the horizontal differences, and DiffImage(y, x) = Image(y, x) – Image(y-1, x) for the vertical differences. Of course, you’d have to adjust the loops that enclose these.