This project explores different methods to alter and process images. These include convolution (blurring), grayscaling, mirroring.
Grayscales is a range of gray shades from white to black, all these color share that red = green = blue. There are several methods to convert colored images to grayscale, two of them are:
In the average method, the RGB-value is calculated as the average of green, red and blue, that is:
Human eyes react differently to RGB, eyes are most sensitive to green light, less to red and least to blue light. Therefore the weighted method weighs red, green and blue according to their wavelenghts. The updated formula then becomes:
In the module Convolution.js different methods for convolutions are implemented. Convolution of pictures is done by multiplying the image (
Gausssian blur uses a Gaussian function for convoluting a picture. The Gaussian function in two dimensions is:
The task of unblurring images is much more difficult and can be done using Fourier Transforms. The convolution equation (
Kumar, Shashank (2022) (https://towardsdatascience.com/how-to-de-blur-images-without-training-neural-networks-72f8597c0014)