where n and theta represent number of orientations and the orientation of the polar indices in the fourier domain. You can follow the following steps to achieve the same:- https://www.mathworks.com/help/matlab/ref/fft2.html
- https://www.mathworks.com/help/matlab/ref/fftshift.html
- https://www.mathworks.com/help/matlab/ref/ifftshift.html
- https://www.mathworks.com/help/matlab/ref/ifft2.html
