Skip to content

Latest commit

 

History

History

ps0_python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Problem Set 0: Images as Functions

1. Input Images: img1, img2

2. Color Planes

a) img1_swapped: img1 with swapped red and blue channels
b) img1_green: monochrome img1 using the green channel
c) img1_red: monochrome img1 using the red channel
d) img1_blue: monochrome img1 using the blue channel
e) img1_green > img1_red

3. Replacement of Pixels

Replacement of a 100x100 square region of img2 with the respective region of img1, using the monochrome versions of img1 and img2

4. Arithmetic and Geometric Operations

a) img1_green: min = 0, max = 255, mean = 82.24, std=38.12
b) (img1_green - mean) /std * 10 + mean
c) img1_green_shifted: Shifted img1_green by 2 pixels to the left
d) Difference of img1_green_shifted from img1_green

5. Noise

a) Application of gaussian noise (0,30) on the green channel of img1
b) Application of gaussian noise (0,30) on the blue channel of img1
c) The image with the gaussian noise in the blue channel looks cleaner than the one in the green channel, since the human eye has increased sensitivity towards the green color spectrum and thus can more easily distinguish the green noise.