Halftoning Comic style

Source: Internet
Author: User

Halftone (semi-tuned method) is a non-realistic Paster. It is used to simulate pen-and-ink styles ). It was first originated from the printing of White Paper and black text books. All continuous color images, whether color or gray, can only be expressed in black and white, therefore, the overall brightness distribution must be roughly the same.

Halftone Screen is the most basic factor for determining the visual effect in the semi-tuning method. It is a grayscale texture containing a threshold value. To create a half-tuned image from a given input image, compare the brightness of each pixel with the corresponding threshold value in halftone screen, writes black or white pixels based on the comparison result. Suppose H is the threshold of Halftone Screen and L is the target brightness. We can write the threshold function:

H> (1-L )? 1:0

Here, (1-l) indicates the darkness (darkness ).

Below are some (Implemented Using OpenGL + CG, and the red ball is the light source ):

Related Article

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.