CN107682644A - A kind of personalized image synthetic method, system and device - Google Patents

A kind of personalized image synthetic method, system and device Download PDF

Info

Publication number
CN107682644A
CN107682644A CN201710785940.XA CN201710785940A CN107682644A CN 107682644 A CN107682644 A CN 107682644A CN 201710785940 A CN201710785940 A CN 201710785940A CN 107682644 A CN107682644 A CN 107682644A
Authority
CN
China
Prior art keywords
image
translucent
translucent image
input picture
original input
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.)
Pending
Application number
CN201710785940.XA
Other languages
Chinese (zh)
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.)
Guangzhou Beauty Information Technology Co Ltd
Original Assignee
Guangzhou Beauty Information 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 Guangzhou Beauty Information Technology Co Ltd filed Critical Guangzhou Beauty Information Technology Co Ltd
Priority to CN201710785940.XA priority Critical patent/CN107682644A/en
Publication of CN107682644A publication Critical patent/CN107682644A/en
Pending legal-status Critical Current

Links

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/272Means for inserting a foreground image in a background image, i.e. inlay, outlay

Abstract

The invention discloses a kind of personalized image synthetic method, system and device, method includes:Obtain the first original input picture and the second original input picture;Translucentization processing is carried out to the first original input picture and the second original input picture respectively, obtains the first translucent image and the second translucent image;Each respective pixel value of RGB channel in the first translucent image and the second translucent image carries out composite calulation, obtains composograph.The present invention by carrying out synthesis processing again after translucentization, it is possible to achieve the flexible setting of personalized image synthesis, and also computation complexity of the present invention is relatively low, and it is not high to equipment requirement, it is easy to the realization of equipment.It the composite can be widely applied in image composing technique.

Description

A kind of personalized image synthetic method, system and device
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of personalized image synthetic method, system and device.
Background technology
In order to obtain the image of synthesis, current way is to need to download to these background images in electronic equipment, so The image of figure acquisition destination object will be scratched in the image of shooting afterwards, the destination object plucked out is finally edited into these background images In, the image finally synthesized is obtained, this mode is comparatively laborious.
The content of the invention
In order to solve the above-mentioned technical problem, it is an object of the invention to provide one kind to realize simple personalized image synthesis side Method, system and device.
The technical solution used in the present invention is:
A kind of personalized image synthetic method, comprises the following steps:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, it is semi-transparent to obtain first Bright image and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image is synthesized Calculate, obtain composograph.
As a kind of further improvement of described personalized image synthetic method, described translucentization is handled, this Step is specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
As a kind of further improvement of described personalized image synthetic method, the specific formula of described composite calulation For:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
Another technical scheme of the present invention is:
A kind of personalized image synthesis system, including:
Original image acquiring unit, for obtaining the first original input picture and the second original input picture;
Translucentization processing unit, the first original input picture and the second original input picture are carried out for respectively semi-transparent Brightization processing, obtains the first translucent image and the second translucent image;
Synthesis unit, each correspondence for the RGB channel in the first translucent image and the second translucent image Pixel value carries out composite calulation, obtains composograph.
As a kind of further improvement of described personalized image synthesis system, in described translucentization processing unit Translucentization processing, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
As a kind of further improvement of described personalized image synthesis system, the specific formula of described composite calulation For:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
Another technical scheme of the present invention is:
A kind of personalized image synthesizer, including:
Memory, for depositing program;
Processor, for perform described program for:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, it is semi-transparent to obtain first Bright image and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image is synthesized Calculate, obtain composograph.
As a kind of further improvement of described personalized image synthesizer, described translucentization is handled, this Step is specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
As a kind of further improvement of described personalized image synthesizer, the specific formula of described composite calulation For:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
The beneficial effects of the invention are as follows:
The present invention a kind of personalized image synthetic method, system and device by the way that synthesis processing is carried out after translucentization again, The flexible setting of personalized image synthesis can be realized, and computation complexity of the present invention is relatively low, it is not high to equipment requirement, it is easy to The realization of equipment.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of personalized image synthetic method of the present invention;
Fig. 2 is a kind of block diagram of personalized image synthesis system of the present invention.
Embodiment
The embodiment of the present invention is described further below in conjunction with the accompanying drawings:
With reference to figure 1, a kind of personalized image synthetic method of the present invention, comprise the following steps:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, it is semi-transparent to obtain first Bright image and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image is synthesized Calculate, obtain composograph.
Be further used as preferred embodiment, the processing of described translucentization, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
Wherein, the alpha channel values can need voluntarily to set adjustment according to user.
Preferred embodiment is further used as, the specific formula of described composite calulation is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
With reference to figure 2, a kind of personalized image synthesis system of the invention, including:
Original image acquiring unit, for obtaining the first original input picture and the second original input picture;
Translucentization processing unit, the first original input picture and the second original input picture are carried out for respectively semi-transparent Brightization processing, obtains the first translucent image and the second translucent image;
Synthesis unit, each correspondence for the RGB channel in the first translucent image and the second translucent image Pixel value carries out composite calulation, obtains composograph.
It is further used as preferred embodiment, the translucentization processing in described translucentization processing unit, this Step is specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
Preferred embodiment is further used as, the specific formula of described composite calulation is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
A kind of personalized image synthesizer of the present invention, including:
Memory, for depositing program;
Processor, for perform described program for:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, it is semi-transparent to obtain first Bright image and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image is synthesized Calculate, obtain composograph.
Be further used as preferred embodiment, the processing of described translucentization, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
Preferred embodiment is further used as, the specific formula of described composite calulation is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents the first translucent image The corresponding a certain pixel of RGB channel, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
From the foregoing it can be that after the present invention a kind of personalized image synthetic method, system and device are by translucentization Synthesis processing is carried out again, it is possible to achieve the flexible setting of personalized image synthesis so that the picture existing first being finally synthesizing is former The content of beginning input picture also has the content of the second original input picture, this content that may apply to two images compare and The synthesis of personalized intention picture, and computation complexity of the present invention is relatively low, it is not high to equipment configratioin requirement, it is easy to the reality of equipment It is existing.
Above is the preferable implementation to the present invention is illustrated, but the invention is not limited to the implementation Example, those skilled in the art can also make a variety of equivalent variations on the premise of without prejudice to spirit of the invention or replace Change, these equivalent deformations or replacement are all contained in the application claim limited range.

Claims (9)

1. a kind of personalized image synthetic method, it is characterised in that comprise the following steps:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, obtains the first translucent figure Picture and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image carries out synthesis meter Calculate, obtain composograph.
A kind of 2. personalized image synthetic method according to claim 1, it is characterised in that:At described translucentization Reason, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
A kind of 3. personalized image synthetic method according to claim 1, it is characterised in that:The tool of described composite calulation Body formula is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents that the RGB of the first translucent image leads to The corresponding a certain pixel in road, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
A kind of 4. personalized image synthesis system, it is characterised in that including:
Original image acquiring unit, for obtaining the first original input picture and the second original input picture;
Translucentization processing unit, for carrying out translucentization to the first original input picture and the second original input picture respectively Processing, obtains the first translucent image and the second translucent image;
Synthesis unit, each respective pixel for the RGB channel in the first translucent image and the second translucent image Value carries out composite calulation, obtains composograph.
A kind of 5. personalized image synthesis system according to claim 4, it is characterised in that:Described translucentization processing In unit translucentization processing, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
A kind of 6. personalized image synthesis system according to claim 4, it is characterised in that:The tool of described composite calulation Body formula is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents that the RGB of the first translucent image leads to The corresponding a certain pixel in road, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
A kind of 7. personalized image synthesizer, it is characterised in that including:
Memory, for depositing program;
Processor, for perform described program for:
Obtain the first original input picture and the second original input picture;
Translucentization processing is carried out to the first original input picture and the second original input picture respectively, obtains the first translucent figure Picture and the second translucent image;
Each respective pixel value of RGB channel in the first translucent image and the second translucent image carries out synthesis meter Calculate, obtain composograph.
A kind of 8. personalized image synthesizer according to claim 7, it is characterised in that:At described translucentization Reason, the step for be specially:
By setting the alpha channel values of image translucent image is obtained and then processing.
A kind of 9. personalized image synthesizer according to claim 7, it is characterised in that:The tool of described composite calulation Body formula is:
As the alpha channel values AlphaB≤0.5 of the second translucent image, C=2*A*B;
As the alpha channel value AlphaB > 0.5 of the second translucent image, C=1-2* (1-A) * (1-B);
Wherein, C represents the corresponding a certain pixel of the RGB channel of composograph, and A represents that the RGB of the first translucent image leads to The corresponding a certain pixel in road, B represent the corresponding a certain pixel of the RGB channel of the second translucent image.
CN201710785940.XA 2017-09-04 2017-09-04 A kind of personalized image synthetic method, system and device Pending CN107682644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710785940.XA CN107682644A (en) 2017-09-04 2017-09-04 A kind of personalized image synthetic method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710785940.XA CN107682644A (en) 2017-09-04 2017-09-04 A kind of personalized image synthetic method, system and device

Publications (1)

Publication Number Publication Date
CN107682644A true CN107682644A (en) 2018-02-09

Family

ID=61135615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710785940.XA Pending CN107682644A (en) 2017-09-04 2017-09-04 A kind of personalized image synthetic method, system and device

Country Status (1)

Country Link
CN (1) CN107682644A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791199A (en) * 2004-11-26 2006-06-21 Lg电子株式会社 Apparatus and method for combining images in a terminal device
CN1878247A (en) * 2006-07-06 2006-12-13 北京中星微电子有限公司 Image frame handling method for digital pick-up device and its system
JP2011044061A (en) * 2009-08-24 2011-03-03 Tokyo Univ Of Agriculture & Technology Image display device, input device and image display method
CN106033619A (en) * 2015-03-20 2016-10-19 深圳市腾讯计算机系统有限公司 Picture verification code generating method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791199A (en) * 2004-11-26 2006-06-21 Lg电子株式会社 Apparatus and method for combining images in a terminal device
CN1878247A (en) * 2006-07-06 2006-12-13 北京中星微电子有限公司 Image frame handling method for digital pick-up device and its system
JP2011044061A (en) * 2009-08-24 2011-03-03 Tokyo Univ Of Agriculture & Technology Image display device, input device and image display method
CN106033619A (en) * 2015-03-20 2016-10-19 深圳市腾讯计算机系统有限公司 Picture verification code generating method, device and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CCJK BLOG: "Photoshop中图层混合模式全解", 《HTTP://WWW.CCJK.COM/PHOTOSHOP中图层混合模式全解/》 *
CSDN BLOG: "RGBA alpha 透明度混合算法", 《HTTPS://BLOG.CSDN.NET/XHHJIN/ARTICLE/DETAILS/6445460》 *
甄力: "使用EXCEL软件深入剖析PHOTOSHOP混合模式", 《价值工程》 *

Similar Documents

Publication Publication Date Title
CN109829930B (en) Face image processing method and device, computer equipment and readable storage medium
WO2018161775A1 (en) Neural network model training method, device and storage medium for image processing
CN111383232B (en) Matting method, matting device, terminal equipment and computer readable storage medium
CN101035190B (en) Apparatus and method for color correction
CN104504722B (en) Method for correcting image colors through gray points
CN108711142B (en) Image processing method and image processing apparatus
CN109616080B (en) Special-shaped screen contour compensation method and terminal
CN111489322A (en) Method and device for adding sky filter to static picture
CN109599054A (en) The control method and device of display panel brightness
CN107871303A (en) A kind of image processing method and device
JP2012085292A (en) Method and device for processing white balance of image
CN113052868A (en) Cutout model training and image cutout method and device
CN106657947A (en) Image generation method and photographing device
CN111787240B (en) Video generation method, apparatus and computer readable storage medium
CN104346817A (en) Video image color cast detection method and device
US10497149B2 (en) Image processing apparatus and image processing method
Xiong et al. Color correction for mobile panorama imaging
CN104504666B (en) A kind of tone mapping method based on laplacian pyramid
CN107682644A (en) A kind of personalized image synthetic method, system and device
WO2016158490A1 (en) Projection system, projector device, imaging device, and program
CN110599394A (en) Method and device for processing pictures in online presentation, storage medium and equipment
CN103886550A (en) Sketch texture adjustment method and system
WO2019169851A1 (en) Image processing method and system
Chen et al. Low-light image enhancement and acceleration processing based on ZYNQ
CN104240191A (en) Batch-image enhancement processing method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180209

RJ01 Rejection of invention patent application after publication