Calculation of convolution

Calculation of convolution:

(1) The flip of the convolution kernel can be done in the three ways of the previous article. The simplest is to rotate the convolution kernel 180 degrees clockwise around its core element. 

(2) Move the center element of the convolution kernel so that it is directly above the pixel to be processed in the input image 

(3) In the rotated convolution kernel, multiply the pixel values ​​of the input image as weights 

(4) The sum of the results of the third step is used as the output pixel corresponding to the input pixel 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324908769&siteId=291194637