CN108777783A - A kind of image processing method and device - Google Patents

A kind of image processing method and device Download PDF

Info

Publication number
CN108777783A
CN108777783A CN201810746159.6A CN201810746159A CN108777783A CN 108777783 A CN108777783 A CN 108777783A CN 201810746159 A CN201810746159 A CN 201810746159A CN 108777783 A CN108777783 A CN 108777783A
Authority
CN
China
Prior art keywords
image
color
background
interest
area
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
CN201810746159.6A
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.)
Guangdong Communications Polytechnic
Original Assignee
Guangdong Communications Polytechnic
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 Guangdong Communications Polytechnic filed Critical Guangdong Communications Polytechnic
Priority to CN201810746159.6A priority Critical patent/CN108777783A/en
Publication of CN108777783A publication Critical patent/CN108777783A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of image processing method and devices, including:S1:The area-of-interest in original image is extracted by ROI extraction algorithms;S2:The area-of-interest of original image and background image are carried out background to piece together to obtain stitching image;S3:The color conversion of coloured image to stitching image is obtained into result images by color pass-algorithm.Image processing method in the present invention extracts the area-of-interest of original image by ROI extraction algorithms and is pieced together with background image, then color conversion is carried out according to color pass-algorithm again, compared with current color Transfer Technology can only carry out overall color change to original image, it can be in the case where not influencing the expression of image body matter, improve the flexibility ratio of image color matching, so that scheme of colour is more lively changeable, more personalized, add the interest of image color matching, it is dull to solve current image procossing scheme, the technical issues of being difficult to meet people the multiple demand for image procossing.

Description

A kind of image processing method and device
Technical field
The present invention relates to technical field of image processing more particularly to a kind of image processing methods and device.
Background technology
With the development of science and technology, great amount of images enters people's lives, such as people pass through miscellaneous shooting work The art pattern etc. that the image for the personage and landscape that tool shooting is liked oneself and progress artistic creation obtain.
Sometimes people want that these images are further processed, but the scheme of present image processing is all more dull, Such as most of mobile phone U.S. figure class (or image processing class) softwares can adjust the style of image, but simple can only also obtain logical Overregulate image tone make image have miss old times or old friends, be honorable, the images style such as indifferent to fame or gain and Blues, it is difficult to meet people for figure As processing increasingly multiple demands.
Therefore, it is dull to result in current image procossing scheme, it is difficult to meet diversification need of the people for image procossing The technical issues of asking.
Invention content
The present invention provides a kind of image processing method and devices, and it is dull to solve current image procossing scheme, it is difficult to The technical issues of meeting multiple demand of the people for image procossing.
The present invention provides a kind of image processing methods, including:
S1:The area-of-interest in original image is extracted by ROI extraction algorithms;
S2:The area-of-interest of original image and background image are carried out background to piece together to obtain stitching image;
S3:The color conversion of coloured image to stitching image is obtained into result images by color pass-algorithm.
Preferably, further include before step S1:Step S0;
S0:Obtain the background image and the coloured image for carrying out color transmission for carrying out that background is pieced together.
The present invention provides a kind of image processing apparatus, including:
Image extraction unit, for extracting the area-of-interest in original image by ROI extraction algorithms;
Background pieces unit together, is spliced for piecing the area-of-interest of original image together with background image progress background Image;
Color transfer unit, for being tied the color conversion of coloured image to stitching image by color pass-algorithm Fruit image.
Preferably, further include:Image acquisition unit;
Image acquisition unit carries out the background image and the coloured image for carrying out color transmission that background is pieced together for obtaining.
As can be seen from the above technical solutions, the present invention has the following advantages:
The present invention provides a kind of image processing methods, including:S1:It is extracted in original image by ROI extraction algorithms Area-of-interest;S2:The area-of-interest of original image and background image are carried out background to piece together to obtain stitching image;S3:It is logical It crosses color pass-algorithm and the color conversion of coloured image to stitching image is obtained into result images.
Image processing method in the present invention can be extracted by ROI (region of interest, area-of-interest) The area-of-interest of algorithm extraction original image is simultaneously pieced together with background image, replaces background according to the hobby of user, so Color conversion is carried out according to color pass-algorithm again afterwards, whole color can only be carried out to original image with current color Transfer Technology Coloured silk change is compared, and in the case where not influencing the expression of image body matter, improves the flexibility ratio of image color matching so that color matching side More lively changeable, the more personalized of case, adds the interest of image color matching, solves current image procossing scheme list It adjusts, it is difficult to the technical issues of meeting multiple demand of the people for image procossing.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow diagram of one embodiment of image processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of one embodiment of image processing apparatus provided in an embodiment of the present invention
Fig. 3 is the first exemplary plot that background provided in an embodiment of the present invention is pieced together;
Fig. 4 is the second exemplary plot that background provided in an embodiment of the present invention is pieced together.
Specific implementation mode
An embodiment of the present invention provides a kind of image processing method and devices, solve current image procossing scheme list It adjusts, it is difficult to the technical issues of meeting multiple demand of the people for image procossing.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention Range.
It please refers to Fig.1, Fig. 3 and Fig. 4, an embodiment of the present invention provides a kind of one embodiment of image processing method, packets It includes:
Step 101:Obtain the background image and the coloured image for carrying out color transmission for carrying out that background is pieced together;
It should be noted that people occasionally want to handle some images in life, such as one image of self-timer, It is but less satisfied to background and scheme of colour, it is desirable to replace background and scheme of colour.
So the background image needed replacing and the cromogram with the scheme of colour for enabling operator be satisfied with can be obtained first Picture.
Step 102:The area-of-interest in original image is extracted by ROI extraction algorithms;
It should be noted that area-of-interest refers to that can most cause user interest in image, can most show picture material Region.
This image representing method based on area-of-interest has distinguished the significance level in region, eliminates to a certain extent The redundancy of image, highlights the main contents of image.The interference that minor coverage is brought is eliminated, ROI theories are introduced In image analysis, image analysis can be made more targeted.
Can extract the area-of-interest in original image by ROI extraction algorithms, for example, can individually using personage as Area-of-interest extracts.
Step 103:The area-of-interest of original image and background image are carried out background to piece together to obtain stitching image;
It should be noted that be extracted after the area-of-interest of original image, by area-of-interest and background image into Row, which is pieced together, can be obtained stitching image.
By taking Fig. 3 and Fig. 4 as an example, region A is original image, and region B is area-of-interest, and region C is background image, from area Area-of-interest B can be extracted in the A of domain, stitching image can be obtained by then piecing it with region C together.
Step 104:The color conversion of coloured image to stitching image is obtained into result images by color pass-algorithm.
It should be noted that color pass-algorithm can be by the color matching side of a secondary coloured picture (i.e. coloured image, also referred to as source images) Case is automatically transferred to an other sub-picture (i.e. original image, also referred to as target image), and realization carries out color automatically to target image Addition and change transmit result figure to obtain color.
Color transmits the various harmonious color allocation plans of source images, has opened up extensively and has matched color range, has kept color matching more flexible, and This method is realized simply, easy to operate.
The main thought that color transmits is to utilize statistical nature, and by a series of transformation, color class ratio is transformed into On target image, make two images that there is similar statistical information.
Color pass-algorithm be mainly according to the statistical information of overall importance of color catalog image to the color of target image into Row migration, that is, utilize statistical information --- and mean value and standard deviation carry out color correction, are carried out to the respective channel value of target image Offset and scaling, make the statistical value distribution having the same in each channel of two images, to reach the similar of visually color.
When operator is satisfied with the scheme of colour of a certain image, color can be passed through as selected coloured image Color pass-algorithm is by its color conversion to stitching image, the result images after being matched colors again.
Such as the scheme of colour satisfaction of the image of the secondary setting sun of operator couple one, then it can be as selected cromogram Its color conversion to stitching image is obtained result images by picture by color pass-algorithm so that result images and setting sun image Each channel statistical value distribution having the same, it is similar to both make to reach whole visual color.
The Fast transforms that can be used to realize paintings color style by above-mentioned image processing step, to color on black-and-white photograph, Older picture renovates, and the processing of coloured image color effect and correction etc. are pieced together in combination with region of interesting extraction and background, can be made Color transmit result it is more personalized, above-mentioned image processing step also can be used as conventional images processing software colors countenance part What's new and expanded function.
ROI extraction algorithms can be divided into according to the difference of extracting mode:ROI extraction algorithms based on degree of variation are based on inflection point ROI extraction algorithms, the ROI extraction algorithms that pay attention to of the ROI extraction algorithms based on gray scale and view-based access control model.
In image processing process, can according to the concrete condition of original image select one of which ROI extraction algorithms into It exercises and uses.
Image processing method in the present invention can be extracted by ROI extraction algorithms the area-of-interest of original image and with Background image is pieced together, can replace background according to the hobby of user.
The concrete type of ROI extraction algorithms can be selected according to the actual conditions of original image.
And after replacing background, the color conversion of coloured image can be transferred to spliced map by color pass-algorithm Picture.
Color Transfer Technology is in accordance with color pass-algorithm and has done whole color change, whole picture to original image at present The scheme of colour of image is all changed, and effect is more inflexible, underaction, it cannot be guaranteed that color matching result meets everyone Aesthetical standard.
Image processing method in the present embodiment is not influencing the expression of image body matter by extracting area-of-interest In the case of, the background image that replacement meets user's hobby carries out color transmission again, improves the flexibility ratio of image color matching so that More lively changeable, the more personalized of scheme of colour, adds the interest of image color matching.
In conclusion the image processing method of the present embodiment solves current image procossing scheme dullness, it is difficult to meet People for image procossing multiple demand the technical issues of.
It is a kind of one embodiment of image processing method provided in an embodiment of the present invention above, implements below for the present invention A kind of one embodiment for image processing apparatus that example provides.
Referring to Fig. 2, an embodiment of the present invention provides a kind of one embodiment of image processing apparatus, including:
Image extraction unit 201, for extracting the area-of-interest in original image by ROI extraction algorithms;
Background pieces unit 202 together, pieces together to obtain for the area-of-interest of original image to be carried out background with background image Stitching image;
Color transfer unit 203, for being obtained the color conversion of coloured image to stitching image by color pass-algorithm To result images.
Further, further include:Image acquisition unit 200;
Image acquisition unit 200 carries out the background image and the cromogram for carrying out color transmission that background is pieced together for obtaining Picture.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Stating embodiment, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.

Claims (4)

1. a kind of image processing method, which is characterized in that including:
S1:The area-of-interest in original image is extracted by ROI extraction algorithms;
S2:The area-of-interest of original image and background image are carried out background to piece together to obtain stitching image;
S3:The color conversion of coloured image to stitching image is obtained into result images by color pass-algorithm.
2. a kind of image processing method according to claim 1, which is characterized in that further include before step S1:Step S0;
S0:Obtain the background image and the coloured image for carrying out color transmission for carrying out that background is pieced together.
3. a kind of image processing apparatus, which is characterized in that including:
Image extraction unit, for extracting the area-of-interest in original image by ROI extraction algorithms;
Background pieces unit together, pieces together to obtain spliced map for the area-of-interest of original image and background image to be carried out background Picture;
Color transfer unit, for the color conversion of coloured image to stitching image to be obtained result figure by color pass-algorithm Picture.
4. a kind of image processing apparatus according to claim 3, which is characterized in that further include:Image acquisition unit;
Image acquisition unit carries out the background image and the coloured image for carrying out color transmission that background is pieced together for obtaining.
CN201810746159.6A 2018-07-09 2018-07-09 A kind of image processing method and device Pending CN108777783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810746159.6A CN108777783A (en) 2018-07-09 2018-07-09 A kind of image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810746159.6A CN108777783A (en) 2018-07-09 2018-07-09 A kind of image processing method and device

Publications (1)

Publication Number Publication Date
CN108777783A true CN108777783A (en) 2018-11-09

Family

ID=64031372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810746159.6A Pending CN108777783A (en) 2018-07-09 2018-07-09 A kind of image processing method and device

Country Status (1)

Country Link
CN (1) CN108777783A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887366A (en) * 2010-06-01 2010-11-17 云南大学 Digital simulation and synthesis technology with artistic style of Yunnan heavy-color painting
CN102156999A (en) * 2010-02-11 2011-08-17 腾讯科技(深圳)有限公司 Generation method and device thereof for user interface
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103187083A (en) * 2011-12-29 2013-07-03 深圳中兴力维技术有限公司 Storage method and system based on time domain video fusion
CN103473747A (en) * 2013-09-25 2013-12-25 云南大学 Method and device for transmitting colors
CN105430295A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Device and method for image processing
CN105512133A (en) * 2014-09-25 2016-04-20 腾讯科技(深圳)有限公司 Synthetic method and synthetic device for webpage picture, and picture synthesis webpage
CN106803888A (en) * 2017-03-06 2017-06-06 联想(北京)有限公司 The method and electronic equipment of composograph
CN107637072A (en) * 2015-03-18 2018-01-26 阿凡达合并第二附属有限责任公司 Background modification in video conference
CN107862664A (en) * 2017-11-15 2018-03-30 广东交通职业技术学院 A kind of image non-photorealistic rendering method and system
CN107862063A (en) * 2017-11-15 2018-03-30 广东交通职业技术学院 A kind of image color transmission method and system
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108200334A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Image capturing method, device, storage medium and electronic equipment

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156999A (en) * 2010-02-11 2011-08-17 腾讯科技(深圳)有限公司 Generation method and device thereof for user interface
CN101887366A (en) * 2010-06-01 2010-11-17 云南大学 Digital simulation and synthesis technology with artistic style of Yunnan heavy-color painting
CN102348116A (en) * 2010-08-03 2012-02-08 株式会社理光 Video processing method, video processing device and video processing system
CN103187083A (en) * 2011-12-29 2013-07-03 深圳中兴力维技术有限公司 Storage method and system based on time domain video fusion
CN103473747A (en) * 2013-09-25 2013-12-25 云南大学 Method and device for transmitting colors
CN105512133A (en) * 2014-09-25 2016-04-20 腾讯科技(深圳)有限公司 Synthetic method and synthetic device for webpage picture, and picture synthesis webpage
CN107637072A (en) * 2015-03-18 2018-01-26 阿凡达合并第二附属有限责任公司 Background modification in video conference
CN105430295A (en) * 2015-10-30 2016-03-23 努比亚技术有限公司 Device and method for image processing
CN106803888A (en) * 2017-03-06 2017-06-06 联想(北京)有限公司 The method and electronic equipment of composograph
CN107862664A (en) * 2017-11-15 2018-03-30 广东交通职业技术学院 A kind of image non-photorealistic rendering method and system
CN107862063A (en) * 2017-11-15 2018-03-30 广东交通职业技术学院 A kind of image color transmission method and system
CN107958449A (en) * 2017-12-13 2018-04-24 北京奇虎科技有限公司 A kind of image combining method and device
CN108200334A (en) * 2017-12-28 2018-06-22 广东欧珀移动通信有限公司 Image capturing method, device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程琳琳: "图像感兴趣区域提取技术研究", 《广东交通职业技术学院学报》 *

Similar Documents

Publication Publication Date Title
CN110198437B (en) Image processing method and device, storage medium and electronic device
CN106355629A (en) Virtual image configuration method and device
US11010932B2 (en) Method and apparatus for automatic line drawing coloring and graphical user interface thereof
CN107180446A (en) The expression animation generation method and device of character face's model
CN107993131A (en) Wear to take and recommend method, apparatus, server and storage medium
CN104822292A (en) Makeup assistance device, makeup assistance system, makeup assistance method, and makeup assistance program
US10874196B2 (en) Makeup part generating apparatus and makeup part generating method
CN105447902B (en) Animation processing method and device
CN109345612A (en) A kind of image generating method, device, equipment and storage medium
CN106960457B (en) Color painting creation method based on image semantic extraction and doodling
CN107145349A (en) Method for switching theme, device, computer installation and computer-readable recording medium
CN108236784A (en) The training method and device of model, storage medium, electronic device
CN106407423A (en) A makeup guidance method and device based on a terminal apparatus and a terminal apparatus
CN109784180A (en) Drawing practice, device, computer equipment and storage medium based on augmented reality
CN106446283A (en) Page style generating method and device
CN109242775A (en) A kind of attribute information moving method, device, equipment and readable storage medium storing program for executing
CN114549709A (en) User-defined 3D virtual image generation system and method
CN114419202A (en) Virtual image generation method and system
CN101976194A (en) Method and device for setting user interface
CN108777783A (en) A kind of image processing method and device
CN107180453A (en) The edit methods and device of character face's model
CN106251316B (en) The restorative procedure and device of photo
CN110276657A (en) Determination method, apparatus, storage medium and the electronic device of target object
Fischer et al. Imaginenet: restyling apps using neural style transfer
AU2022286819A1 (en) Moment-based gifts and designs generated using a digital product collaboration platform

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: 20181109

RJ01 Rejection of invention patent application after publication