CN103327260B - A kind of particle editing method and apparatus - Google Patents
A kind of particle editing method and apparatus Download PDFInfo
- Publication number
- CN103327260B CN103327260B CN201310210666.5A CN201310210666A CN103327260B CN 103327260 B CN103327260 B CN 103327260B CN 201310210666 A CN201310210666 A CN 201310210666A CN 103327260 B CN103327260 B CN 103327260B
- Authority
- CN
- China
- Prior art keywords
- particle
- color
- video pictures
- alpha2
- transparency
- 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
Abstract
The embodiment of the invention discloses a kind of particle editing method and apparatus, compiled by no means with solution in the effect after particle synthesis and the inconsistent problem of effect in particle editing device.The described method includes: during particle editing device generates particle video file, color correct processing is carried out to the RGB component of the particle video pictures color of rendering, revised particle video pictures color is obtained, the particle video pictures color further includes transparence value;When the particle in the particle video is by the way of strong, the revised particle video pictures color and other video pictures colors are subjected to color addition;When the particle in the particle video using it is non-it is strong by the way of when, the revised particle video pictures color and other video pictures colors are subjected to transparency and are superimposed.Particle video effect after progress color addition or transparency superposition is consistent with the effect in particle editing device.
Description
Technical field
The present embodiments relate to technical field of video image processing, more particularly to a kind of particle editing method and dress
It sets.
Background technique
Line, which is compiled, refers to Coutinuous store view, the mode of audio signal, i.e. the physical location of information storage and the sequence for receiving information
Be it is completely the same, linear editing generally refer between more videocorders copy video process (may further include special effect processing
The process of the progress intermediate treatment such as machine).
The concept of non-linear editing, referred to as non-volume is closely connected with the concept of " digitlization ", and non-linear editing refers to
With the storages such as hard disk, tape, CD digitlization view, the mode of audio-frequency information, non-linear table reveals the spy of digital information storage
Point --- the position of information storage is side-by-side parallel, and unrelated with the sequencing for receiving information, data can in the form of software
It, can operation data free of losses repeatedly depending on changing.
The mixing between video track in non-volume is according to transparency (alpha) come what is mixed, and particle editing device is in order to make
It is truer with the mixing of other videos when the video of preservation output is edited in non-volume, so that in effect and particle editing device
Effect it is consistent, so the video file that particle editing device saves remains itself alpha information.
Particle editing device is saved in the file of non-volume, is added in video track, compiles with the effect after Video Composition in particle
Effect some deviations seen in volume device, show as the halation for being a bit darkish in color or having black, effect and grain after this synthesis
Effect in sub- editing machine is inconsistent.
Summary of the invention
The embodiment of the present invention discloses a kind of particle editing method and apparatus, compiled by no means with solution in particle synthesis after effect with
The inconsistent problem of effect in particle editing device.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of particle editing methods, comprising:
During particle editing device generates particle video file, to the RGB of the particle video pictures color of rendering
Component carries out color correct processing, obtains revised particle video pictures color, the particle video pictures color further includes
Transparence value;
When the particle in the particle video is by the way of strong, by the revised particle video pictures color
Color addition is carried out with other video pictures colors;
When the particle in the particle video using it is non-it is strong by the way of when, by the revised particle video pictures face
Color carries out transparency with other video pictures colors and is superimposed.
Preferably, the RGB component of the particle video pictures color of described pair of rendering carries out color correct processing, obtains
Revised particle video pictures color, comprising:
The transparency ratio of particle video pictures color is calculated;
According to the transparency ratio of the RGB component of the particle video pictures color and the particle video pictures color
Revised particle video pictures color is calculated in value.
Preferably, the transparency ratio that particle video pictures color is calculated, comprising:
The transparence value of the particle video pictures color is obtained into the transparent of the particle video pictures color divided by 255
Spend ratio.
Preferably, the RGB component according to the particle video pictures color and the particle video pictures color
Transparency ratio calculation obtain revised particle video pictures color, comprising:
Respectively by the RGB component of the particle video pictures color divided by the transparent of the particle video pictures color
Ratio is spent, the revised particle video pictures color is obtained.
Preferably, described that the revised particle video pictures color and other video pictures colors are subjected to transparency
Superposition, comprising:
By the RGB component of the revised particle video pictures color and other video pictures colors respectively with it is right
The transparency ratio answered is multiplied, or the product for subtracting the difference of transparency ratio with corresponding transparency ratio and 1 is multiplied, and obtains
The contribution margin of revised the particle video pictures color and other video pictures colors;
By the contribution margin of the contribution margin of the revised particle video pictures color and other video pictures colors
It is added.
The embodiment of the invention also discloses a kind of particle editing devices, comprising:
Correction module, for being drawn to the particle video of rendering during particle editing device generates particle video file
The RGB component of face color carries out color correct processing, obtains revised particle video pictures color, the particle video
Picture color further includes transparence value;
Color addition module, for when the particle in the particle video is by the way of strong, after the amendment
Particle video pictures color and other video pictures colors carry out color addition;
Transparency laminating module, for when the particle in the particle video using it is non-it is strong by the way of when, repaired described
Particle video pictures color after just carries out transparency with other video pictures colors and is superimposed.
Preferably, the correction module, comprising:
First computational submodule, for the transparency ratio of particle video pictures color to be calculated;
Second computational submodule, for the RGB component and the particle video according to the particle video pictures color
The transparency ratio calculation of picture color obtains revised particle video pictures color.
Preferably, first computational submodule obtains the transparence value of the particle video pictures color divided by 255
The transparency ratio of the particle video pictures color.
Preferably, second computational submodule is respectively by the RGB component of the particle video pictures color divided by institute
The transparency ratio for stating particle video pictures color obtains the revised particle video pictures color.
Preferably, the transparency laminating module, comprising:
Contribution margin computational submodule is used for the revised particle video pictures color and other video pictures colors
RGB component be multiplied respectively with corresponding transparency ratio, or with corresponding transparency ratio and 1 subtract transparency ratio
The product of the difference of value is multiplied, and obtains the contribution margin of revised the particle video pictures color and other video pictures colors;
Contribution margin be added submodule, for by the contribution margin of the revised particle video pictures color and it is described other
The contribution margin of video pictures color is added.
Compared with the background art, the embodiment of the present invention includes following advantages:
Color correct processing is carried out to the entire picture of the particle video of rendering, obtains revised particle video pictures face
Color, after processing in non-volume according to particle whether by the way of strong, respectively to particle video pictures color and other view
Frequency picture color is overlapped.
When the particle in particle video is by the way of strong, by revised particle video pictures color and other views
Frequency picture color carries out color addition;When the particle in particle video using it is non-it is strong by the way of when, revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
Particle video effect after progress color addition or transparency superposition is consistent with the effect in particle editing device.
Detailed description of the invention
Fig. 1 is a kind of particle editing method flow diagram in the embodiment of the present invention;
Fig. 2 is a kind of particle editing method flow diagram in the embodiment of the present invention;
Fig. 3 is the particle effect picture in the embodiment of the present invention in particle editing device;
Fig. 4 is the particle effect picture in the embodiment of the present invention in non-volume;
Fig. 5 is the particle effect picture in the embodiment of the present invention in particle editing device;
Fig. 6 is the particle effect picture in the embodiment of the present invention in non-volume;
Fig. 7 is a kind of particle editing structure drawing of device in the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
The mixing between video track in non-volume is carried out in the way of transparency blending, in particle editing device,
It is truer with the mixed effect of other videos when in order to edit the particle video for saving output in non-volume, so that mixing
Effect afterwards is consistent with the effect in particle editing device, and the particle video file saved in particle editing device remains the saturating of itself
Lightness information.
Particle editing device is saved in the particle video file of non-volume, is added in video track, after other Video Compositions
Effect, and particle video effect some deviations seen in particle editing device, show as the light for being a bit darkish in color or having black
Dizzy, this effect is inconsistent with the effect in particle editing device.
Moreover, the particle of particle editing device, there is this strong option, when choosing strongly, indicate to emit in particle editing device
Particle out is in such a way that particle color is directly superimposed in the place that particle is overlapped, this like-particles will form flame, star
The big particle effect of light equal strength;When not choosing strongly, the particle emitted in particle editing device is indicated, be overlapped in particle
Place is in such a way that particle color is overlapped according to transparency, if superimposed transparence value is 255, formation is fallen
Leaf, balloon such as are ascended to heaven at the particles effect;If superimposed transparence value is to form the particles effect such as bubble between 0 to 255.
A kind of particle editing method disclosed by the invention and dress is discussed in detail below by several specific embodiments are enumerated
It sets.
Embodiment one
A kind of particle editing method disclosed by the embodiments of the present invention is discussed in detail.
Referring to Fig.1, a kind of particle editing method flow diagram in the embodiment of the present invention is shown.
Step 100, during particle editing device generates particle video file, to the particle video pictures color of rendering
RGB component carry out color correct processing, obtain revised particle video pictures color.
The particle video pictures color further includes transparence value in addition to including RGB component.
It, can be by color correct function to the particle of rendering during particle editing device generates particle video file
The RGB component of video pictures color is converted, the particle video pictures color after obtaining color correct.
Step 102, when the particle in the particle video is by the way of strong, by the revised particle video
Picture color and other video pictures colors carry out color addition.
The calculation method that color is directly superimposed are as follows:
R=R1+R2+R3+ ... Rn;
G=G1+G2+G3+ ... Gn;
B=B1+B2+B3+ ... Bn;
Alpha=Alpha1+Alpha2+Alpha3+ ... Alpha n;
Wherein, R is the directly superimposed red value of color, and R1 is the red value of revised particle video pictures color,
R2 ... Rn is the red value of other video pictures colors.
Similarly, G is the directly superimposed green value of color, and G1 is the green value of revised particle video pictures color,
G2 ... Gn is the green value of other video pictures colors.B is the directly superimposed blue valve of color, and B1 is revised particle
The blue valve of video pictures color, B2 ... Bn are the blue valve of other video pictures colors.Alpha is after color is directly superimposed
Transparence value, Alpha 1 be revised particle video pictures color transparence value, Alpha 2 ... Alpha n be its
The transparence value of his video pictures color.
Step 104, when the particle in the particle video using it is non-it is strong by the way of when, the revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
The calculation formula of transparency superposition is as follows:
R=R2*Alpha2 '+R1*Alpha1 ' * (1-Alpha2 ');
G=G2*Alpha2 '+G1*Alpha1 ' * (1-Alpha2 ');
B=B2*Alpha2 '+B1*Alpha1 ' * (1-Alpha2 ');
Alpha '=1- (1-Alpha2 ') * (1-Alpha1 ');
Wherein, R1, G1, B1 are the RGB color of revised particle video pictures color;
R2, G2, B2 are background video or the RGB color of other video pictures colors;
R, G, B, Alpha ' be transparency blending after color;
Alpha2 ' is the transparency ratio of background video picture color, and Alpha1 ' is that the revised particle video is drawn
The transparency ratio of face color.
If the Alpha1 ' of the particle video pictures of output is 1, face is not present in particle video and other video mix
Colo(u)r bias, the i.e. contribution of particle video are very.
The reason is as follows that: the particle color in particle editing device has been after handling by alpha, and the particle of output regards
The color value of frequency is also after handling by alpha, and with the mixing of other videos multiplied by alpha's in non-volume software
Words, in the case where alpha < 1, color value is decline certainly.
In conclusion a kind of particle editing method disclosed by the embodiments of the present invention, has the advantage that
Color correct processing is carried out to the entire picture of the particle video of rendering, obtains revised particle video pictures face
Color, after processing in non-volume according to particle whether by the way of strong, respectively to particle video pictures color and other view
Frequency picture color is overlapped.
When the particle in particle video is by the way of strong, by revised particle video pictures color and other views
Frequency picture color carries out color addition;When the particle in particle video using it is non-it is strong by the way of when, revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
Particle video effect after progress color addition or transparency superposition is consistent with the effect in particle editing device.
Embodiment two
A kind of particle editing method disclosed by the embodiments of the present invention is discussed in detail.
Referring to Fig. 2, a kind of particle editing method flow diagram in the embodiment of the present invention is shown.
Step 200, during particle editing device generates particle video file, to the particle video pictures color of rendering
RGB component carry out color correct processing, obtain revised particle video pictures color.
The particle video pictures color further includes transparence value in addition to including RGB component.
Preferably, the step 200 may include:
The transparency ratio of particle video pictures color is calculated in sub-step 2001.
Preferably, the sub-step 2001, can be with are as follows:
The transparence value of the particle video pictures color is obtained into the transparent of the particle video pictures color divided by 255
Spend ratio.
For example, the transparence value of the particle video pictures color is a, the transparency ratio of the particle video pictures color
Value is a/255.Wherein, 0≤a≤255, then the range of transparency ratio between zero and one, including 0 and 1.When transparency ratio is
When 1, indicate that the particle video pictures are opaque;When transparency ratio is 0, indicate that the particle video pictures are transparent.
Sub-step 2002, according to the RGB component of the particle video pictures color and the particle video pictures color
Transparency ratio calculation obtain revised particle video pictures color.
Preferably, the sub-step 2002, can be with are as follows:
Respectively by the RGB component of the particle video pictures color divided by the transparent of the particle video pictures color
Ratio is spent, the revised particle video pictures color is obtained.
For example, the RGB component of the particle video pictures color is respectively 122,122,122, the particle video is drawn
The transparence value of face color is 122, and the transparency ratio of the particle video pictures color is 122/255.The then particle view
Frequency picture color is 122/ (122/255)=255 by revised RGB component.
Step 202, when the particle in the particle video is by the way of strong, by the revised particle video
Picture color and other video pictures colors carry out color addition.
For particle it is strong in the case where, in non-volume software, particle video and when other Video Compositions adds superposition mould
Formula stunt, and by the way of color addition, in this way, will basically form and effect consistent in particle effect device.
Particle effect picture in particle editing device is as shown in Figure 3, wherein the starlight in the upper left corner is particle.Grain in non-volume
Sub- effect picture is as shown in figure 4, the starlight in the upper left corner is particle.
Step 204, when the particle in the particle video using it is non-it is strong by the way of when, the revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
Preferably, the step 204, can be with are as follows:
Sub-step 2041, by the RGB of the revised particle video pictures color and other video pictures colors point
Amount is multiplied with corresponding transparency ratio respectively, or subtracts multiplying for the difference of transparency ratio with corresponding transparency ratio and 1
Product is multiplied, and obtains the contribution margin of revised the particle video pictures color and other video pictures colors.
For example, the first rail adds background video, the second rail adds revised particle video.The background video picture color
Red component color contribution margin is the red component and the revised particle video of the revised particle video pictures color
The transparency ratio of picture color is multiplied;The red component color contribution margin of revised particle picture color is background video picture
The red component of color subtracts the transparency ratio of background video picture color with the transparency ratio of background video picture color and 1
Difference product be multiplied.I.e.
R2*Alpha2 ' is the red component color contribution margin of background video picture color, R1*Alpha1 ' * (1-Alpha2 ')
For the color contribution value of the red component of the revised particle video pictures color.Wherein, R2 is background video picture color
Red component, R1 is the red component of the revised particle video pictures color, and Alpha2 ' is background video picture color
Transparency ratio, Alpha1 ' are the transparency ratio of the revised particle video pictures color.
Sub-step 2042, by the contribution margin of the revised particle video pictures color and other described video pictures face
The contribution margin of color is added.
By the color contribution value of the RGB component of revised particle video pictures color and corresponding background video or
The color contribution value of the RGB component of other video pictures colors is added.
Wherein, the color correct function can be UpdateRenderColors ().There are two functions for the function: (1)
The transparence value of particle video pictures color is not 0, when the RGB component of particle video pictures color is 0, particle video
The transparency ratio of picture color is 0;(2) transparence value of particle video pictures color is not 0, particle video pictures color
When RGB component is not 0, respectively by the red, green, blue component of particle video pictures color divided by particle video pictures color
Transparency ratio obtain new particle video pictures color value.
Moreover, creating a two-dimensional array m_aColorConvert [M] [N], the value of M to reduce computation complexity
Range is [0,255], and the value range of N is [0,255], to store revised RGB component.m_aColorConvert
The particle video pictures color value (including RGB component) of [M] [N] storage is M, and transparence value N then carries out color correct
Color value m_aColorConvert [M] [N]=M*255/N of the particle video pictures obtained afterwards.
Particle effect picture in particle editing device is as shown in Figure 5, wherein the bead of rising is particle.Particle in non-volume
Effect picture is as shown in fig. 6, the bead risen is particle.
In conclusion a kind of particle editing method disclosed by the embodiments of the present invention, has the advantage that
Color correct processing is carried out to the entire picture of the particle video of rendering, obtains revised particle video pictures face
Color, after processing in non-volume according to particle whether by the way of strong, respectively to particle video pictures color and other view
Frequency picture color is overlapped.
When the particle in particle video is by the way of strong, by revised particle video pictures color and other views
Frequency picture color carries out color addition;When the particle in particle video using it is non-it is strong by the way of when, revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
Particle video effect after progress color addition or transparency superposition is consistent with the effect in particle editing device.
Embodiment three
A kind of particle editing device disclosed by the embodiments of the present invention is discussed in detail.
Referring to Fig. 7, a kind of particle editing structure drawing of device in the embodiment of the present invention is shown.
A kind of particle editing device may include:
Correction module 300, color addition module 302, and, transparency laminating module 304.
Wherein, the correction module 300 may include:
First computational submodule 3001, and, the second computational submodule 3002.
The transparency laminating module 304 may include:
Contribution margin computational submodule 3041, and, contribution margin is added submodule 3042.
The relationship between each module, the function of each submodule and each module, each submodule is described in detail below.
Correction module 300 is used for during particle editing device generates particle video file, to the particle video of rendering
The RGB component of picture color carries out color correct processing, obtains revised particle video pictures color, the particle view
Frequency picture color further includes transparence value.
Preferably, the correction module 300 may include:
First computational submodule 3001, for the transparency ratio of particle video pictures color to be calculated.
Preferably, first computational submodule 3001 is by the transparence value of the particle video pictures color divided by 255
Obtain the transparency ratio of the particle video pictures color.
Second computational submodule 3002, for the RGB component and the particle according to the particle video pictures color
The transparency ratio calculation of video pictures color obtains revised particle video pictures color.
Preferably, second computational submodule 3002 respectively removes the RGB component of the particle video pictures color
With the transparency ratio of the particle video pictures color, the revised particle video pictures color is obtained.
Color addition module 302, for when the particle in the particle video is by the way of strong, by the amendment
Particle video pictures color and other video pictures colors afterwards carries out color addition.
Transparency laminating module 304, for when the particle in the particle video using it is non-it is strong by the way of when, will be described
Revised particle video pictures color carries out transparency with other video pictures colors and is superimposed.
Preferably, the transparency laminating module 304 may include:
Contribution margin computational submodule 3041 is used for the revised particle video pictures color and other video pictures
The RGB component of color is multiplied with corresponding transparency ratio respectively, or subtracts with corresponding transparency ratio and 1 transparent
The product for spending the difference of ratio is multiplied, and obtains the contribution of revised the particle video pictures color and other video pictures colors
Value.
Contribution margin is added submodule 3042, for by the contribution margin of the revised particle video pictures color and described
The contribution margin of other video pictures colors is added.
In conclusion a kind of particle editing device disclosed by the embodiments of the present invention, has the advantage that
Color correct processing is carried out to the entire picture of the particle video of rendering, obtains revised particle video pictures face
Color, after processing in non-volume according to particle whether by the way of strong, respectively to particle video pictures color and other view
Frequency picture color is overlapped.
When the particle in particle video is by the way of strong, by revised particle video pictures color and other views
Frequency picture color carries out color addition;When the particle in particle video using it is non-it is strong by the way of when, revised particle is regarded
Frequency picture color carries out transparency with other video pictures colors and is superimposed.
Particle video effect after progress color addition or transparency superposition is consistent with the effect in particle editing device.
For device example, since it is basically similar to the method embodiment, so being described relatively simple, related place
Illustrate referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It above to a kind of particle editing method and apparatus disclosed in the embodiment of the present invention, is described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.
Claims (10)
1. a kind of particle editing method characterized by comprising
During particle editing device generates particle video file, to the RGB component of the particle video pictures color of rendering
Color correct processing is carried out, obtains revised particle video pictures color, the particle video pictures color further includes transparent
Angle value;
When the particle in the particle video is by the way of strong, by the revised particle video pictures color and its
He carries out color addition at video pictures color;
When the particle in the particle video using it is non-it is strong by the way of when, by the revised particle video pictures color with
Other video pictures colors carry out transparency superposition.
2. the method according to claim 1, wherein the RGB of the particle video pictures color of described pair of rendering
Component carries out color correct processing, obtains revised particle video pictures color, comprising:
The transparency ratio of particle video pictures color is calculated;
According to the transparency radiometer of the RGB component of the particle video pictures color and the particle video pictures color
Calculation obtains revised particle video pictures color.
3. according to the method described in claim 2, it is characterized in that, the transparency that particle video pictures color is calculated
Ratio, comprising:
The transparence value of the particle video pictures color is obtained into the transparency ratio of the particle video pictures color divided by 255
Value.
4. according to the method described in claim 2, it is characterized in that, the RGB according to the particle video pictures color
The transparency ratio calculation of component and the particle video pictures color obtains revised particle video pictures color, comprising:
Respectively by the RGB component of the particle video pictures color divided by the transparency ratio of the particle video pictures color
Value, obtains the revised particle video pictures color.
5. according to the method described in claim 2, it is characterized in that, it is described by the revised particle video pictures color with
Other video pictures colors carry out transparency superposition, comprising:
The calculation formula of transparency superposition:
R=R2*Alpha2 '+R1*Alpha1 ' * (1-Alpha2 ');
G=G2*Alpha2 '+G1*Alpha1 ' * (1-Alpha2 ');
B=B2*Alpha2 '+B1*Alpha1 ' * (1-Alpha2 ');
Alpha '=1- (1-Alpha2 ') * (1-Alpha1 ');Wherein, R2*Alpha2 ', G2*Alpha2 ', B2*Alpha2 ' point
Not Wei other video pictures colors red, green, blue component color contribution margin, R1*Alpha1 ' * (1-Alpha2 '), G1*
Alpha1 ' * (1-Alpha2 '), B1*Alpha1 ' * (1-Alpha2 ') be respectively revised particle video pictures color it is red,
The color contribution value of green, blue component;
Wherein, R2, G2, B2 are respectively the red, green, blue component of other video pictures colors, and R1, G1, B1 are respectively revised
The red, green, blue component of particle video pictures color, Alpha2 ' are the transparency ratio of other video pictures colors, Alpha1 '
For the transparency ratio of revised particle video pictures color;
R, G, B, Alpha ' be transparency blending after color.
6. a kind of particle editing device characterized by comprising
Correction module is used for during particle editing device generates particle video file, to the particle video pictures face of rendering
The RGB component of color carries out color correct processing, obtains revised particle video pictures color, the particle video pictures
Color further includes transparence value;
Color addition module, for when the particle in the particle video is by the way of strong, by the revised grain
Sub-video picture color and other video pictures colors carry out color addition;
Transparency laminating module, for when the particle in the particle video using it is non-it is strong by the way of when, after the amendment
Particle video pictures color and other video pictures colors carry out transparency and be superimposed.
7. device according to claim 6, which is characterized in that the correction module, comprising:
First computational submodule, for the transparency ratio of particle video pictures color to be calculated;
Second computational submodule, for the RGB component and the particle video pictures according to the particle video pictures color
The transparency ratio calculation of color obtains revised particle video pictures color.
8. device according to claim 7, which is characterized in that first computational submodule is by the particle video pictures
The transparence value of color obtains the transparency ratio of the particle video pictures color divided by 255.
9. device according to claim 7, which is characterized in that second computational submodule is respectively by the particle video
The RGB component of picture color obtains the revised particle divided by the transparency ratio of the particle video pictures color
Video pictures color.
10. device according to claim 7, which is characterized in that the transparency laminating module, comprising:
The calculation formula of transparency superposition:
R=R2*Alpha2 '+R1*Alpha1 ' * (1-Alpha2 ');
G=G2*Alpha2 '+G1*Alpha1 ' * (1-Alpha2 ');
B=B2*Alpha2 '+B1*Alpha1 ' * (1-Alpha2 ');
Alpha '=1- (1-Alpha2 ') * (1-Alpha1 ');Wherein, R2*Alpha2 ', G2*Alpha2 ', B2*Alpha2 ' point
Not Wei other video pictures colors red, green, blue component color contribution margin, R1*Alpha1 ' * (1-Alpha2 '), G1*
Alpha1 ' * (1-Alpha2 '), B1*Alpha1 ' * (1-Alpha2 ') be respectively revised particle video pictures color it is red,
The color contribution value of green, blue component;
Wherein, R2, G2, B2 are respectively the red, green, blue component of other video pictures colors, and R1, G1, B1 are respectively revised
The red, green, blue component of particle video pictures color, Alpha2 ' are the transparency ratio of other video pictures colors, Alpha1 '
For the transparency ratio of revised particle video pictures color;
R, G, B, Alpha ' be transparency blending after color.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310210666.5A CN103327260B (en) | 2013-05-30 | 2013-05-30 | A kind of particle editing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310210666.5A CN103327260B (en) | 2013-05-30 | 2013-05-30 | A kind of particle editing method and apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103327260A CN103327260A (en) | 2013-09-25 |
CN103327260B true CN103327260B (en) | 2018-12-25 |
Family
ID=49195765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310210666.5A Active CN103327260B (en) | 2013-05-30 | 2013-05-30 | A kind of particle editing method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103327260B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112381905A (en) * | 2020-12-01 | 2021-02-19 | 北京光启元数字科技有限公司 | Color superposition method and device and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3074779B2 (en) * | 1991-05-29 | 2000-08-07 | 日本電気株式会社 | Special effect generator |
CN101271585A (en) * | 2008-03-31 | 2008-09-24 | 北京大学 | Method for collecting three-dimensional geometric drawing member on pattern processor |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5740343A (en) * | 1995-11-03 | 1998-04-14 | 3Dfx Interactive, Incorporated | Texture compositing apparatus and method |
CN102752515B (en) * | 2011-05-11 | 2017-04-12 | 新奥特(北京)视频技术有限公司 | Implementation method of flame effect at programmable stage in graphics rendering |
CN102509320B (en) * | 2011-10-25 | 2014-06-04 | 深圳万兴信息科技股份有限公司 | Picture processing method and device base on electronic terminal |
-
2013
- 2013-05-30 CN CN201310210666.5A patent/CN103327260B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3074779B2 (en) * | 1991-05-29 | 2000-08-07 | 日本電気株式会社 | Special effect generator |
CN101271585A (en) * | 2008-03-31 | 2008-09-24 | 北京大学 | Method for collecting three-dimensional geometric drawing member on pattern processor |
Non-Patent Citations (3)
Title |
---|
RGBA alpha 透明度混合算法;艾蔓草;《http://blog.csdn.net/xhhjin/article/details/6445460》;20110525;第1页 * |
Trapcode的粒子系统操作摘录;一个农夫;《www.cnblogs.com/afarmer/archive/2011/04/30/2033660.html》;20110430;第1页 * |
基于粒子系统的动态景物模拟;吴国宝;《中国优秀硕士学位论文全文数据库 信息科技辑》;20120915(第09期);摘要,正文第12-14页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103327260A (en) | 2013-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101631973B1 (en) | Method for compensating for cross-talk in 3-d display | |
US9547427B2 (en) | User interface with color themes based on input image data | |
CN104484446A (en) | Method and device for dynamically displaying statistical data | |
CN105447898A (en) | Method and device for displaying 2D application interface in virtual real device | |
TW202139137A (en) | Method, apparatus and non-transitory computer-readable storage medium for color transformations in high dynamic range signals | |
CN104244087B (en) | A kind of method and apparatus of Video Rendering | |
CN101350891A (en) | Method and apparatus for representing image granularity by one or more parameters | |
US7864197B2 (en) | Method of background colour removal for porter and duff compositing | |
US20110115792A1 (en) | Image processing device, method and system | |
CN103366330A (en) | Method and device for setting watermark | |
CN105933692A (en) | Method Used For Preparing 3d Images | |
CN109785410A (en) | A kind of figure layer merging method, device and associated component | |
US20130135339A1 (en) | Subpixel Compositing on Transparent Backgrounds | |
CN103327260B (en) | A kind of particle editing method and apparatus | |
JP2004054953A (en) | Video processing method and video processor | |
WO2012064411A2 (en) | Methods and apparatus for sub-asset modification | |
CN102572305B (en) | Method of video image processing and system | |
CN111787240A (en) | Video generation method, device and computer readable storage medium | |
CN104715454A (en) | Anti-aliasing graph overlapping algorithm | |
US20160100108A1 (en) | Blending Images Using Mismatched Source and Display Electro-Optical Transfer Functions | |
CN110910485B (en) | Immersion type cave image manufacturing method | |
Arrighetti | The academy color encoding system (ACES): A professional color-management framework for production, post-production and archival of still and motion pictures | |
US20190266700A1 (en) | Two-Dimensional Piecewise Approximation to Compress Image Warping Fields | |
US20140152648A1 (en) | Three-dimensional annotation system and method | |
US20170048506A1 (en) | Moving image reproducing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |