to ensure the periodic boundary, weight function or other functions may used in later convolution as response singnal should be initiated from 4 directions instead of 2.
2d weight function in fourier space can be calculated as shown in fweight.m
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!