CN114339448B - Method and device for manufacturing special effects of beam video, computer equipment and storage medium - Google Patents
Method and device for manufacturing special effects of beam video, computer equipment and storage medium Download PDFInfo
- Publication number
- CN114339448B CN114339448B CN202111657130.9A CN202111657130A CN114339448B CN 114339448 B CN114339448 B CN 114339448B CN 202111657130 A CN202111657130 A CN 202111657130A CN 114339448 B CN114339448 B CN 114339448B
- Authority
- CN
- China
- Prior art keywords
- noise
- graph
- eclosion
- disturbance processing
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000000694 effects Effects 0.000 title claims abstract description 81
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 27
- 230000032669 eclosion Effects 0.000 claims abstract description 62
- 230000001795 light effect Effects 0.000 claims abstract description 44
- 238000010586 diagram Methods 0.000 claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 14
- 239000003086 colorant Substances 0.000 claims description 4
- 238000004422 calculation algorithm Methods 0.000 claims description 3
- 238000004364 calculation method Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 230000033001 locomotion Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
Abstract
The invention discloses a method and a device for manufacturing a beam video special effect, computer equipment and a storage medium. The method comprises the steps of picking a mask pattern of a target object in a video, drawing an edge line graph according to the mask pattern, and performing fuzzy eclosion treatment on the edge line graph to obtain an eclosion graph; performing position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph; performing position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph; and merging the first light effect diagram and the second light effect diagram to obtain a light beam special effect diagram. The invention realizes the generation of the rich and changeable beam effect with more details in the drawing of the video special effect by utilizing the noise and wave disturbance mode to manufacture the video special effect of the complex beam.
Description
Technical Field
The present invention relates to the field of graphics rendering and drawing, and in particular, to a method and apparatus for producing a special effect of a beam video, a computer device, and a storage medium.
Background
When a video special effect is manufactured, various light effects are often required to be manufactured; such as human body surrounding light, dynamic up-down light, human hand following light, emitted laser line, etc.; the thickness of the light rays, the bending degree of the curve, the shape of the end head and the transparency change all need to be controlled in a self-defined way according to the requirements.
In the related art, drawing light is performed through a graphics rendering interface such as Opengl, but the drawn light is too monotonous, when a more complex light effect is needed, only some common halation effects can be added, and the requirements of increasingly personalized and cool video special effects are difficult to meet.
Disclosure of Invention
The invention aims to provide a method, a device, computer equipment and a storage medium for manufacturing a beam video special effect, and aims to solve the problem that the existing method for drawing light is too monotonous and has video special effects which are difficult to meet more demands.
In order to solve the technical problems, the aim of the invention is realized by the following technical scheme: the method for manufacturing the special effect of the light beam video comprises the following steps:
a mask of a target object in a video is extracted, an edge line graph is drawn according to the mask, and fuzzy eclosion processing is carried out on the edge line graph to obtain an eclosion graph;
performing position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph;
performing position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph;
and merging the first light effect diagram and the second light effect diagram to obtain a light beam special effect diagram.
In addition, the technical problem to be solved by the invention is to provide a device for manufacturing the special effect of the light beam video, which comprises the following components:
the image acquisition unit is used for picking a mask pattern of a target object in the video, drawing an edge line graph according to the mask pattern, and carrying out fuzzy eclosion treatment on the edge line graph to obtain an eclosion image;
the first processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph;
the second processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph;
and the merging unit is used for merging the first light effect graph and the second light effect graph to obtain a light beam special effect graph.
In addition, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for making the beam video special effect according to the first aspect when executing the computer program.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor causes the processor to execute the method for producing the beam video special effect according to the first aspect.
The embodiment of the invention discloses a method and a device for manufacturing a beam video special effect, computer equipment and a storage medium. The method comprises the steps of picking a mask pattern of a target object in a video, drawing an edge line graph according to the mask pattern, and performing fuzzy eclosion treatment on the edge line graph to obtain an eclosion graph; performing position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph; performing position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph; and merging the first light effect diagram and the second light effect diagram to obtain a light beam special effect diagram. The embodiment of the invention realizes the generation of the rich and changeable beam effect with more details in the drawing of the video special effect by utilizing the noise disturbance mode to manufacture the video special effect of the complex beam.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for manufacturing a special effect of a beam video according to an embodiment of the present invention;
fig. 2 is a schematic sub-flowchart of step S101 according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an edge line diagram drawn according to mask matting according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an eclosion map obtained according to an edge line graph according to an embodiment of the present invention;
FIG. 5 is a plurality of effect graphs after performing position disturbance processing on an edge map according to an embodiment of the present invention;
FIG. 6 is a plurality of effect graphs of the eclosion graph after the superimposed disturbance processing according to the embodiment of the present invention;
FIG. 7 is a schematic block diagram of a device for producing a special effect of a beam video according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a flow chart of a method for manufacturing a special effect of a beam video according to an embodiment of the invention;
as shown in fig. 1, the method includes steps S101 to S104.
S101, picking a mask pattern of a target object in a video, drawing an edge line graph according to the mask pattern, and performing fuzzy eclosion treatment on the edge line graph to obtain an eclosion pattern;
according to the method, after the target object in the video is subjected to image matting processing, edge line drawing and fuzzy eclosion processing, the obtained edge line drawing and eclosion drawing are the most important resource diagrams for noise disturbance in the follow-up process.
S102, performing position disturbance processing and superposition disturbance processing on noise in the edge map to obtain a first light effect map;
s103, performing position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph;
s104, combining the first light effect diagram and the second light effect diagram to obtain the light beam special effect diagram.
In the steps S102-S104, position disturbance processing and superposition disturbance processing are respectively carried out on the edge line diagram and the eclosion diagram, coherent noise is generated on the edge line diagram and the eclosion diagram by utilizing the principle of Perlin noise, and for any two points in the edge line diagram or the eclosion diagram, the value of a noise function smoothly changes along with the movement of one point to the other point, that is, no discontinuity exists, namely, a coordinate point is acquired and mapped to a real number between-1 and 1, so that the disturbance effect is formed.
Specifically, the position disturbance processing refers to position deviation disturbance by using noise in the graph, and specifically, reference may be made to an effect of performing position disturbance processing on an edge map in fig. 5, and B1-B3 in fig. 5 are contrast effects after sequentially increasing the disturbance amplitude. The superimposed disturbance processing refers to performing superimposed disturbance according to the gray coefficient in the original image, and specifically refer to the effect of the superimposed disturbance processing on the feathering image in fig. 6, where C1-C2 in fig. 6 are the contrast effects of sequentially increasing the feathering range and the gray coefficient. The first light effect diagram can be obtained by respectively carrying out position disturbance treatment and superposition disturbance treatment on the edge diagram and then combining the position disturbance treatment and the superposition disturbance treatment; and respectively carrying out position disturbance treatment and superposition disturbance treatment on the eclosion map, and then combining the position disturbance treatment and the superposition disturbance treatment to obtain a second light effect map. And finally, combining the first light effect diagram and the second light effect diagram to obtain the light beam special effect diagram. The embodiment utilizes the noise wave disturbance mode to manufacture the video special effect of the complex light beam, and realizes the light beam effect with rich and varied details in the drawing of the video special effect.
In one embodiment, as shown in fig. 2, step S101 includes:
s201, a mask pattern of a target object in a video is extracted, and the vertex coordinates of the edge line of the mask pattern are calculated by adopting an image processing algorithm;
s202, connecting each vertex coordinate, and drawing the vertex coordinates to a cache in an off-screen manner to obtain an edge line graph;
s203, performing fuzzy eclosion processing on the edge line map to obtain an eclosion map.
In this embodiment, the AI matting function is utilized to key the mask matting of the target object in the video, where the target object may be a person or an object in a motion state, the key is shown as a in fig. 3, then the vertex sequence of the edge line of the mask matting, that is, the edge pixel point of the target object, is calculated through a graphics processing algorithm, and then each edge pixel point is sequentially drawn off-screen into a cache by utilizing a line drawing function, and an edge line graph (shown as B in fig. 3) is obtained, so that the loss of system performance can be reduced through the off-screen drawing mode. Then, the edge map is subjected to fuzzy eclosion processing, wherein an eclosion range can be set according to actual requirements, and the larger the eclosion range is, the more blurred and lighter the picture of the eclosion map is (shown as C in fig. 4).
In one embodiment, step S102 includes:
and carrying out position disturbance processing on noise in the edge line graph according to the following formula:
N=Perlin(x*w,y*w);
F=f(x+N*k,y+N*k);
x∈[0,1]y∈[0,1];
wherein N represents noise after the position disturbance processing of the edge line graph, xy represents coordinate points of noise points, w represents a first noise density coefficient, k represents a first noise distortion intensity coefficient, F represents image colors of xy positions in the edge line graph, and F represents image colors after the position disturbance processing of the xy positions in the edge line graph.
The embodiment introduces a calculation process of performing position disturbance processing on the edge map, and the effect of performing position disturbance processing on noise in the edge map can be obtained by substituting each parameter into the above formula and performing calculation, wherein the effect of noise disturbance can be affected by adjusting the first noise density coefficient w and the first noise distortion intensity coefficient k, that is, the effect obtained by adjusting the first noise density coefficient w and the first noise distortion intensity coefficient k is B1-B3 in fig. 5.
Further, step S102 further includes:
and carrying out superposition disturbance processing on noise in the edge line graph according to the following formula:
N 1 =Perlin(x*w 1 ,y*w 1 );
F 1 =f(x,y)*N 1 *k 1 ;
wherein N is 1 Representing edge linesNoise, w, after superimposed disturbance processing of the graph 1 Represents the second noise density coefficient, k 1 Representing the second noise wave distortion intensity coefficient, F 1 And (5) representing the image color after the xy position in the edge line graph is subjected to superposition disturbance processing.
The embodiment introduces a calculation process of performing superposition disturbance processing on the edge map, and substituting each parameter into the above formula to calculate so as to obtain an effect of performing superposition disturbance processing on noise of the edge map, wherein the second noise density coefficient w can be adjusted 1 And a second noise twist intensity coefficient k 1 To influence the effect of the noise disturbance.
In one embodiment, step S103 includes:
and carrying out position disturbance processing on noise in the eclosion graph according to the following formula:
N 2 =Perlin(x*w 2 ,y*w 2 );
F 2 =f 1 (x+N 2 *k 2 ,y+N 2 *k 2 );
wherein N is 2 Represents noise of the eclosion graph after position disturbance processing, xy represents coordinate points of noise points, w 2 Represents the third noise density coefficient, k 2 Representing the third noise wave distortion intensity coefficient, f 1 Image color representing xy position in eclosion map, F 2 And (5) representing the color of the image after the xy position in the eclosion graph is subjected to position disturbance processing.
The embodiment describes a calculation process of performing position disturbance processing on the eclosion graph, and the effect of performing position disturbance processing on noise in the eclosion graph can be obtained by substituting each parameter into the above formula and performing calculation, wherein the third noise density coefficient w can be adjusted 2 And a third noise twist intensity coefficient k 2 To influence the effect of noise disturbance, i.e. C1-C2 in FIG. 6 is to adjust the third noise density coefficient w 2 And a third noise twist intensity coefficient k 2 The effect obtained after that.
Further, step S103 further includes:
and carrying out superposition disturbance processing on noise in the eclosion graph according to the following formula:
N 3 =Perlin(x*w 3 ,y*w 3 );
F 3 =f 1 (x,y)*N 3 *k 3 ;
wherein N is 3 Represents noise, w, after superimposed disturbance processing of the eclosion map 3 Represents the fourth noise density coefficient, k 3 Representing the fourth noise wave distortion intensity coefficient, F 3 And (5) representing the image color after the xy position in the eclosion graph is subjected to superposition disturbance processing.
The embodiment describes the calculation process of performing the superposition disturbance processing on the eclosion map, and the effect of performing the superposition disturbance processing on the noise of the eclosion map can be obtained by substituting each parameter into the above formula and performing the calculation, wherein the fourth noise density coefficient w can be adjusted 3 And a fourth noise twist intensity coefficient k 3 To influence the effect of the noise disturbance.
In one embodiment, step S104 includes:
the beam special effect map G is calculated as follows:
G=F+F 1 +F 2 +F 3 ;
F=f(x+N*k,y+N*k);
F 1 =f(x,y)*N 1 *k 1 ;
F 2 =f 1 (x+N 2 *k 2 ,y+N 2 *k 2 );
F 3 =f 1 (x,y)*N 3 *k 3 。
noise disturbance is respectively carried out on the edge line graph and the eclosion graph by the calculation formula to obtain F, F 1 、F 2 And F 3 For the effect after each noise disturbance, F, F is finally added 1 、F 2 And F 3 Combining to obtain a beam special effect diagram G; based on the method, the special effect production is carried out on the video frames in the video, and the complex dynamic beam video special effect video can be finally obtained, so that the current increasingly personalized and cool video special effect requirements are met.
The embodiment of the invention also provides a device for manufacturing the beam video special effect, which is used for executing any embodiment of the method for manufacturing the beam video special effect. Specifically, referring to fig. 7, fig. 7 is a schematic block diagram of a device for producing a special effect of a beam video according to an embodiment of the present invention.
As shown in fig. 7, the apparatus 700 for producing a beam video special effect includes: an image acquisition unit 701, a first processing unit 702, a second processing unit 703, and a combining unit 704.
The image acquisition unit is used for picking a mask pattern of a target object in the video, drawing an edge line graph according to the mask pattern, and carrying out fuzzy eclosion treatment on the edge line graph to obtain an eclosion image;
the first processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the edge map to obtain a first light effect map;
the second processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph;
and the merging unit is used for merging the first light effect graph and the second light effect graph to obtain a light beam special effect graph.
The device is used for manufacturing the video special effect of the complex light beam in a noise wave disturbance mode, so that the light beam effect with rich and varied details is generated in the drawing of the video special effect.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus and units described above may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
The apparatus for producing a video effect of a light beam as described above may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 800 is a server, and the server may be a stand-alone server or a server cluster formed by a plurality of servers.
With reference to FIG. 8, the computer device 800 includes a processor 802, memory, and a network interface 805 connected by a system bus 801, wherein the memory may include a non-volatile storage medium 803 and an internal memory 804.
The nonvolatile storage medium 803 may store an operating system 8031 and a computer program 8032. The computer program 8032, when executed, causes the processor 802 to perform a method for producing a video effect of a light beam.
The processor 802 is used to provide computing and control capabilities to support the operation of the overall computer device 800.
The internal memory 804 provides an environment for the execution of the computer program 8032 in the non-volatile storage medium 803, which computer program 8032, when executed by the processor 802, causes the processor 802 to perform a method for producing a beam video effect.
The network interface 805 is used for network communication such as providing transmission of data information and the like. It will be appreciated by those skilled in the art that the architecture shown in fig. 8 is merely a block diagram of some of the architecture associated with the present inventive arrangements and is not limiting of the computer device 800 to which the present inventive arrangements may be applied, and that a particular computer device 800 may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 8 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 8, and will not be described again.
It should be appreciated that in embodiments of the present invention, the processor 802 may be a central processing unit (Central Processing Unit, CPU), the processor 802 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program when executed by a processor implements the method for producing the beam video special effect according to the embodiment of the invention.
The storage medium is a physical, non-transitory storage medium, and may be, for example, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (10)
1. The method for manufacturing the special effect of the light beam video is characterized by comprising the following steps of:
a mask of a target object in a video is extracted, an edge line graph is drawn according to the mask, and fuzzy eclosion processing is carried out on the edge line graph to obtain an eclosion graph;
performing position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph;
performing position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph, wherein the position disturbance processing refers to position deviation disturbance by using the noise in the image, and the superposition disturbance processing refers to superposition disturbance according to a gray coefficient in the image;
and merging the first light effect diagram and the second light effect diagram to obtain a light beam special effect diagram.
2. The method for making the special effect of the light beam video according to claim 1, wherein the step of picking up a mask pattern of a target object in the video, drawing an edge map according to the mask pattern, and performing fuzzy eclosion processing on the edge map to obtain an eclosion map comprises the steps of:
a mask of a target object in a video is scratched, and the vertex coordinates of the edge line of the mask are calculated by adopting an image processing algorithm;
connecting the vertex coordinates and drawing the vertex coordinates to a cache in an off-screen manner to obtain an edge line graph;
and carrying out fuzzy eclosion treatment on the edge line graph to obtain an eclosion graph.
3. The method for producing the special effect of the light beam video according to claim 1, wherein the performing the position disturbance processing and the superposition disturbance processing on the noise in the edge line graph to obtain the first light effect graph includes:
and carrying out position disturbance processing on noise in the edge line graph according to the following formula:
N=Perlin(x*w,y*w);
F=f(x+N*k,y+N*k);
x∈[0,1]y∈[0,1];
wherein N represents noise after the position disturbance processing is performed on the edge line graph, xy represents coordinate points of noise points, w represents a first noise density coefficient, k represents a first noise distortion intensity coefficient, F represents image colors of xy positions in the edge line graph, and F represents image colors after the position disturbance processing is performed on the xy positions in the edge line graph.
4. The method for producing the special effect of the light beam video according to claim 3, wherein the performing the position disturbance processing and the superposition disturbance processing on the noise in the edge line graph to obtain the first light effect graph includes:
and carrying out superposition disturbance processing on noise in the edge line graph according to the following formula:
N 1 =Perlin(x*w 1 ,y*w 1 );
F 1 =f(x,y)*N 1 *k 1 ;
wherein N is 1 Representing noise, w, of the edge line graph after the superimposed disturbance processing 1 Represents the second noise density coefficient, k 1 Representing the second noise wave distortion intensity coefficient, F 1 And (5) representing the image color after the xy position in the edge line graph is subjected to superposition disturbance processing.
5. The method for producing the special effect of the light beam video according to claim 4, wherein the performing the position disturbance processing and the superposition disturbance processing on the noise in the eclosion map to obtain the second light effect map includes:
and carrying out position disturbance processing on noise in the eclosion graph according to the following formula:
N 2 =Perlin(x*w 2 ,y*w 2 );
F 2 =f 1 (x+N 2 *k 2 ,y+N 2 *k 2 );
wherein N is 2 Representing noise of the eclosion graph after position disturbance processing, xy representing coordinate points of noise points, w 2 Represents the third noise density coefficient, k 2 Representing the third noise wave distortion intensity coefficient, f 1 Image color representing xy position in the feathering map, F 2 And representing the image color after the xy position in the eclosion graph is subjected to position disturbance processing.
6. The method for producing the special effect of the light beam video according to claim 5, wherein the performing the position disturbance processing and the superposition disturbance processing on the noise in the eclosion map to obtain the second light effect map includes:
and carrying out superposition disturbance processing on noise in the eclosion graph according to the following formula:
N 3 =Perlin(x*w 3 ,y*w 3 );
F 3 =f 1 (x,y)*N 3 *k 3 ;
wherein N is 3 Representing noise, w, of the eclosion map after superposition disturbance processing 3 Represents the fourth noise density coefficient, k 3 Representing the fourth noise wave distortion intensity coefficient, F 3 And representing the image color after the xy position in the eclosion graph is subjected to superposition disturbance processing.
7. The method for producing a special effect of a light beam video according to claim 6, wherein the combining the first light effect graph and the second light effect graph to obtain the special effect graph of the light beam comprises:
the beam special effect map G is calculated as follows:
G=F+F 1 +F 2 +F 3 ;
F=f(x+N*k,y+N*k);
F 1 =f(x,y)*N 1 *k 1 ;
F 2 =f 1 (x+N 2 *k 2 ,y+N 2 *k 2 );
F 3 =f 1 (x,y)*N 3 *k 3 。
8. the device for manufacturing the special effect of the light beam video is characterized by comprising the following components:
the image acquisition unit is used for picking a mask pattern of a target object in the video, drawing an edge line graph according to the mask pattern, and carrying out fuzzy eclosion treatment on the edge line graph to obtain an eclosion image;
the first processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the edge line graph to obtain a first light effect graph;
the second processing unit is used for carrying out position disturbance processing and superposition disturbance processing on noise in the eclosion graph to obtain a second light effect graph, wherein the position disturbance processing refers to position deviation disturbance by using the noise in the image, and the superposition disturbance processing refers to superposition disturbance according to a gray coefficient in the image;
and the merging unit is used for merging the first light effect graph and the second light effect graph to obtain a light beam special effect graph.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of producing the beam video effect of any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method of producing a beam video special effect as claimed in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111657130.9A CN114339448B (en) | 2021-12-31 | 2021-12-31 | Method and device for manufacturing special effects of beam video, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111657130.9A CN114339448B (en) | 2021-12-31 | 2021-12-31 | Method and device for manufacturing special effects of beam video, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114339448A CN114339448A (en) | 2022-04-12 |
CN114339448B true CN114339448B (en) | 2024-02-13 |
Family
ID=81019042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111657130.9A Active CN114339448B (en) | 2021-12-31 | 2021-12-31 | Method and device for manufacturing special effects of beam video, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114339448B (en) |
Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103810702A (en) * | 2014-01-17 | 2014-05-21 | 浙江大学 | Blocking noise variance estimation based image accumulation signal to noise ratio calculation method |
WO2015144563A1 (en) * | 2014-03-28 | 2015-10-01 | Koninklijke Philips N.V. | Image processing system and method |
CN105867050A (en) * | 2016-06-06 | 2016-08-17 | 深圳市激埃特光电有限公司 | Edge rainbow feathering device for photography |
CN105894527A (en) * | 2016-05-03 | 2016-08-24 | 成都索贝数码科技股份有限公司 | Method for image matting of gradual image transparency changing from polygonal outline to target outline |
CN107770606A (en) * | 2017-10-24 | 2018-03-06 | 北京奇虎科技有限公司 | Video data distortion processing method, device, computing device and storage medium |
CN108596992A (en) * | 2017-12-31 | 2018-09-28 | 广州二元科技有限公司 | A kind of quickly real-time lip gloss cosmetic method |
CN110163948A (en) * | 2019-04-15 | 2019-08-23 | 中国民航大学 | A kind of adaptively sampled method of multi-path Metropolis ray tracing based on ambiguity evaluation |
CN110896498A (en) * | 2019-10-03 | 2020-03-20 | 刘纪君 | Computer airport scene special effect system |
CN110944230A (en) * | 2019-11-21 | 2020-03-31 | 北京达佳互联信息技术有限公司 | Video special effect adding method and device, electronic equipment and storage medium |
CN111145326A (en) * | 2019-12-26 | 2020-05-12 | 网易(杭州)网络有限公司 | Processing method of three-dimensional virtual cloud model, storage medium, processor and electronic device |
CN111445563A (en) * | 2020-03-23 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Image generation method and related device |
CN111951156A (en) * | 2020-08-24 | 2020-11-17 | 杭州趣维科技有限公司 | Method for drawing photoelectric special effect of graph |
CN112348841A (en) * | 2020-10-27 | 2021-02-09 | 北京达佳互联信息技术有限公司 | Virtual object processing method and device, electronic equipment and storage medium |
CN112419465A (en) * | 2020-12-09 | 2021-02-26 | 网易(杭州)网络有限公司 | Rendering method and device of virtual model |
CN112489170A (en) * | 2020-11-19 | 2021-03-12 | 杭州电魂网络科技股份有限公司 | Special effect distortion processing method and device, electronic equipment and medium |
CN112691378A (en) * | 2020-12-23 | 2021-04-23 | 完美世界(北京)软件科技发展有限公司 | Image processing method, apparatus and readable medium |
CN112884637A (en) * | 2021-01-29 | 2021-06-01 | 北京市商汤科技开发有限公司 | Special effect generation method, device, equipment and storage medium |
CN113240578A (en) * | 2021-05-13 | 2021-08-10 | 北京达佳互联信息技术有限公司 | Image special effect generation method and device, electronic equipment and storage medium |
CN113284080A (en) * | 2021-06-17 | 2021-08-20 | Oppo广东移动通信有限公司 | Image processing method and device, electronic device and storage medium |
CN113487474A (en) * | 2021-07-02 | 2021-10-08 | 杭州小影创新科技股份有限公司 | Content-related GPU real-time particle special effect method |
CN113658064A (en) * | 2021-08-03 | 2021-11-16 | 网易(杭州)网络有限公司 | Texture image generation method and device and electronic equipment |
CN113658315A (en) * | 2021-08-17 | 2021-11-16 | 广州光锥元信息科技有限公司 | Method and device for manufacturing shadow special effect based on fractal noise |
CN113724273A (en) * | 2021-08-31 | 2021-11-30 | 温州大学大数据与信息技术研究院 | Edge light and shadow fusion method based on neural network regional target segmentation |
CN113793257A (en) * | 2021-09-15 | 2021-12-14 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7777745B2 (en) * | 2007-04-27 | 2010-08-17 | Autodesk, Inc. | Edge effect |
-
2021
- 2021-12-31 CN CN202111657130.9A patent/CN114339448B/en active Active
Patent Citations (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103810702A (en) * | 2014-01-17 | 2014-05-21 | 浙江大学 | Blocking noise variance estimation based image accumulation signal to noise ratio calculation method |
WO2015144563A1 (en) * | 2014-03-28 | 2015-10-01 | Koninklijke Philips N.V. | Image processing system and method |
CN105894527A (en) * | 2016-05-03 | 2016-08-24 | 成都索贝数码科技股份有限公司 | Method for image matting of gradual image transparency changing from polygonal outline to target outline |
CN105867050A (en) * | 2016-06-06 | 2016-08-17 | 深圳市激埃特光电有限公司 | Edge rainbow feathering device for photography |
CN107770606A (en) * | 2017-10-24 | 2018-03-06 | 北京奇虎科技有限公司 | Video data distortion processing method, device, computing device and storage medium |
CN108596992A (en) * | 2017-12-31 | 2018-09-28 | 广州二元科技有限公司 | A kind of quickly real-time lip gloss cosmetic method |
CN110163948A (en) * | 2019-04-15 | 2019-08-23 | 中国民航大学 | A kind of adaptively sampled method of multi-path Metropolis ray tracing based on ambiguity evaluation |
CN110896498A (en) * | 2019-10-03 | 2020-03-20 | 刘纪君 | Computer airport scene special effect system |
CN110944230A (en) * | 2019-11-21 | 2020-03-31 | 北京达佳互联信息技术有限公司 | Video special effect adding method and device, electronic equipment and storage medium |
CN111145326A (en) * | 2019-12-26 | 2020-05-12 | 网易(杭州)网络有限公司 | Processing method of three-dimensional virtual cloud model, storage medium, processor and electronic device |
CN111445563A (en) * | 2020-03-23 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Image generation method and related device |
CN111951156A (en) * | 2020-08-24 | 2020-11-17 | 杭州趣维科技有限公司 | Method for drawing photoelectric special effect of graph |
CN112348841A (en) * | 2020-10-27 | 2021-02-09 | 北京达佳互联信息技术有限公司 | Virtual object processing method and device, electronic equipment and storage medium |
CN112489170A (en) * | 2020-11-19 | 2021-03-12 | 杭州电魂网络科技股份有限公司 | Special effect distortion processing method and device, electronic equipment and medium |
CN112419465A (en) * | 2020-12-09 | 2021-02-26 | 网易(杭州)网络有限公司 | Rendering method and device of virtual model |
CN112691378A (en) * | 2020-12-23 | 2021-04-23 | 完美世界(北京)软件科技发展有限公司 | Image processing method, apparatus and readable medium |
CN112884637A (en) * | 2021-01-29 | 2021-06-01 | 北京市商汤科技开发有限公司 | Special effect generation method, device, equipment and storage medium |
CN113240578A (en) * | 2021-05-13 | 2021-08-10 | 北京达佳互联信息技术有限公司 | Image special effect generation method and device, electronic equipment and storage medium |
CN113284080A (en) * | 2021-06-17 | 2021-08-20 | Oppo广东移动通信有限公司 | Image processing method and device, electronic device and storage medium |
CN113487474A (en) * | 2021-07-02 | 2021-10-08 | 杭州小影创新科技股份有限公司 | Content-related GPU real-time particle special effect method |
CN113658064A (en) * | 2021-08-03 | 2021-11-16 | 网易(杭州)网络有限公司 | Texture image generation method and device and electronic equipment |
CN113658315A (en) * | 2021-08-17 | 2021-11-16 | 广州光锥元信息科技有限公司 | Method and device for manufacturing shadow special effect based on fractal noise |
CN113724273A (en) * | 2021-08-31 | 2021-11-30 | 温州大学大数据与信息技术研究院 | Edge light and shadow fusion method based on neural network regional target segmentation |
CN113793257A (en) * | 2021-09-15 | 2021-12-14 | Oppo广东移动通信有限公司 | Image processing method and device, electronic equipment and computer readable storage medium |
Non-Patent Citations (5)
Title |
---|
Non-photorealistic rendering using watercolor inspired textures and illumination;E.B. Lum等;Proceedings Ninth Pacific Conference on Computer Graphics and Applications. Pacific Graphics 2001;全文 * |
基于Perlin噪声的动态水面实时渲染;项予;许森;;计算机工程与设计(第11期);全文 * |
基于simplex噪声的实时火焰绘制;郑娜;段茗;姜宏;孙青云;;计算机光盘软件与应用(第23期);全文 * |
时序连贯的三维水墨风格渲染算法研究;杨宇辰;中国优秀硕士学位论文全文数据库;全文 * |
流线形风格化图像生成算法;肖亮;钱小燕;吴慧中;韦志辉;;计算机辅助设计与图形学学报(第07期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114339448A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110868580B (en) | Motion adaptive rendering using variable rate shading | |
CN111369655B (en) | Rendering method, rendering device and terminal equipment | |
CN105787865B (en) | Based on game engine and the graftal of GPU parallel processings generates and rendering intent | |
Yin et al. | Highly accurate image reconstruction for multimodal noise suppression using semisupervised learning on big data | |
KR102598915B1 (en) | Graphics processing | |
Palacios et al. | Interactive visualization of rotational symmetry fields on surfaces | |
CN112184575A (en) | Image rendering method and device | |
Kim et al. | Bulging‐free dual quaternion skinning | |
Xiao et al. | Single image dehazing based on learning of haze layers | |
CN112233215A (en) | Contour rendering method, apparatus, device and storage medium | |
US10535188B2 (en) | Tessellation edge shaders | |
CN112700528B (en) | Virtual object shadow rendering method for head-mounted augmented reality device | |
US20190172249A1 (en) | Systems and Methods for Real-Time Large-Scale Point Cloud Surface Reconstruction | |
CN112541876A (en) | Satellite image processing method, network training method, related device and electronic equipment | |
DE102021130031A1 (en) | APPEARANCE-DRIVEN AUTOMATIC THREE-DIMENSIONAL MODELING | |
DE102022113244A1 (en) | Joint shape and appearance optimization through topology scanning | |
CN114339448B (en) | Method and device for manufacturing special effects of beam video, computer equipment and storage medium | |
DE102019121200A1 (en) | MOTION-ADAPTIVE RENDERING BY SHADING WITH A VARIABLE RATE | |
Cheng et al. | Two low illuminance image enhancement algorithms based on grey level mapping | |
DE102021120604A1 (en) | DYNAMIC IMAGE SMOOTHING BASED ON NETWORK CONDITIONS | |
CN104978720A (en) | Video image raindrop removal method and apparatus | |
DE102023105068A1 (en) | Motion vector optimization for multiple refractive and reflective interfaces | |
US20230015117A1 (en) | Deep Saliency Prior | |
DE102022100517A1 (en) | USING INTRINSIC SHADOW DENOISE FUNCTIONS IN RAYTRACING APPLICATIONS | |
DE112022002137T5 (en) | Hybrid differentiable rendering for light transport simulation systems and applications |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |