Acceleration of 2D convolution using integral image