McDonnell [10] described a box-filtering procedure for mean calculation. The main advantage of box filtering is its speed, which approaches four operations for each output pixel and is independent of box size. For detailed description of the technique please see [10].