command run 1:
octave:1> imga=imread('/home/hp/Downloads/1.jpg');
octave:2> imshow(imga)
octave:3>figray=fft2(imga); //figray is complex
octave:1> imga=imread('/home/hp/Downloads/1.jpg');
octave:2> imshow(imga)
octave:3>figray=fft2(imga); //figray is complex
octave:4>imshow(figray)
We can shift the quadrant back to its proper place by using the command
imshow(fftshift(abs(figray))), [])
Now we can inverse the transform we used by using another FFT.
imshow(abs(fft2(fft2(Imga))));
octave:31> imshow(abs(fftb)); image obtained is white as below
octave:32> imshow(abs(fftb),[]); image obtained is same as white above
No comments:
Post a Comment