Image Transformation

Image Transformation:
ImageTransformation1
Image is transformed from spatial domain(h(n)) to frequency domain(H(f)).
Transform: Signals in spatial domain -> Signals in frequency domain
Inverse Transform: Signals in frequency domain -> Signals in spatial domain
No information loss through Transform or Inverse transform
Fourier’s Idea: Periodic Functions could be represented as a weighted sum of sines and cosines
-> If we set the period as infinity, periodic functions can be any functions
Let’s assume that f(x) is the signals in 1D spatial domain, four periodic functions are cos(8θ), cos(4θ), cos(2θ), cos(θ)
f(x) = 0.2xcos(8θ) + 0.4xcos(4θ) + 0.3xcos(2θ) + 1xcos(θ)
The result of transform is to find the co-efficients such as 0.2, 0.4, 0.3, and 1

Period

ImageTransformation2
Period: Time between current peak and next peak

Variation of Peak and Phase

ImageTransformation3
A: Amplitude
B: Period (2pi/B)
C: Phase Shift
D: Vertical Shift
Image_Transformation4

Image Transformation

Image_Transformation5
Red Signal: Weighted sum of blue signals
Blue Signal: Basis Function
(1) Each basis function is orthogonal to other basis functions
Assuming you have basis functions of f1(x) ~ f10(x), you cannot make f1(x) from any combination of other basis functions.
Inner product of orthogonality was zero
(2) Norm size of basis function should be 1.
Ex. Similar to the basis vector which spans the space. V=(1,0) U=(0,1), You can represent any vector by using weighted sum of U,V.
(3,2) = 3V + 2U —- generalization —> (x,y) = xV + yU

Basis Function of Image

Image_Transformation6 X: Image Coordinate, Y: Image Intensity
Left: Low Frequency, Right: High Frequency
Black: Low Intensity, White: High Intensity
Intensity: Value of a pixel
RGB Format:
Values of R, G, B are intensity
YCbCr Format:
Values of Y, Cb, Cr are intensity

Discrete vs. Continuous

Data Sampling -> Data Quantization -> Image Transformation
Data Sampling: Selecting continuous images in regular intervals (light => electrical)
Data Quantization: Converting an input from a continuous or otherwise large set of values (real numbers) to a discrete set (electronic -> Digitalized)
Image Transformation: According to Fourier Transform, periodic functions can be represented by a weighted sum of sines and cosines, and if the periods are set to infinity, periodic functions can be any functions. Using this concept, as it is hard to change the images itself in a spatial domain, we change it to the frequency domain and fine tune the coefficient of sines and cosines, therefore changing the intensity of each signal components to change the original image. (Discrete -> Discrete)
-Image Transformation happens after data sampling and quantization therefore it deals with discrete signals.
-Basically it is a discrete transformation for 2D signals (ex.Discrete Fourier Transform, Discrete Cosine Transform )

Discrete Fourier Transform