Smoothing by averaging with the box blur kernel