Lecture 3 - Fourier Transform Flashcards
(40 cards)
What is a signal and what type of signal is a greyscale image?
- A greyscale image can be treated as a 2-D signal.
- A signal is any physical phenomenon that can be modelled as a function of time or position to some real- or vector-valued domain and is used to carry information
What is an analog signal?
Analog (Continuous) Image (Left):
- This image is smooth and does not have visible pixelation.
- It represents a continuous signal where values change smoothly without abrupt jumps.
- The grayscale shading transitions smoothly, without distinct blocks.
What is a digital signal?
Digital (Discrete) Image (Right):
- This image is pixelated and consists of distinct square blocks.
- It represents a discrete signal where values are sampled and quantized into a finite number of levels.
- The transition between shades is not smooth but rather stepped, showing discrete intensity levels.
What are 1D and 2D signals defined as?
- For 1D, the axis will usually be time, the intuitive way to think of the signal s(t) is an audio signal. For discrete signals, we also write sj (subscript j)
. - For 2D, the axes will usually be 2D-space, and\ we will call the signal s(x , y) an image. For discrete signals, we also write si ,j or s [x , y ]. (subscript i and j)
What is filtering?
Filtering is the process of transforming a signal by allowing certain frequencies to pass through while attenuating (reducing) others. It is widely used in audio processing, telecommunications, and signal processing to remove noise, enhance signals, or extract useful information.
- Filter: a tool used to separate the wanted from the unwanted (generic definition)
What is a Low-Pass filter?
Low-Pass Filter (LPF) - Suppressing High Frequencies
* Function: A low-pass filter allows low-frequency signals to pass through while attenuating (removing) higher frequencies.
* Effect on the Signal:
○ As shown in the first part of the image, the original signal contains both high and low frequencies.
○ After filtering, only the slower, low-frequency components remain, while the high-frequency parts are removed.
* Use Cases:
○ Removing high-frequency noise from an audio signal.
○ Smoothing signals in image processing.
○ Filtering out high-frequency interference in communication systems.
REFER TO SLIDES FOR DIAGRAM
What is a High-Pass filter?
High-Pass Filter (HPF) - Suppressing Low Frequencies
* Function: A high-pass filter allows high-frequency signals to pass through while attenuating (removing) lower frequencies.
* Effect on the Signal:
○ The second part of the image shows an original signal with both low and high frequencies.
○ After applying the high-pass filter, the low-frequency components are removed, leaving only the fast-moving high-frequency parts.
* Use Cases:
○ Removing background noise (such as deep hums or rumbles) from audio recordings.
○ Sharpening images by removing low-frequency components in image processing.
○ Enhancing high-frequency signals in communications (e.g., boosting treble in audio equalizers).
REFER TO SLIDES FOR DIAGRAM
What is the superposition principle?
The Superposition Principle applies to linear systems, meaning that the response of the system to multiple inputs can be determined by summing the responses to each input individually.
This includes additivity and homogenity -> REFER TO SLIDES 10 - 12
What is convolution?
REFER TO SLIDES FOR FORMULA
Used to measure how muhc two signals match as one slides over the other
* Convolution gives the area overlap between the two functions as a function of the amount that one of the original functions is translated after reversal
What is 2D convolution
REFER TO SLIDES FOR EXAMPLE
How does spacial filtering work
- The intensity of a pixel at (x,y)(x,y)(x,y) depends not only on itself but also on the neighbouring pixel values.
- A spatial mask (also called a filter, kernel, or template) is used to perform local enhancement.
- The mask slides over the entire image, performing convolution to modify pixel values.
- The size of the mask (e.g., 3×3, 5×5) determines how many neighbouring pixels influence each output pixel.
REFER TO SLIDE 20 FOR EXAMPLE
What problems arise masking near the boarder of an image and how can it be dealt with?
Part of the mask is located outside the image
To deal with it:
- Discard the problem pixel ie 512x512 becomes 510x510 using the formula -> Output Size = Input size - mask size + 1
- Zero padding: add a boarder of zeros around the image before applying the convolution using the formula -> Output Size = Input size + 2P - Mask Size + 1 (where P is the adding added (ie padded by 1 pixel around the entire image)
How is spatial filtering used for smoothing?
For blurring/ noise reduction;
* Blurring is usually used in pre-processing steps, e.g., to remove small details from an image prior to object extraction, or to bridge small gaps in lines or curves
* Equivalent to Low-pass spatial filtering in frequency domain, because smaller (high frequency) details are removed based on, neighborhood averaging (averaging filters)
How do you implement spactial filtering for smoothing?
Implementation: The simplest form of the spatial filter for averaging is a square mask (assume mxm mask) with the same coefficients 1/m2 to preserve the gray levels (averaging).
Applications: Reduce noise; smooth false contours
Side effect: Edge blurring
REFER TO SLIDE 24 - 26 FOR EXAMPLES
What is the time domain representation?
The amplitude (y) measured against time (x) to get kHZ
What is the frequency domain representation?
The amplitude (y) measured against the frequency (x) to visual the frequency spikes of a wave
What is the difference between spatial domain and frequenecy domain?
❖ In spatial domain, we deal with images as it is. The value of the pixels of the image change with respect to scene.
❖ Whereas in frequency domain, we deal with the rate at which the pixel values are changing in spatial domain.
❖ The term frequency in an image tells about the rate of change of pixel values.
What is process of spatial domain processing?
spatial domain (input image matrix) -> processing -> output image matrix
What is process of frequency domain processing?
spatial domain (input image matrix) -> Fourier transform -> frequency domain (complex image) -> manipulation > frequency domain (complex image) -> inverse fourier transform -> output image matrix
REFER TO SLIDE 34
What are the application of frequency domain?
❖ Applications
Preprocessing
▪ Filtering
▪ Enhancement, etc.
Data Compression
Feature Extraction
▪ Edge Detection
▪ Corner detection, etc.
Spacial Frequencies and Discrete Fourier Transforms (DFT)
REFER TO SLIDES 37 - 44
Define transforms
A signal can be converted from time domain into frequency domain using mathematical operators
For example: fourier series and fourier transformation
What is the Fourier series and what does it claim?
Periodic signals can be represented into sum of Sines and Cosines when multiplied with a certain weight.
❖ What is the Fourier series claim?
‘Any univariate function can be rewritten as a weighted sum of sines and cosines of different frequencies.’
REFER TO SLIDE 48 FOR EXAMPLE
What is the Fourier Transform?
The non periodic signals whose area under the curve is finite can also be represented into integrals of the sines and cosines after being multiplied by a certain weight.
NOTE: The DFT is the sampled Fourier Transform and therefore does not contain all frequencies forming an image, but only a set of samples which is large enough to fully describe the spatial domain image.