Decomposing Images into Harmonic Components Using Fourier Transform

Click For Summary
SUMMARY

This discussion focuses on decomposing images into harmonic components using the Fourier Transform, specifically through the use of MATLAB's fftn function and OpenCV. The participants emphasize the need to visualize individual sine and cosine waveforms that contribute to the original image. It is noted that while the fftn function provides a multidimensional Fourier transform, additional steps are required to isolate specific frequencies, such as multiplying unwanted frequencies by zero and performing an inverse transform. The linked resource showcases learned filters from a machine learning model that analyzes various images.

PREREQUISITES
  • Understanding of 2D Fourier Transform (FFT)
  • Familiarity with MATLAB and its fftn function
  • Basic knowledge of image processing concepts
  • Experience with OpenCV for image manipulation
NEXT STEPS
  • Learn how to perform a 2D FFT in MATLAB and visualize the results
  • Research techniques for filtering specific frequencies in an image
  • Explore the use of OpenCV for implementing Fourier Transform on images
  • Study the application of learned filters in machine learning for image analysis
USEFUL FOR

This discussion is beneficial for image processing enthusiasts, MATLAB users, and developers interested in applying Fourier Transform techniques to analyze and decompose images into their harmonic components.

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   Reactions: 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:

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