- #1
kakolukia786
- 11
- 0
Hi, I have been given two data set F = [1 0 0 1; 2 1 0 1; 1 2 1 0; 0 1 0 2] and G = [1 0; 1 2], here separated by (;) means they are different rows. I have been asked to compute the 2-D periodic convolution.
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
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).
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