First cut at changing the single-pixel filter function into one based on a neighborhood.