scheme-like defines
average filter