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

\$29.99

Category:

## Description

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