Spatial summation for motion detection