replace convolution with constant filter by a fast sum when total rotation invariant