Lena Image Fourier Transform
이전 댓글 표시
Can any one transform the image into its fourier transformation using matlab?
Thanks
답변 (2개)
Wayne King
2012년 9월 20일
편집: Wayne King
2012년 9월 20일
0 개 추천
Yes, use fft2()
This question seems identical (but with less detail) to this one:
It is not good practice to simply keep creating a new thread for the same question. I think you will get much more help if you show what you have tried; the code you have written.
댓글 수: 6
Algorithms Analyst
2012년 9월 21일
편집: Algorithms Analyst
2012년 9월 21일
Wayne King
2012년 9월 21일
Please format your code
Algorithms Analyst
2012년 9월 21일
Wayne King
2012년 9월 21일
편집: Wayne King
2012년 9월 21일
You seemed to have deleted it. The code is missing.
Algorithms Analyst
2012년 9월 21일
Walter Roberson
2012년 9월 21일
There is no colormap named "in2rgb"
Dr. Deepak Kumar Rout
2012년 9월 21일
0 개 추천
to the above code you have to add syntax so as to multiply (-1)^(x+y) that will center the low frequency components
댓글 수: 12
Algorithms Analyst
2012년 9월 21일
Image Analyst
2012년 9월 21일
fftshift() will center the DC component to the middle of the image. I just can't figure out why he's transforming the full RGB image instead of each color channel individually. I'm not sure how to interpret that or what you'd even do with it.
Algorithms Analyst
2012년 9월 21일
Image Analyst
2012년 9월 21일
Did you see the second part of my comment?
Algorithms Analyst
2012년 9월 21일
Image Analyst
2012년 9월 21일
Here's a snippet that will help you.
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
Algorithms Analyst
2012년 9월 22일
Image Analyst
2012년 9월 22일
What about
fftOfRedChannel = fft(redChannel);
didn't work?
Algorithms Analyst
2012년 9월 23일
Rick Rosson
2012년 9월 23일
Image Analyst is right. Please try what he is suggesting.
It is not possible to convert a gray scale image back to rgb. An rgb image has 3 channels for each pixel, whereas gray scale only 1 channel. The gray scale is in effect a weighted average of the three colors. It is mathematically impossible to go from an average to the individual components without additional information.
Image Analyst
2012년 9월 23일
I think you misunderstood. I did not ask "Did this code work?", I asked "What about the code did not work?". In other words, I assume you tried what I suggested and am asking why it didn't work, for example you had an error message or unexpected results and what was the error message or unexpected result.
Usually people try to help people who are trying to help them. One word answers tell people that they're not interested in investing enough time to allow people to help them, which leads us volunteers to not help. I can't solve problems with single words so if you give them, and want responses just as terse, then I'm not your man. You get what you give.
Algorithms Analyst
2012년 9월 24일
카테고리
도움말 센터 및 File Exchange에서 Image Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!