CN105592266A - Bokeh image processing method and system - Google Patents

Bokeh image processing method and system Download PDF

Info

Publication number
CN105592266A
CN105592266A CN201510971228.XA CN201510971228A CN105592266A CN 105592266 A CN105592266 A CN 105592266A CN 201510971228 A CN201510971228 A CN 201510971228A CN 105592266 A CN105592266 A CN 105592266A
Authority
CN
China
Prior art keywords
focal length
focal
grade
several
fuzzy algorithmic
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
CN201510971228.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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN201510971228.XA priority Critical patent/CN105592266A/en
Publication of CN105592266A publication Critical patent/CN105592266A/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/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/682Vibration or motion blur correction

Abstract

The invention relates to the technical field of image processing and provides a Bokeh image processing method and system. The method comprises the following steps of: defining a focal length corresponding to a focused object selected by a photographer in a Bokeh image as a master focal length; defining focal lengths corresponding to a plurality of objects except the focused member in the Bokeh image as slave focal lengths; according to a focal length grade of the slave focal lengths, calling a fuzzy algorithm corresponding to the focal length grade of the slave focal lengths to perform image fuzzy processing on the objects corresponding to the slave focal lengths. The method and the system prevents a phenomenon that the Bokeh image has a pseudo image and enable the processed Bokeh image to be real and natural.

Description

A kind of loose scape image processing method and system
Technical field
The invention belongs to technical field of image processing, relate in particular to a kind of loose scape image processing method and system.
Background technology
Along with the update of mobile phone products, camera module develops to both direction, and a direction is high pictureElement direction, another direction is multifunctional application direction. Wherein, dual camera module can rely on two to take the photographThe shooting parallax of picture head produces depth of field information.
The following mode of the general employing of image of taking for terminal devices such as mobile phones is processed, and builds classThe shallow Deep Canvas that is similar to slr camera, is specially: determine focal length J according to the user-selected object of getting, looseIn scape image, the performance state of all objects that focal length is J is state the most clearly, and focal length is not equal to JAll objects all adopt another identical fuzzy algorithmic approach to carry out respective handling to it, its performance state is shadowPicture is fuzzy.
In theory, for the different object of focal length on loose scape image, its clear fog-level also should be different,Focal length is ascending progressively to fog, but the loose scape image after above-mentioned processing mode goes out exists the phenomenon of illusion,Image has synthetic effect.
Summary of the invention
The object of the present invention is to provide a kind of loose scape image processing method, be intended to solve loose scape in prior artThere is the phenomenon of illusion in image, image has the problem of synthetic effect.
The present invention is achieved in that a kind of loose scape image processing method, and described method comprises the steps:
Photographer's selected corresponding focal length of object that focuses in loose scape image is defined as to principal focal distance;
The corresponding focal length of several objects focusing outside object in described loose scape image is defined as from JiaoDistance, wherein, according to described difference between focal length and described principal focal distance, describedly comprises several from focal lengthFocal length grade;
, call with described relative from the residing focal length grade of focal length from the residing focal length grade of focal length according to describedThe fuzzy algorithmic approach of answering is carried out image blurring processing to described from the corresponding object of focal length.
As a kind of improved plan, described method also comprises the steps:
Pre-configured several fuzzy algorithmic approaches, wherein, described fuzzy algorithmic approach comprises described corresponding from focal lengthThe fuzzy algorithmic approach that several are corresponding with described focal length grade.
Another object of the present invention is to provide a kind of loose scape image processing system, described system comprises:
Principal focal distance definition module, for by photographer loose scape image selected to focus object correspondingFocal length is defined as principal focal distance;
From focal length definition module, for focusing several object institutes outside object at described loose scape imageCorresponding focal length is defined as from focal length, wherein, and according to described difference between focal length and described principal focal distance,Describedly comprise several focal length grades from focal length;
Image blurring processing module, for according to described from the residing focal length grade of focal length, call with described fromThe corresponding fuzzy algorithmic approach of the residing focal length grade of focal length is carried out image mould to described from the corresponding object of focal lengthStick with paste and process.
As a kind of improved plan, described system also comprises:
Pre-configured module, for pre-configured several fuzzy algorithmic approaches, wherein, described fuzzy algorithmic approach comprisesDescribed from corresponding several fuzzy algorithmic approaches corresponding with described focal length grade of focal length.
In the present invention, photographer's selected corresponding focal length of object that focuses in loose scape image is definedFor principal focal distance; By the corresponding focal length definition of several objects focusing in described loose scape image outside objectFor from focal length; , call with described from residing focal length of focal length etc. from the residing focal length grade of focal length according to describedThe corresponding fuzzy algorithmic approach of level is to carrying out image blurring processing from the corresponding object of focal length, thereby avoided looseThere is the phenomenon of illusion in scape image, loose scape image after treatment is comparatively true, nature.
Brief description of the drawings
Fig. 1 is the realization flow figure of loose scape image processing method provided by the invention;
Fig. 2 is the structured flowchart of loose scape image processing system provided by the invention.
Detailed description of the invention
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and realityExecute example, the present invention is further elaborated. Only should be appreciated that specific embodiment described hereinOnly, in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the realization flow figure of loose scape image processing method provided by the invention, the step that it is concreteAs described below:
In step S101, photographer's selected corresponding focal length of object that focuses in loose scape image is determinedJustice is principal focal distance.
In step S102, will in loose scape image, focus the corresponding focal length of several objects outside objectBe defined as from focal length, wherein, according to the difference between focal length and principal focal distance, comprise several Jiao from focal lengthApart from grade.
Wherein, above-mentioned principal focal distance and the differentiation from focal length determine according to choosing of user's focal length, and,Can determine according to the quantity of object loose scape image from the arranging of quantity of focal length, not repeat them here.
In step S103, according to from the residing focal length grade of focal length, call with from residing focal length of focal length etc.The corresponding fuzzy algorithmic approach of level is to carrying out image blurring processing from the corresponding object of focal length.
From above-mentioned steps, S104 finds out, in loose scape image from the different object of focal length, adopt respectively differentFuzzy algorithmic approach carry out Fuzzy Processing, its fog-level depends on poor from focal length and principal focal distance, difference is largerFog-level is high, thereby makes the shooting effect of whole loose scape image truer, and stereovision is better.
Wherein, before carrying out above-mentioned steps S101, also need to carry out following steps:
Pre-configured several fuzzy algorithmic approaches, wherein, this fuzzy algorithmic approach comprise from focal length corresponding severalThe fuzzy algorithmic approach corresponding with described focal length grade joined multiple fuzzy algorithmic approaches that is: in advance, and each is from focal lengthA corresponding fuzzy algorithmic approach;
This each pre-configured fuzzy algorithmic approach stores into respectively in corresponding memory device, during in order to use, entersRow calls.
For convenience of explanation, followingly provide a concrete example and describe:
Supposing has four objects on certain loose scape image, is designated as respectively object 1, object 2, object 3 and object4, object 1, object 2, object 3 and the corresponding focal length of object 4 are respectively focal length A, focal length B, focal lengthC and focal length D;
In the time that user chooses the object 1 of focal length A, focus object by object 1 conduct, by focal length A bePrincipal focal distance, focal length B, focal length C and focal length D are from focal length so;
The difference of focal length B, focal length C and focal length D and focal length A progressively increases;
Focal length B, focal length C and fuzzy algorithmic approach corresponding to focal length D are respectively fuzzy algorithmic approach 1, fuzzy algorithmic approach 2With fuzzy algorithmic approach 3, its processing procedure is:
Call fuzzy algorithmic approach 1 object 2 is carried out to Fuzzy Processing, its fog-level is low;
Call fuzzy algorithmic approach 2 object 3 is carried out to Fuzzy Processing, during its fog-level is;
Call fuzzy algorithmic approach 3 object 4 is carried out to Fuzzy Processing, its fog-level is high;
From the above, in said method loose scape image after treatment, object 1 is the most clear, object 2,The fog-level of object 3 and object 4 is progressively deepened, and stereovision is stronger, and the sense of reality is good, is more close to single anti-The shooting effect of camera.
Above are only a specific implementation example of the present invention, need not limit the present invention at this.
Fig. 2 shows the structured flowchart of the loose scape image processing system that the embodiment of the present invention provides, for the ease ofIllustrate, in figure, only provided the part relevant to the embodiment of the present invention.
Principal focal distance definition module 11 for by photographer loose scape image selected to focus object correspondingFocal length is defined as principal focal distance; From focal length definition module 12 for focusing outside object at described loose scape imageThe corresponding focal length of several objects be defined as from focal length, wherein, according to described from focal length and described main JiaoApart between difference, describedly comprise several focal length grades from focal length; Image blurring processing module 13 is for root, call with described from the corresponding mould of the residing focal length grade of focal length from the residing focal length grade of focal length according to describedStick with paste algorithm and carry out image blurring processing to described from the corresponding object of focal length.
Wherein, pre-configured module 14 is for pre-configured several fuzzy algorithmic approaches, wherein, and described fuzzy calculationMethod comprises from corresponding several fuzzy algorithmic approaches corresponding with described focal length grade of focal length.
The concrete realization flow of the modules shown in above-mentioned Fig. 2 is recorded as above-mentioned embodiment of the method,This repeats no more.
In the present invention, photographer's selected corresponding focal length of object that focuses in loose scape image is definedFor principal focal distance; By the corresponding focal length definition of several objects focusing in described loose scape image outside objectFor from focal length; According to from the residing focal length grade of focal length, call with described from the residing focal length grade of focal length phaseCorresponding fuzzy algorithmic approach is to carrying out image blurring processing from the corresponding object of focal length, thereby avoided loose scape figureThere is the phenomenon of illusion in picture, loose scape image after treatment is comparatively true, nature.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, not all at thisAny amendment of doing within bright spirit and principle, be equal to and replace and improvement etc., all should be included in the present inventionProtection domain within.

Claims (4)

1. a loose scape image processing method, is characterized in that, described method comprises the steps:
Photographer's selected corresponding focal length of object that focuses in loose scape image is defined as to principal focal distance;
The corresponding focal length of several objects focusing outside object in described loose scape image is defined as from JiaoDistance, wherein, according to described difference between focal length and described principal focal distance, describedly comprises several from focal lengthFocal length grade;
, call with described relative from the residing focal length grade of focal length from the residing focal length grade of focal length according to describedThe fuzzy algorithmic approach of answering is carried out image blurring processing to described from the corresponding object of focal length.
2. loose scape image processing method according to claim 1, is characterized in that, described method is also wrappedDraw together following step:
Pre-configured several fuzzy algorithmic approaches, wherein, described fuzzy algorithmic approach comprises described corresponding from focal lengthThe fuzzy algorithmic approach that several are corresponding with described focal length grade.
3. a loose scape image processing system, is characterized in that, described system comprises:
Principal focal distance definition module, for by photographer loose scape image selected to focus object correspondingFocal length is defined as principal focal distance;
From focal length definition module, for focusing several object institutes outside object at described loose scape imageCorresponding focal length is defined as from focal length, wherein, and according to described difference between focal length and described principal focal distance,Describedly comprise several focal length grades from focal length;
Image blurring processing module, for according to described from the residing focal length grade of focal length, call with described fromThe corresponding fuzzy algorithmic approach of the residing focal length grade of focal length is carried out image mould to described from the corresponding object of focal lengthStick with paste and process.
4. loose scape image processing system according to claim 3, is characterized in that, described system is also wrappedDraw together:
Pre-configured module, for pre-configured several fuzzy algorithmic approaches, wherein, described fuzzy algorithmic approach comprisesDescribed from corresponding several fuzzy algorithmic approaches corresponding with described focal length grade of focal length.
CN201510971228.XA 2015-12-22 2015-12-22 Bokeh image processing method and system Pending CN105592266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510971228.XA CN105592266A (en) 2015-12-22 2015-12-22 Bokeh image processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510971228.XA CN105592266A (en) 2015-12-22 2015-12-22 Bokeh image processing method and system

Publications (1)

Publication Number Publication Date
CN105592266A true CN105592266A (en) 2016-05-18

Family

ID=55931447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510971228.XA Pending CN105592266A (en) 2015-12-22 2015-12-22 Bokeh image processing method and system

Country Status (1)

Country Link
CN (1) CN105592266A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090160963A1 (en) * 2007-12-21 2009-06-25 Samsung Techwin Co., Ltd. Apparatus and method for blurring image background in digital image processing device
CN101764925A (en) * 2008-12-25 2010-06-30 华晶科技股份有限公司 Simulation method for shallow field depth of digital image
CN103795934A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Image processing method and electronic device
CN104253939A (en) * 2013-06-27 2014-12-31 聚晶半导体股份有限公司 Focusing position adjusting method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090160963A1 (en) * 2007-12-21 2009-06-25 Samsung Techwin Co., Ltd. Apparatus and method for blurring image background in digital image processing device
CN101764925A (en) * 2008-12-25 2010-06-30 华晶科技股份有限公司 Simulation method for shallow field depth of digital image
CN104253939A (en) * 2013-06-27 2014-12-31 聚晶半导体股份有限公司 Focusing position adjusting method and electronic device
CN103795934A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Image processing method and electronic device

Similar Documents

Publication Publication Date Title
EP2947627B1 (en) Light field image depth estimation
CN104363379B (en) The method and terminal taken pictures using different focal camera
CN105847664B (en) A kind of method and apparatus that mobile terminal is taken pictures
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
US20190073749A1 (en) Method and apparatus for image processing
CN104346157A (en) Picture processing method and device and terminal equipment
CN103856719A (en) Photographing method and terminal
CN104580922A (en) Control method and device for supplemental lighting during shooting
CN106210542A (en) The method of a kind of photo synthesis and terminal
US9538066B2 (en) Information processing method and electronic device
CN105163047A (en) HDR (High Dynamic Range) image generation method and system based on color space conversion and shooting terminal
CN104767938A (en) Photo shooting method and device
CN104869346A (en) Method and electronic equipment for processing image in video call
CN104918112B (en) The application process and device of camera resource
CN105227847A (en) A kind of camera photographic method of mobile phone and system
EP3226546A1 (en) Brightness compensation method and device, and computer storage medium
CN104184935A (en) Image shooting device and method
US20130093850A1 (en) Image processing apparatus and method thereof
CN105139337A (en) Picture generation method and device
CN110223228A (en) Image processing method, device, terminal device and storage medium
CN111311481A (en) Background blurring method and device, terminal equipment and storage medium
CN104657946A (en) Image filtering processing method and device for quickly realizing multiple effects
CN105371839A (en) Whole scene preview method of map navigation route
CN104345423A (en) Image collecting method and image collecting equipment
CN104935709A (en) Method and device for achieving lens compatibility

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant after: Goertek Inc.

Address before: 261031 Dongfang Road, Weifang high tech Industrial Development Zone, Shandong, China, No. 268

Applicant before: Goertek Inc.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160518