Lecture-03 (Unit-02)
Lecture-03 (Unit-02)
Different models:
RGB:
• R: Red, G: Green, B: Blue
• Primary Colors
• Screens, digital displays (e.g., TVs, monitors, phones)
CMYK:
• C: Cyan, M: Magenta, Y: Yellow, K: Black (Key)
• Secondary Colors
• Printing (e.g., paper, physical media)
For instance, in an RGB image, you could separate out the red channel to focus
only on the red elements in the photo, isolating the flower's petals from other
colors.
Example:
Imagine a photograph taken in low light that appears grainy due to sensor
noise. Using image restoration techniques like Wiener filtering or Inverse
filtering, the noise can be reduced, restoring the image to a clearer, more
detailed version.
For example, if an image is blurred due to camera shake, you can apply
deblurring algorithms to recover sharper details.
Example:
Imagine two cameras positioned side by side capturing an image of a scene.
Each camera sees the scene from a slightly different angle. By comparing
the two images, you can compute the depth of objects in the scene. Closer
objects will have more significant differences (disparity) between the two
images, while distant objects will have smaller differences.
Application:
Stereo vision is often used in autonomous vehicles to measure the distance
to obstacles, enabling the vehicle to navigate safely by creating a 3D map
of its surroundings.
1. Detect the car in the video by identifying pixels that change between
frames.
2. Track the car’s movement by following its position across multiple
frames.
3. Analyze the car’s speed and direction based on how fast and in
which direction it moves from one frame to the next.
Global features capture information about the entire image rather than
localized sections. They represent the overall characteristics of the image,
such as color distribution, texture, and shape.
Let’s go through the wavelet transformation step by step using a simple linear
function as our example. We will use a linear function for clarity and show
how wavelet transformation can be applied to it.
f(x)=2x+1
• Data Points:
o f(0)=1
o f(1)=3
o f(2)=5
o f(3)=7
o f(4)=9
o f(5)=11
1. Haar Wavelet:
o Let’s use the Haar wavelet. It is the simplest wavelet,
consisting of two parts: one for averaging and one for
detail.
Let’s walk through the steps of DWT on our linear data points:
1. Initial Data:
o Original Signal: [1,3,5,7,9,11]
• Approximation:
o cA[0] = (1 + 3) / 2 = 2
o cA[1] = (5 + 7) / 2 = 6
o cA[2] = (9 + 11) / 2 = 10
• Difference:
o cD[0] = 3 - 1 = 2
o cD[1] = 7 - 5 = 2
o cD[2] = 11 - 9 = 2
• Resulting Coefficients:
o Approximation: cA = [2, 6, 10]
o Details: cD = [2, 2, 2]
Calculations:
• Average:
o cA[0] = (2 + 6) / 2 = 4
o cA[1] = 10
• Difference:
o cD[0] = 6 - 2 = 4
• New Coefficients:
o Approximation: cA = [4, 10]
o Details: cD = [4]
5. Summary of Coefficients
After the wavelet transformation, we have: