Given An Image And A Mask Mxn Where M 2k 1 And N 2p 1 The Mask Is Moving Across

Given an image , and a mask mxn, where m=2k+1 and n=2p+1. The mask is moving across the image in a pixel-wise fashion and is always in the image. Find the number ofMxNI∑ ∑=− =−+ + =ki kpj pNgl µ(i, j) f (x i, y j) . Find also the big O assessment of the algorithm?