Image processing-Basic (Template and convolution)

Source: Internet
Author: User
Conversion from: Image Processing: Basic (template, convolution) 1. Use templates to process image-related concepts:

Template: matrix square. Its mathematical meaning is a convolution operation.
Convolution: it can be seen as a process of weighted summation. each pixel in the used image area corresponds to each element in the convolution kernel (weight matrix ).
Multiplication. The sum of all products is the new value of the regional center pixel.
Convolution core: The weight used for Convolution is represented by a matrix. The size of this matrix is the same as that of the image area, and its rows and columns are odd,
Is a weight matrix.
Convolution example:
Convolution between 3*3 pixel region R and convolution core G:
R5 (center pixel) = r1g1 + r2g2 + r3g3 + r4g4 + r5g5 + r6g6 + r7g7 + r8g8 + r9g9

2.Image processing using templates:
Border problem: when processing image boundary pixels, the convolution kernel and the image use region cannot match. The center of the convolution kernel corresponds to the border pixel,
Convolutional operations may cause problems.
Solution:
A. Ignore the boundary pixels, that is, the processed images will lose these pixels.
B. Retain the original boundary pixel, that is, copy the boundary pixel to the processed image.

3.Common templates:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.