how to find fourier transformation in intensity values
이전 댓글 표시
채택된 답변
추가 답변 (1개)
Image Analyst
2013년 12월 22일
0 개 추천
See two of my demos on fft, attached. If you want anything more then write back after reading this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer and this http://www.mathworks.com/matlabcentral/answers/728-how-do-i-write-a-good-question-for-matlab-answers
댓글 수: 5
engineer 01
2013년 12월 22일
Image Analyst
2013년 12월 23일
편집: Image Analyst
2013년 12월 23일
You're welcome. I'm sorry you don't understand how the FFT works or what it means. Perhaps you need to brush up with these introductory/tutorial sites:
By the way, did you read those links I gave you first on how to write a good question?
The main code was just one line:
fftOriginal = fft2(double(grayImage));
the rest was just to display things to help you understand it better. Do you understand that one line at least?
engineer 01
2013년 12월 23일
편집: engineer 01
2013년 12월 23일
Youssef Khmou
2013년 12월 23일
1.read an image called ram.jpg.
2.transformation from rgb(NxMx3) to grayscale (NxM).
3.compute its fourier transform with shifting the elements to have peak in
the center .
4.make in the inverse Fourier transform ( verification of the reversibility).
5.showing results.
Image Analyst
2013년 12월 23일
Yes, having Youssef's explanations as comments would have been helpful. Also having titles above the images would help. I always encourage people to do things like that to make their code maintainable, especially by other people who may not know the author's thought process. On the other hand, I always do that to try to be helpful and people always say my demos are too complicated. Can't win I guess.
I just thought I'd explain why the Fourier Transform image doesn't look right. It looks like random noise garbage. That is because it was displayed with
imshow(meltem);
Now, meltem is a floating point image. And when imshow displays a floating point image it expects it to be normalized so that it's in the range 0-1. Anything less than 0 will show up as black and anything more than 1 will show up as white. Most of the meltem values are outside of the 0-1 range so that's why your meltem image looks like salt and pepper noise. To prevent that, use [] to scale the display to the max and min of meltem:
imshow(meltem, []);
But that, like almost all images will show a large central spike that makes it hard to see the higher spatial frequencies. So that is why people often take the log of the image before display to suppress the height of the central frequencies and let you see what's going on with the higher frequencies, because they won't be squashed to tiny values anymore:
imshow(log(meltem), []);
카테고리
도움말 센터 및 File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
