Effects of effects on Android image processing

Source: Internet
Author: User

This article will talk about the effects of photo effects on lighting. As before, the pixel is processed, and the algorithm is universal.

Algorithm principle: The pixels above the image according to the given center, according to the circle radius, the RGB values of the pixels are added to the corresponding values as the current point RGB values.

Cases:

ABCDE

Fghij

Klmno

If the specified H point is the center of the lighting effect, and the radius is two pixels, then the value of the G-point RGB value will be greater than the F point, because the larger the RGB value, the closer the white, so the G-point looks whiter than the F-point, that is, the closer to the light center, see:

Original:


After processing:


Code:

The light intensity value strength can be changed according to the desired effect.

Effects of effects on Android image processing

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.