I'm doing little program to get blur from source image and blurred image. But I haven't learned so much things about math in school yet.
The equation used for blurring the image A into B:
B(x,y) = A(x-1,y-1)*C(0,0) + A(x,y-1)*C(1,0) + A(x+1,y-1)*C(2,0) + A(x-1,y) *C(0,1) + A(x,y) *C(1,1) + A(x+1,y) *C(2,1) + A(x-1,y+1)*C(0,2) + A(x,y+1)*C(1,2) + A(x+1,y+1)*C(2,2)
So what efficient way to solve it?