- #1

kakolukia786

- 11

- 0

**2. Homework Equations**

I know how to calculate the 2-D periodic convolution for 2 equal size data set (one from the DFT convolution theorem and the other method is to inverse one of the function and slide it from the left it to the right and top to bottom over the next function and calculate the values (my teacher taught this way, it is easier).

For 2 non equal data set, I know I have to pad it with zero, but I couldn't figure it out HOW ? I know how to pad for 1-D convolution, we just put zeros behind data set to make it of equal size to the other one. How do I pad in the case of 2-D, in this case G, Do I just fill in zeros like [1 0 0 0; 1 2 0 0; 0 0 0 0; 0 0 0 0] ? Any help will be appreciated. Thanks

I know how to calculate the 2-D periodic convolution for 2 equal size data set (one from the DFT convolution theorem and the other method is to inverse one of the function and slide it from the left it to the right and top to bottom over the next function and calculate the values (my teacher taught this way, it is easier).

## The Attempt at a Solution

For 2 non equal data set, I know I have to pad it with zero, but I couldn't figure it out HOW ? I know how to pad for 1-D convolution, we just put zeros behind data set to make it of equal size to the other one. How do I pad in the case of 2-D, in this case G, Do I just fill in zeros like [1 0 0 0; 1 2 0 0; 0 0 0 0; 0 0 0 0] ? Any help will be appreciated. Thanks