CV - Lecture 2 - Image As Functions
CV - Lecture 2 - Image As Functions
Lecture 2
By: Sarah M. Ayyad
Back Next
Image as Functions
I(x, y)
Back Next
Image as Functions
Back Next
Image as Functions
Back Next
Image as Functions
Now, I can make computation to this function to make the image
looks smoother (blurring) >> this process called image processing.
Image as Functions
• In most general form An image is a function of form R2 𝑡𝑜 R.
• F(x, y) gives the intensity of a value at position (x, y).
Back Next
Color Image
Color image is considered three functions “stacked” together.
We can write this as a “vector-valued” function.
𝑟(𝑥, 𝑦)
F(x, y) = 𝑔(𝑥, 𝑦)
𝑏(𝑥, 𝑦)
Back Next
Define an image as a function
Back Next
Define an image as a function
X (Horizontal
dimension)
y (Vertical
dimension)
Any location in the image can be specified using x value and y value.
Back Next
Define an image as a function
X (Horizontal
15 dimension)
Assume
Intensities
from 0 to 10
165
y (Vertical
dimension)
10 210
2D
Color
plane
rows columns
400 : height
600 : width
3: no. of color planes/channels
The key to solve this >> these images are type uint8 >> so their pixel values range from 0 to 255.
Assume their sizes are 183, 152, respectively.
183 152
First method >> + = 92 + 76 = 168 (this way is better that it preserves pixel values)
2 2
183+152 335 (𝑙𝑎𝑟𝑔𝑒𝑟 𝑡ℎ𝑎𝑛 255) 255 (𝑡𝑟𝑢𝑛𝑐𝑎𝑡𝑖𝑜𝑛)
Second method >> ≫ >> =128
2 2 2
Multiplying images by a number
Multiplying with numbers larger than 1 will make the image brighter
1.5