Decomposing Images into Harmonic Components Using Fourier Transform

Click For Summary
The discussion centers on the desire to decompose an image into its constituent sinusoidal components using Fourier transforms. The user seeks to visualize individual waveforms or harmonics that combine to form the original image, referencing a specific example of learned filters from a machine learning model. There is a focus on using tools like MATLAB and OpenCV for this purpose. The response emphasizes that a 2D Fast Fourier Transform (FFT) can be used to analyze the image, suggesting that frequencies can be manipulated to isolate specific components. However, it notes that the example provided involves more complex machine learning techniques beyond basic FFT applications. The user expresses frustration over not receiving clear guidance on how to achieve their goal with the tools mentioned.
ramdas
Messages
78
Reaction score
0
I am beginer in image processing. Any signal whether it is 1D,2D or any multidimensional signal can be represented using combination of number of sine and cosine wavesforms (harmonics).Similerly any image can be termed as a function of sinusoidal signals.I want to see individual pattern for the number of waveforms/harmonics present in an image .for example the following link contains few of them http://www.cs.toronto.edu/~rfm/factored/filters_out.png .So are there any Matlab/ OpenCV /C code or results to understand easily these components(sine and cosine functions(harmonics)) present in any image?
 
Last edited:
Technology news on Phys.org
Matlab fftn says it does multidimensional Fourier transform. I don't have any experience with it.
 
@FactChecker Sir fftn function gives Fourier transform of whole image.I want result as per link given in the question
 
ramdas said:
@FactChecker Sir fftn function gives Fourier transform of whole image.I want result as per link given in the question

Could you be a little more clear on exactly what you are looking for? Typically you take a 2D FFT of an image, and then do something with it and transform it back. For instance, if you only wanted to see certain frequencies in an image, you would take the 2D FFT, and multiply the frequencies you don't want by 0, and then transform it back.

The image you linked to is from this page:
http://www.cs.toronto.edu/~rfm/factored/
This page describes those as learned filters from a machine learning model that looks at different images. This professor's work is much deeper than any simple thing that can be done with FFT.
 
  • Like
Likes ramdas
@Fooality what i want is that I want to decompose an image into its bases function/components using Fourier transform/series. I want to see waveforms/harmonics when added together forms the original image.
Sir,Do u get me or not?
@FactChecker Sir fftn function gives Fourier transform of whole image.I want result as per link given in the question
Fooality said:
Could you be a little more clear on exactly what you are looking for? Typically you take a 2D FFT of an image, and then do something with it and transform it back. For instance, if you only wanted to see certain frequencies in an image, you would take the 2D FFT, and multiply the frequencies you don't want by 0, and then transform it back.

The image you linked to is from this page:
http://www.cs.toronto.edu/~rfm/factored/
This page describes those as learned filters from a machine learning model that looks at different images. This professor's work is much deeper than any simple thing that can be done with FFT.
 
Last edited:
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K