A comic-style non-realistic rendering method and device
A non-realistic rendering and style technology, applied in the field of image processing, can solve the problems of too many noise points, outlines, inaccurate edge extraction, etc., and achieve the effect of less noise points and clear outlines
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] figure 1 It is a flow chart of a comic-style non-realistic rendering method in a preferred embodiment of the present invention; the method includes the following steps:
[0049] S101, acquire image A,
[0050] S102, performing grayscale processing on image A to obtain image a;
[0051] Specifically:
[0052] a(i,j)=0.299*A(i,j) R +0.587*A(i,j) G +0.114*A(i,j) B ;
[0053] Among them: divide the image into rows and columns according to pixels, i is the i-th row of each image; j is the j-th column of each image; A(i,j) R is the red component value of the pixel (i,j) of image A, A(i,j) G is the green component value of the pixel (i,j) of image A, A(i,j) B is the (i, j) point pixel blue component value of image A; a(i, j) is the (i, j) point pixel value of image a;
[0054] S103, performing multi-threshold processing on the image a to obtain an image c 1 ;
[0055] If: a(i,j)>T 2 , then C 1 (i,j)=α
[0056] If: T 1 1 (i,j)=β
[0057] If: a(i,j)≤T 1 , then C...
Embodiment 2
[0077] figure 2 It is a flow chart of a comic-style non-realistic rendering method in a preferred embodiment of the present invention; compared with Embodiment 1, the method of this embodiment of the present invention adds a step "preprocessing image a to obtain image b" after step S102, at this time Step S103 and step S104 in the first embodiment both process the image b, and all the relevant variables corresponding to a in steps S103-105 are replaced with relevant variables corresponding to b.
[0078] details as follows:
[0079] S201, acquire image A;
[0080] S202, performing grayscale processing on image A to obtain image a;
[0081] Specifically:
[0082] a(i,j)=0.299*A(i,j) R +0.587*A(i,j) G +0.114*A(i,j) B ;
[0083] Among them: divide the image into rows and columns according to pixels, i is the i-th row of each image; j is the j-th column of each image; A(i,j) R is the red component value of the pixel (i,j) of image A, A(i,j) G is the green component value...
Embodiment 3
[0107] image 3 It is a structural diagram of a comic-style non-realistic rendering device in a preferred embodiment of the present invention, and the device includes:
[0108] Image acquisition module, used to acquire image A;
[0109] A grayscale processing module, configured to perform grayscale processing on image A to obtain image a;
[0110] Specifically:
[0111] a(i,j)=0.299*A(i,j) R +0.587*A(i,j) G +0.114*A(i,j) B ;
[0112] Among them: divide the image into rows and columns according to pixels, i is the i-th row of each image; j is the j-th column of each image; A(i,j) R is the red component value of the pixel (i,j) of image A, A(i,j) G is the green component value of the pixel (i,j) of image A, A(i,j) B is the (i, j) point pixel blue component value of image A; a(i, j) is the (i, j) point pixel value of image a;
[0113] A multi-threshold processing module, configured to perform multi-threshold processing on the image a to obtain an image c 1 ;
[0114] I...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com