CS 4495 Problem Set 0 – Images as Functions (really arrays or matrices of numbers) solution

$29.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (5 votes)

1 Input images
a. Find two interesting images to use. They should be color. You might find some classic vision
examples in http://sipi.usc.edu/database/database.php?volume=misc Or take your own.
Make sure they are not larger than 512×512.
Output: both images
2 Color planes
a. Swap the red and blue pixels of image 1
Output: new image
b. Create a monochrome image (M1g) by selecting the green channel of image 1
Output: new image
c. Create a monochrome image (M1r) by selecting the red channel of image 1
Output: new image
d. Which looks more like what you’d expect a monochrome image to look like? Would you
expect a computer vision algorithm to work on one better than the other?
Output: response
3 Replacement of pixels
a. Take the inner square of 100×100 pixels of monochrome version of image 1 and insert them
into the monochrome version of image 2
Output: new image
4 Arithmetic and Geometric operation
a. What is the min and max of the pixel values of M1g? What is the mean? What is the
standard deviation? And how did you compute these?
Output: response
b. Subtract the mean from all the pixels, then divide by the standard deviation, then multiply
by 10 (if your image is zero to 255) or by 0.05 (if your image ranges from 0.0 to 1.0). Now
add the mean back in.
Ouptut: new image
c. Shift M1g to the left by 2 pixels.
Output: new image
d. Subtract the shifted version of M1g from the original and make sure that the values are legal
(what do negative numbers for pixels mean anyway?).
5 Noise
a. Take the original colored image and start adding Gaussian noise to the pixels in the green
channel. Increase sigma until the noise is somewhat visible.
Output: new image. Response: what is sigma?
b. Now, instead add that amount of noise to the blue channel.
Output: new image
c. Which looks better? Why?
Output: response