CN112104818A - RGB channel separation method and system - Google Patents

RGB channel separation method and system Download PDF

Info

Publication number
CN112104818A
CN112104818A CN202010883742.9A CN202010883742A CN112104818A CN 112104818 A CN112104818 A CN 112104818A CN 202010883742 A CN202010883742 A CN 202010883742A CN 112104818 A CN112104818 A CN 112104818A
Authority
CN
China
Prior art keywords
channel
value
color
offset
original image
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.)
Granted
Application number
CN202010883742.9A
Other languages
Chinese (zh)
Other versions
CN112104818B (en
Inventor
李文镇
林杰兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Draft Xiamen Information Service Co ltd
Gaoding Xiamen Technology Co Ltd
Original Assignee
Gaoding Xiamen Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gaoding Xiamen Technology Co Ltd filed Critical Gaoding Xiamen Technology Co Ltd
Priority to CN202010883742.9A priority Critical patent/CN112104818B/en
Publication of CN112104818A publication Critical patent/CN112104818A/en
Priority to PCT/CN2021/099764 priority patent/WO2022041941A1/en
Application granted granted Critical
Publication of CN112104818B publication Critical patent/CN112104818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/2622Signal amplitude transition in the zone between image portions, e.g. soft edges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses a method, a medium, equipment and a system for separating RGB (red, green and blue) channels, wherein the method comprises the following steps: acquiring a channel offset value input by a user and channel information corresponding to an original image; s102, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and the offset channel information, and generating a mixed result corresponding to the color channel according to the first mixed value; s103, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; s104, updating a fourth channel value corresponding to the original image according to the first mixed value; s105, iterating the steps S102 to S104 until the three color channels are mixed completely to generate a final RGB channel separation result; the RGB channel separation can be effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.

Description

RGB channel separation method and system
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an RGB channel separation method, a computer-readable storage medium, a computer device, and an RGB channel separation system.
Background
The RGB channel separation is widely applied in image processing and video post-processing (for example, the making of video distortion special effects), and is an important image processing method.
In the related art, when RGB channel separation is performed, a user is required to create three images from an original image; then, based on the three created images, respectively carrying out displacement of an R channel, a G channel or a B channel on each image; the operation process in this way is very tedious and requires a lot of time for the user.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide an RGB channel separation method, which can effectively implement RGB channel separation, and at the same time, greatly improve RGB channel separation efficiency, reduce RGB separation difficulty, and save user operation time.
A second object of the invention is to propose a computer-readable storage medium.
A third object of the invention is to propose a computer device.
It is a fourth object of the present invention to provide an RGB channel separation system.
In order to achieve the above object, an embodiment of the first aspect of the present invention provides an RGB channel separation method, including the following steps: s101, acquiring a channel offset value input by a user and channel information corresponding to an original image, and acquiring offset channel information corresponding to each color channel according to the channel offset value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image; s102, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value; s103, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; s104, updating a fourth channel value corresponding to the original image according to the first mixed value; and S105, iterating the steps S102 to S104 until the three color channels are mixed completely to generate a final RGB channel separation result.
According to the RGB channel separation method provided by the embodiment of the invention, firstly, a channel offset value input by a user and channel information corresponding to an original image are obtained, and offset channel information corresponding to each color channel is obtained according to the channel offset value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image; then, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value; then, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; then, updating a fourth channel value corresponding to the original image according to the first mixed value; then, the mixing and smoothing processes of the other two color channels are carried out in an iterative mode to complete the mixing of the three color channels, and finally a final RGB channel separation result is generated; therefore, RGB channel separation is effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.
In addition, the RGB channel separation method proposed according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the offset channel information corresponding to the color channel includes an offset channel corresponding to the color channel and a fourth channel value corresponding to the offset channel.
Optionally, after calculating a first mixed value corresponding to a color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any one color channel, the method further includes: and normalizing the first mixed value so as to mix the color channel according to the normalized first mixed value.
Alternatively, the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Represents the fourth channel value corresponding to the original image, X represents the offset channel corresponding to the color channel, X.a represents the fourth channel value corresponding to the offset channel, ratio1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
Optionally, the second blending value is calculated by the following formula:
lRatio2=(1.0-X.a)×src.a
wherein, lRatio2Indicating the second mixture value, X.a indicating the fourth channel value corresponding to the offset channel, src.a indicating the fourth channel value corresponding to the original src layer.
Optionally, smoothing the two color channels except the color channel according to the second mixed value includes: carrying out normalization processing on the second mixed value, and judging whether the normalized second mixed value is equal to a preset ratio threshold value or not; and if not, performing smoothing processing on the two color channels except the color channel according to a fourth channel value corresponding to the offset channel.
To achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which an RGB channel separation program is stored, which when executed by a processor implements the RGB channel separation method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the RGB channel separation program is stored, so that the processor can realize the RGB channel separation method when executing the RGB channel separation program, thereby effectively realizing RGB channel separation, greatly improving the RGB channel separation efficiency, reducing the RGB separation difficulty and saving the operation time of a user.
To achieve the above object, a third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the RGB channel separation method as described above is implemented.
According to the computer equipment provided by the embodiment of the invention, the RGB channel separation program is stored through the memory, so that the processor can realize the RGB channel separation method when executing the RGB channel separation program, the RGB channel separation is effectively realized, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the operation time of a user is saved.
In order to achieve the above object, a fourth aspect of the present invention provides an RGB channel separation system, including: the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a channel deviation value input by a user and channel information corresponding to an original image, and acquiring the deviation channel information corresponding to each color channel according to the channel deviation value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image; the mixing module is used for calculating a first mixing value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixing result corresponding to the color channel according to the first mixing value; the smoothing module is used for calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; the updating module is used for updating a fourth channel value corresponding to the original image according to the first mixed value; the mixing module, the smoothing module and the updating module are further used for performing iterative computation to complete mixing of the three channels and generate a final RGB channel separation result.
According to the RGB channel separation system provided by the embodiment of the invention, the acquisition module is arranged for acquiring the channel offset value input by a user and the channel information corresponding to the original image, and acquiring the offset channel information corresponding to each color channel according to the channel offset value, wherein the channel information corresponding to the original image comprises the fourth channel value corresponding to the original image; the mixing module is used for calculating a first mixing value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixing result corresponding to the color channel according to the first mixing value; the smoothing module is used for calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; the updating module is used for updating a fourth channel value corresponding to the original image according to the first mixed value; the mixing module, the smoothing module and the updating module are also used for carrying out iterative computation to complete the mixing of the three channels and generate a final RGB channel separation result, so that the RGB channel separation is effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.
In addition, the RGB channel separation system proposed according to the above embodiment of the present invention may also have the following additional technical features:
alternatively, the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Represents the fourth channel value corresponding to the original image, X represents the offset channel corresponding to the color channel, X.a represents the fourth channel value corresponding to the offset channel, ratio1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
Drawings
FIG. 1 is a schematic flow chart of an RGB channel separation method according to an embodiment of the invention;
FIG. 2 is a block diagram of an RGB channel separation system according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, in the process of separating the RGB channels, the operation process is complicated, and great operation time needs to be wasted; according to the RGB channel separation method provided by the embodiment of the invention, firstly, a channel offset value input by a user and channel information corresponding to an original image are obtained, and offset channel information corresponding to each color channel is obtained according to the channel offset value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image; then, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value; then, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; then, updating a fourth channel value corresponding to the original image according to the first mixed value; then, the mixing and smoothing processes of the other two color channels are carried out in an iterative mode to complete the mixing of the three color channels, and finally a final RGB channel separation result is generated; therefore, RGB channel separation is effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Fig. 1 is a schematic flow chart of an RGB channel separation method according to an embodiment of the present invention, as shown in fig. 1, the RGB channel separation method includes the following steps:
s101, acquiring a channel offset value input by a user and channel information corresponding to an original image, and acquiring offset channel information corresponding to each color channel according to the channel offset value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image.
The method for acquiring the channel offset value input by the user can be various; for example, directly obtaining an offset value corresponding to each color channel input by a user to obtain a channel offset value; or, presetting a corresponding offset adjusting slider for each color channel so as to acquire a channel offset value by acquiring an adjusting instruction of a user for the slider.
S102, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value.
In some embodiments, the offset channel information corresponding to the color channel includes an offset channel corresponding to the color channel and a fourth channel value corresponding to the offset channel.
In some embodiments, after calculating the first mixture value corresponding to the color channel according to the fourth channel value corresponding to the original image and the offset channel information corresponding to any one color channel, the method further includes: and normalizing the first mixed value so as to mix the color channel according to the normalized first mixed value.
In some embodiments, the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Represents the fourth channel value corresponding to the original image, X represents the offset channel corresponding to the color channel, X.a represents the fourth channel value corresponding to the offset channel, ratio1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
As an example, the arbitrary color channel is a red color channel, first, offset channel information corresponding to the red color channel is obtained, where the offset channel information includes an offset channel R and a fourth channel value R.a corresponding to the offset channel R, and then, the fourth channel value corresponding to the original src layer is used as the fourth channel value corresponding to the original image, that is, sRatio is used as the fourth channel value corresponding to the original image1Src.a; then, according to R.a and sRatio1Performing a first blend value calculation: lRatio (r)1=(1.0-sRatio1) X R.a; then, the first mixed value obtained by calculation is normalized, and ratio1=lRatio1/(lRatio1+sRatio1) (ii) a Then, mixing the offset channel R with the red channel of the original src according to the normalized first mixing value: dR ═ R × ratio1+(1.0-ratio1) Xsr to complete the mixing process for the red channel.
S103, calculating a second mixed value according to a fourth channel value corresponding to the original image and the offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value.
In some embodiments, the second blending value is calculated by the following formula:
lRatio2=(1.0-X.a)×src.a
wherein, lRatio2Representing the second mixture value, X.a representing the fourth channel value corresponding to the offset channel, src.a representing the fourth channel value corresponding to the original src layerThe channel value.
In some embodiments, smoothing the two color channels other than the color channel according to the second blending value comprises: carrying out normalization processing on the second mixed value, and judging whether the normalized second mixed value is equal to a preset ratio threshold value or not; and if not, performing smoothing processing on the two color channels except the color channel according to a fourth channel value corresponding to the offset channel.
As an example, when the color channel is a red color channel, then the two color channels other than the color channel are a green color channel and a blue color channel, respectively; and the fourth channel value corresponding to the offset channel is R.a, and the second blending value can be calculated according to the following formula: lRatio (r)2(1.0-R.a) × src.a; further, the second mixture value may be normalized: ratio (R)2=lRatio2/(lRatio2+ R.a); next, the ratio is determined2Whether it is equal to a preset ratio threshold (e.g., setting the ratio threshold to a maximum value of 1.0); if ratio2If the ratio is equal to the ratio threshold, let dG be sG, dB be sB; wherein dG represents a mixing result of a green channel, sG represents an original green channel, dB represents a mixing result of a blue channel, and sB represents an original blue channel; if ratio2Not equal to the ratio threshold, then: dG-0 ratio2+(1.0-ratio2)*sG,dB=0*ratio2+(1.0-ratio2) sB; to smooth the green and blue channels.
And S104, updating a fourth channel value corresponding to the original image according to the first mixed value.
That is, the fourth channel value corresponding to the original image is updated according to the first mixed value, so that the next channel is mixed according to the updated fourth channel value.
As an example, when mixing is first performed, sRatio2=src.a+lRatio1
And S105, iterating the steps S102 to S104 until the three color channels are mixed completely to generate a final RGB channel separation result.
That is, after the mixing of the first color channel and the smoothing of the other two channels are performed according to the steps of S102-S104, and the fourth channel value corresponding to the new original image is obtained through calculation, the mixing and smoothing of the second color channel and the updating of the fourth channel value corresponding to the new original image are performed according to the fourth channel value corresponding to the new original image; and after the mixing of the three color channels is completed in sequence, generating a final RGB channel separation result.
As an example, when a first executed channel is a red channel, a second executed channel is a green channel, and a third executed channel is a blue channel; the green channel mixing process is as follows: from the above, the fourth channel value corresponding to the updated original image is sRatio2Then, the first mixing value corresponding to the green channel is: lRatio (r)3=(1.0-sRatio2) X G.a, where G.a represents the fourth channel value for offset channel G; then, the first mixed value is normalized: ratio (R)3=lRatio3/(lRatio3+sRatio2) (ii) a Then, the green channel is mixed: dG1=G×ratio3+(1.0-ratio3) X dG; the second blending value may then be calculated according to the following formula: lRatio (r)4(1.0-G.a) × src.a; and normalizing the second mixed value: ratio (R)4=lRatio4/(lRatio4+ G.a); next, the ratio is determined4Whether it is equal to a preset ratio threshold (e.g., setting the ratio threshold to a maximum value of 1.0); if ratio4Equal to the ratio threshold, then let dR1=dR,dB1dB (i.e. let the mixing result of the red channel equal to the previous mixing result and the mixing result of the blue channel equal to the previous mixing result); if ratio4Not equal to the ratio threshold, then: dR1=0*ratio4+(1.0-ratio4)*dR,dB1=0*ratio4+(1.0-ratio4) dB; to smooth the red and blue channels.
After the mixing of the green channel, the smoothing of the red and blue channels is completed, according to the green passA first mixing value lRatio corresponding to the mixing process3Updating a fourth channel value corresponding to the original image: sRatio3=sRatio2+lRatio3(ii) a So as to be based on the updated sRatio3Subsequent mixing of the blue channels is performed.
In the process of mixing the blue color channels, as can be seen from the above, the fourth channel value corresponding to the updated original image is sRatio3Then, the first mixing value corresponding to the green channel is: lRatio (r)5=(1.0-sRatio3) xB.a, wherein B.a represents a fourth channel value corresponding to the offset channel B; then, the first mixed value is normalized: ratio (R)5=lRatio5/(lRatio5+sRatio3) (ii) a Then, the green channel is mixed: dB2=B×ratio5+(1.0-ratio5)×dB1(ii) a The second blending value may then be calculated according to the following formula: lRatio (r)6(1.0-b.a) × src.a; and normalizing the second mixed value: ratio (R)6=lRatio6/(lRatio6+ b.a); next, the ratio is determined4Whether it is equal to a preset ratio threshold (e.g., setting the ratio threshold to a maximum value of 1.0); if ratio6Equal to the ratio threshold, then let dR2=dR1,dG2=dG1(i.e., let the blending result of the secondary red channel equal the last blending result and the blending result of the secondary blue channel equal the last blending result); if ratio6Not equal to the ratio threshold, then: dR2=0*ratio4+(1.0-ratio4)*dR1,dG2=0*ratio4+(1.0-ratio4)*dG1(ii) a To smooth the red and blue channels.
Then, updating a fourth channel value corresponding to the original image: sRatio4=sRatio3+lRatio5(ii) a And finally, outputting a final RGB channel separation result: dR2、dG2、dB2And sRatio4
In summary, according to the RGB channel separation method of the embodiment of the present invention, first, a channel offset value input by a user and channel information corresponding to an original image are obtained, and offset channel information corresponding to each color channel is obtained according to the channel offset value, where the channel information corresponding to the original image includes a fourth channel value corresponding to the original image; then, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value; then, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; then, updating a fourth channel value corresponding to the original image according to the first mixed value; then, the mixing and smoothing processes of the other two color channels are carried out in an iterative mode to complete the mixing of the three color channels, and finally a final RGB channel separation result is generated; therefore, RGB channel separation is effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.
In order to implement the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which an RGB channel separation program is stored, which when executed by a processor implements the RGB channel separation method as described above.
According to the computer-readable storage medium of the embodiment of the invention, the RGB channel separation program is stored, so that the processor can realize the RGB channel separation method when executing the RGB channel separation program, thereby effectively realizing RGB channel separation, greatly improving the RGB channel separation efficiency, reducing the RGB separation difficulty and saving the operation time of a user.
In order to implement the foregoing embodiments, 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 executable on the processor, and when the processor executes the computer program, the RGB channel separation method as described above is implemented.
According to the computer equipment provided by the embodiment of the invention, the RGB channel separation program is stored through the memory, so that the processor can realize the RGB channel separation method when executing the RGB channel separation program, the RGB channel separation is effectively realized, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the operation time of a user is saved.
In order to implement the foregoing embodiment, an embodiment of the present invention further provides an RGB channel separation system, as shown in fig. 2, the RGB channel separation system includes: an acquisition module 10, a blending module 20, a smoothing module 30 and an update module 40.
The obtaining module 10 is configured to obtain a channel offset value input by a user and channel information corresponding to an original image, and obtain offset channel information corresponding to each color channel according to the channel offset value, where the channel information corresponding to the original image includes a fourth channel value corresponding to the original image;
the mixing module 20 is configured to calculate a first mixing value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any one color channel, and generate a mixing result corresponding to the color channel according to the first mixing value;
the smoothing module 30 is configured to calculate a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smooth the two color channels except the color channel according to the second mixed value;
the updating module 40 is configured to update a fourth channel value corresponding to the original image according to the first mixed value;
the blending module 20, smoothing module 30 and updating module 40 are also used to perform iterative calculations to complete the blending of the three channels and generate the final RGB channel separation results.
In some embodiments, the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Represents the fourth channel value corresponding to the original image, X represents the offset channel corresponding to the color channel, X.a represents the fourth channel value corresponding to the offset channel, ratio1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
In summary, according to the RGB channel separation system of the embodiment of the present invention, the obtaining module is configured to obtain a channel offset value input by a user and channel information corresponding to an original image, and obtain offset channel information corresponding to each color channel according to the channel offset value, where the channel information corresponding to the original image includes a fourth channel value corresponding to the original image; the mixing module is used for calculating a first mixing value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixing result corresponding to the color channel according to the first mixing value; the smoothing module is used for calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value; the updating module is used for updating a fourth channel value corresponding to the original image according to the first mixed value; the mixing module, the smoothing module and the updating module are also used for carrying out iterative computation to complete the mixing of the three channels and generate a final RGB channel separation result, so that the RGB channel separation is effectively realized, meanwhile, the RGB channel separation efficiency is greatly improved, the RGB separation difficulty is reduced, and the user operation time is saved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. An RGB channel separation method is characterized by comprising the following steps:
s101, acquiring a channel offset value input by a user and channel information corresponding to an original image, and acquiring offset channel information corresponding to each color channel according to the channel offset value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image;
s102, calculating a first mixed value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixed result corresponding to the color channel according to the first mixed value;
s103, calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value;
s104, updating a fourth channel value corresponding to the original image according to the first mixed value;
and S105, iterating the steps S102 to S104 until the three color channels are mixed completely to generate a final RGB channel separation result.
2. The RGB channel separation method of claim 1, wherein the offset channel information corresponding to the color channel includes an offset channel corresponding to the color channel and a fourth channel value corresponding to the offset channel.
3. The RGB channel separation method of claim 1, wherein after calculating the first mixture value corresponding to any one of the color channels based on the fourth channel value corresponding to the original image and the offset channel information corresponding to the color channel, further comprising:
and normalizing the first mixed value so as to mix the color channel according to the normalized first mixed value.
4. The RGB channel separation method of claim 1, wherein the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Represents the fourth channel value corresponding to the original image, X represents the offset channel corresponding to the color channel, X.a represents the fourth channel value corresponding to the offset channel, ratio1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
5. The RGB channel separation method of claim 1, wherein the second mixture value is calculated by the following formula:
lRatio2=(1.0-X.a)×src.a
wherein, lRatio2Indicating the second mixture value, X.a indicating the fourth channel value corresponding to the offset channel, src.a indicating the fourth channel value corresponding to the original src layer.
6. The RGB channel separation method of claim 1, wherein smoothing the two color channels other than the color channel according to the second mixture value includes:
carrying out normalization processing on the second mixed value, and judging whether the normalized second mixed value is equal to a preset ratio threshold value or not;
and if not, performing smoothing processing on the two color channels except the color channel according to a fourth channel value corresponding to the offset channel.
7. A computer-readable storage medium, having stored thereon an RGB channel separation program which, when executed by a processor, implements the RGB channel separation method according to any one of claims 1 to 6.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements the RGB channel separation method according to any one of claims 1 to 6.
9. An RGB channel separation system, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a channel deviation value input by a user and channel information corresponding to an original image, and acquiring the deviation channel information corresponding to each color channel according to the channel deviation value, wherein the channel information corresponding to the original image comprises a fourth channel value corresponding to the original image;
the mixing module is used for calculating a first mixing value corresponding to the color channel according to a fourth channel value corresponding to the original image and offset channel information corresponding to any color channel, and generating a mixing result corresponding to the color channel according to the first mixing value;
the smoothing module is used for calculating a second mixed value according to a fourth channel value corresponding to the original image and offset channel information corresponding to the color channel, and smoothing the two color channels except the color channel according to the second mixed value;
the updating module is used for updating a fourth channel value corresponding to the original image according to the first mixed value;
the mixing module, the smoothing module and the updating module are further used for performing iterative computation to complete mixing of the three channels and generate a final RGB channel separation result.
10. The RGB channel separation system of claim 9, wherein the mixing process is expressed by the following formula:
lRatio1=(1.0-sRatio1)×X.a
ratio1=lRatio1/(lRatio1+sRatio1)
dX=X×ratio1+(1.0-ratio1)×sX
wherein, lRatio1Represents a first mixed value, sRatio1Representing the corresponding fourth channel value of the original image, X representing a color channel pairThe corresponding offset channel, X.a, indicates the fourth channel value, ratio, corresponding to the offset channel1Denotes the normalized first mixture value, dX denotes the mixture result of the color channel, and sX denotes the color channel.
CN202010883742.9A 2020-08-28 2020-08-28 RGB channel separation method and system Active CN112104818B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010883742.9A CN112104818B (en) 2020-08-28 2020-08-28 RGB channel separation method and system
PCT/CN2021/099764 WO2022041941A1 (en) 2020-08-28 2021-06-11 Rgb channel separation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010883742.9A CN112104818B (en) 2020-08-28 2020-08-28 RGB channel separation method and system

Publications (2)

Publication Number Publication Date
CN112104818A true CN112104818A (en) 2020-12-18
CN112104818B CN112104818B (en) 2022-07-01

Family

ID=73758179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010883742.9A Active CN112104818B (en) 2020-08-28 2020-08-28 RGB channel separation method and system

Country Status (2)

Country Link
CN (1) CN112104818B (en)
WO (1) WO2022041941A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022041941A1 (en) * 2020-08-28 2022-03-03 稿定(厦门)科技有限公司 Rgb channel separation method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080088858A1 (en) * 2006-10-13 2008-04-17 Apple Inc. System and Method for Processing Images Using Predetermined Tone Reproduction Curves
CN102568436A (en) * 2010-12-16 2012-07-11 苹果公司 Spatio-temporal color luminance dithering techniques
CN103039079A (en) * 2010-04-23 2013-04-10 特里德里提股份公司 Simultaneous reproduction of a plurality of images by means of a two-dimensional imaging matrix
KR20140099777A (en) * 2013-02-04 2014-08-13 삼성테크윈 주식회사 Method and System for Image Fusion using Multi-spectral filter array sensor
CN107451976A (en) * 2017-07-28 2017-12-08 浙江大华技术股份有限公司 A kind of image processing method and device
CN108737821A (en) * 2018-04-25 2018-11-02 中国人民解放军军事科学院军事医学研究院 The quick pre-selection method in video interest region based on multichannel shallow-layer feature and system
CN110719452A (en) * 2019-10-15 2020-01-21 歌尔股份有限公司 Color coordinate measuring method, measuring device, computer equipment and storage medium
KR102120681B1 (en) * 2019-11-20 2020-06-10 동국대학교 산학협력단 Apparatus and method for reducing number of channels in input images to compress deep neural networks
CN111383188A (en) * 2018-12-29 2020-07-07 Tcl集团股份有限公司 Image processing method, system and terminal equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007166543A (en) * 2005-12-16 2007-06-28 Canon Inc Image processing device and method thereof
US10152775B1 (en) * 2017-08-08 2018-12-11 Rockwell Collins, Inc. Low latency mixed reality head wearable device
CN112104818B (en) * 2020-08-28 2022-07-01 稿定(厦门)科技有限公司 RGB channel separation method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080088858A1 (en) * 2006-10-13 2008-04-17 Apple Inc. System and Method for Processing Images Using Predetermined Tone Reproduction Curves
CN103039079A (en) * 2010-04-23 2013-04-10 特里德里提股份公司 Simultaneous reproduction of a plurality of images by means of a two-dimensional imaging matrix
CN102568436A (en) * 2010-12-16 2012-07-11 苹果公司 Spatio-temporal color luminance dithering techniques
KR20140099777A (en) * 2013-02-04 2014-08-13 삼성테크윈 주식회사 Method and System for Image Fusion using Multi-spectral filter array sensor
CN107451976A (en) * 2017-07-28 2017-12-08 浙江大华技术股份有限公司 A kind of image processing method and device
CN108737821A (en) * 2018-04-25 2018-11-02 中国人民解放军军事科学院军事医学研究院 The quick pre-selection method in video interest region based on multichannel shallow-layer feature and system
CN111383188A (en) * 2018-12-29 2020-07-07 Tcl集团股份有限公司 Image processing method, system and terminal equipment
CN110719452A (en) * 2019-10-15 2020-01-21 歌尔股份有限公司 Color coordinate measuring method, measuring device, computer equipment and storage medium
KR102120681B1 (en) * 2019-11-20 2020-06-10 동국대학교 산학협력단 Apparatus and method for reducing number of channels in input images to compress deep neural networks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022041941A1 (en) * 2020-08-28 2022-03-03 稿定(厦门)科技有限公司 Rgb channel separation method and system

Also Published As

Publication number Publication date
WO2022041941A1 (en) 2022-03-03
CN112104818B (en) 2022-07-01

Similar Documents

Publication Publication Date Title
He et al. Conditional sequential modulation for efficient global image retouching
US10832611B2 (en) Multiple primary color conversion method, driving method, driving device and display apparatus
CN109410126B (en) Tone mapping method of high dynamic range image with detail enhancement and brightness self-adaption
CN101901474B (en) Change the method for at least one in the density of image and contrast
CN111223106A (en) Full-automatic portrait mask matting method and system
CN112104818B (en) RGB channel separation method and system
CN110211191B (en) Mixed color correction method and device, terminal equipment and readable storage medium
CN101986689B (en) Method and apparatus for image processing
CN100556070C (en) Be used to handle the method and apparatus of stitching image
US8542324B2 (en) Efficient image and video recoloring for colorblindness
KR20060048802A (en) Border matting by dynamic programming
CN105046643A (en) Image splicing method based on brightness adaptive registration
CN102521807A (en) Method for transferring colors by utilizing color space distribution
JP2018045396A (en) Image processing apparatus, image processing method, and program
Ho et al. Deep preset: Blending and retouching photos with color style transfer
CN114494739B (en) Toner mixing effect detection method based on artificial intelligence
CN110706161B (en) Image brightness adjusting method, medium, device and apparatus
CN106971375B (en) Image amplification processing method and device
CN104143203A (en) Image editing and communication method
CN111462278B (en) Depth-based material sequencing rendering method, medium, equipment and device
CN109615583B (en) Game map generation method and device
CN112700526B (en) Concave-convex material image rendering method and device
CN111462003B (en) Face image processing method, medium, device and apparatus
WO2015029613A1 (en) Image generation device and display device
US8345972B2 (en) Method for processing color component values of pixel

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220930

Address after: 361001 unit R, 2nd floor, No. 33-102, Punan 1st Road, Siming District, Xiamen City, Fujian Province

Patentee after: GAODING (XIAMEN) TECHNOLOGY Co.,Ltd.

Patentee after: Draft (Xiamen) Information Service Co.,Ltd.

Address before: G15-2, 3rd floor, No.10, Punan 1st Road, Dongpu Road, Siming District, Xiamen City, Fujian Province

Patentee before: GAODING (XIAMEN) TECHNOLOGY Co.,Ltd.