CS585 HW1

Guangxing ren

Sep 12, 2018

Problem Definition

  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. For example, you may create a blurred image of your grayscale face by assigning to each pixel the average grayscale pixel value of itself and its 8 neighbors. Hint: You may have to run your program a few times to make the blurring noticeable.

Method and Implementation

for the grayscale I assign the average RGB;(R+G+B)/3 to each individual pixelfor horizontal flip, I input a second image and apply a loop to flip the image.For blur, I assigning to each pixel the average grayscale pixel value of itself and its 8 neighbors. 

 

 

Experiments

I use my face image to experience these three method. The results looks good. Since I blur a few time so the running time is a bit long.

Results

original image

gray image

flip image

blur image

 


Conclusions

My results fit the requirments. 


Credits and Bibliography