# Assignment Title

CS 585 HW 1
Yicheng Li

1/29/2020

## Problem Definition

Applying the basic image processing method professor discussed in the lecture and familiarizing us with programming with images.

1.Create a grayscale image of your face by converting your color image using one of the conversions we discussed in class last week.

2.Flip your face image horizontally, i.e. left to right, right to left.

3.Come up with a third way of manipulating your face that produces an interesting output.

## Method and Implementation

1. To create a grayscale image I simply scan every pixels of the origin image and use the average value of the three channels (Red, green and blue) as the value of new gray image. By this way I get the grayscale image.

2. To flip the image I also scan the whole origin image and I put the values of every rows on the opposite side of the flipped image and so call flip the image.

3. Firstly, I set the size of my scanning window as 3 by 3. So the value of every pixels in the new picture is the average value of 8 neighbors of it. And with the hint homework, I literate the scanning for 3 times to amplify the results. In this way we get a blurred version of gray image.

## Results

### Results

Trial Source Image Result Image
trial 1
trial 2
trial 3