This is Weifan Chen, an artificial intelligence Master student at Boston Univeristy.
Currently, I am taking Image and Video Computing. Here are the results of the very first assignments we have. Via OpenCV, the above selfie is transformed to be flip horizontally, gray, and blurred.
The flip is achieved via swap the numpy matrix through the center of x axis.
The gray scale is achieved by the average value of the RGB channel. The code can also do the transformation through max value of RGB and weighted method.
During the blurration, each pixel's grayscale value is determined by it's eight neighbors' value and itself. The blurred image went through five iterations.