I have the moving-average mask as
mask = [1 1 1; 1 1 1; 1 1 1];
and then I compute the convolution 3 times
imageF = conv2(conv2(conv2(originalImage, mask), mask), mask);
I want to know how can I get an equivalent mask to compute the filter with just one convolution
imageF = conv2(originalImage, equivMask);