%%DIP  Class Demo
%Shreekanth Mandayam, Rowan University
%
%To show that rotation of image will lead to
%identical rotation of transform

close all;clear;

im=zeros(256);
a=ones(81);
im(118:138,88:168)=a(1:21,1:81);

figure(1);imshow(im)
pause;
figure(2);imshow(fftshift(mat2gray(abs(fft2(im)))));
pause;
figure(3);imshow(im');
pause;
figure(4);imshow(fftshift(mat2gray(abs(fft2(im')))));
