Cascading Two FIR Filters

The left column shows the orginal filter as it is passed through a 5-point averager and then a first-difference filter.
The right column starts with the same image, but first passed through the first-difference and then the 5-point averager. Note that the resulting output image from the cascade is the same.
x.gif Start with the same image x.gif
h5ftiny.png Filter the left with a 5-point averager and
the right with a first-difference
hdiftiny.png
v_casc.gif Note the different output images at this point w_casc.gif
hdiftiny.png Now filter with the "other" filter h5ftiny.png
y1.gif And the final results are the same! y2.gif