CN108419028A - Image processing method, device, computer readable storage medium and electronic equipment - Google Patents

Image processing method, device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN108419028A
CN108419028A CN201810231620.4A CN201810231620A CN108419028A CN 108419028 A CN108419028 A CN 108419028A CN 201810231620 A CN201810231620 A CN 201810231620A CN 108419028 A CN108419028 A CN 108419028A
Authority
CN
China
Prior art keywords
light efficiency
according
image
model
light
Prior art date
Application number
CN201810231620.4A
Other languages
Chinese (zh)
Inventor
袁全
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201810231620.4A priority Critical patent/CN108419028A/en
Publication of CN108419028A publication Critical patent/CN108419028A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/001Image restoration
    • G06T5/005Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/007Dynamic range modification

Abstract

This application involves a kind of image processing method, device, computer readable storage medium and electronic equipments.The method includes:Obtain the central pixel point in the pending image selected according to triggering command;Obtaining light efficiency according to the central pixel point enhances model, and the light efficiency enhancing model is the model changed as light source analogy light intensity using the central pixel point;Enhance the light efficiency enhancing coefficient that model calculates each pixel in the pending image according to the light efficiency;Enhance coefficient according to the light efficiency and light efficiency enhancing processing is carried out to each pixel in the pending image.Above-mentioned image processing method, device, computer readable storage medium and electronic equipment can carry out light efficiency enhancing processing to pending image according to central pixel point, carry out image procossing according to the demand of user, improve the usage rate of the user of electronic equipment.

Description

Image processing method, device, computer readable storage medium and electronic equipment

Technical field

This application involves field of computer technology, more particularly to a kind of image processing method, device, computer-readable deposit Storage media and electronic equipment.

Background technology

Intelligent terminal can generate image in real time by camera, image can also be downloaded by network, or by outer Portion's equipment imports image.If the image obtained cannot meet individual requirements, user can also be according to the hobby of oneself to obtaining The image taken carries out post-processing.For example, the overall brightness of image can be adjusted, can also to the noise in image into Row Weakening treatment, or U.S. face processing is carried out to the portrait in image.

Invention content

A kind of image processing method of the embodiment of the present application offer, device, computer readable storage medium and electronic equipment, can To improve usage rate of the user.

A kind of image processing method, the method includes:

Obtain the central pixel point in the pending image selected according to triggering command;

Obtaining light efficiency according to the central pixel point enhances model, and the light efficiency enhancing model is with the central pixel point For the model of light source analogy light intensity variation;

Enhance the light efficiency enhancing coefficient that model calculates each pixel in the pending image according to the light efficiency;

Enhance coefficient according to the light efficiency and light efficiency enhancing processing is carried out to each pixel in the pending image.

A kind of image processing apparatus, described device include:

Center acquisition module, for obtaining the central pixel point in the pending image selected according to triggering command;

Model acquisition module enhances model for obtaining light efficiency according to the central pixel point, and the light efficiency enhances model It is the model changed as light source analogy light intensity using the central pixel point;

Coefficient acquisition module calculates each pixel in the pending image for enhancing model according to the light efficiency Light efficiency enhances coefficient;

Enhance processing module, each pixel in the pending image is clicked through for enhancing coefficient according to the light efficiency Row light efficiency enhancing is handled.

A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:

Obtain the central pixel point in the pending image selected according to triggering command;

Obtaining light efficiency according to the central pixel point enhances model, and the light efficiency enhancing model is with the central pixel point For the model of light source analogy light intensity variation;

Enhance the light efficiency enhancing coefficient that model calculates each pixel in the pending image according to the light efficiency;

Enhance coefficient according to the light efficiency and light efficiency enhancing processing is carried out to each pixel in the pending image.

A kind of electronic equipment, including memory and processor store computer-readable instruction in the memory, described When instruction is executed by the processor so that the processor executes following steps:

Obtain the central pixel point in the pending image selected according to triggering command;

Obtaining light efficiency according to the central pixel point enhances model, and the light efficiency enhancing model is with the central pixel point For the model of light source analogy light intensity variation;

Enhance the light efficiency enhancing coefficient that model calculates each pixel in the pending image according to the light efficiency;

Enhance coefficient according to the light efficiency and light efficiency enhancing processing is carried out to each pixel in the pending image.

Above-mentioned image processing method, device, computer readable storage medium and electronic equipment can be obtained according to triggering command The central pixel point in pending image is taken, determines that light efficiency enhances model further according to central pixel point.Enhance model according to light efficiency The light efficiency enhancing coefficient that each pixel in pending image can be calculated, can be right according to the light enhancing coefficient being calculated Each pixel in pending image carries out light efficiency enhancing processing.It can select to wait locating according to the triggering command received in this way Pixel centered on any one pixel in reason image, and light efficiency increasing is carried out to pending image according to central pixel point Strength is managed, and can be carried out image procossing according to the demand of user, be improved the usage rate of the user of electronic equipment.

Description of the drawings

In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.

Fig. 1 is the applied environment figure of image processing method in one embodiment;

Fig. 2 is the flow chart of image processing method in one embodiment;

Fig. 3 is the flow chart of image processing method in another embodiment;

Fig. 4 is the schematic diagram that light efficiency enhances model in one embodiment;

Fig. 5 is the flow chart of image processing method in another embodiment;

Fig. 6 is the flow chart of image processing method in another embodiment;

Fig. 7 is the structural schematic diagram of image processing apparatus in one embodiment;

Fig. 8 is the schematic diagram of image processing circuit in one embodiment.

Specific implementation mode

It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.

It is appreciated that term " first " used in this application, " second " etc. can be used to describe herein various elements, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both client, but it is not same visitor Family end.

Fig. 1 is the applied environment figure of image processing method in one embodiment.As shown in Figure 1, being wrapped in the applied environment figure Containing user 102 and terminal 104.Pending image can be shown in terminal 104, user 102 can pass through triggering command Arbitrary region in the pending image shown to terminal 104 selects.Wherein, triggering command can be grasped according to touch-control Work, physical button operation, voice-controlled operations shake the initiations such as operation.After terminal 104 detects triggering command, obtain According to the light efficiency central area of the pending image of triggering command selection, and central pixel point is determined according to light efficiency central area; Obtaining light efficiency according to central pixel point enhances model;Enhance the light that model calculates each pixel in pending image according to light efficiency Effect enhancing coefficient;Enhance coefficient according to light efficiency and light efficiency enhancing processing is carried out to each pixel in pending image.Wherein, eventually End 102 is, in computer network outermost, is mainly used for input user information and exports the electronic equipment of handling result, example Such as can be PC, mobile terminal, personal digital assistant, wearable electronic.It is understood that the application carries In the other embodiment of confession, the application environment of the image processing method can include only terminal 102.

Fig. 2 is the flow chart of image processing method in one embodiment.As shown in Fig. 2, the image processing method includes step Rapid 202 to step 208.Wherein:

Step 202, the central pixel point in the pending image selected according to triggering command is obtained.

In one embodiment, user's scene during shooting is often extremely complex, especially photographed scene Light it is complicated and changeable, and user can not change photographed scene in shooting process, therefore can only be reached by post-processing The effect wanted to user.Pending image refers to the image for needing to carry out light efficiency enhancing processing, and light efficiency is a kind of simulated light The image enhancement processing of source effect.Specifically, light source effect can be natural light, stage light applications, film studio light, film light, profile Light and other effects.After light source sends out light, light can be around diffused centered on light source, and the intensity of light can be with Increase with light source distance and weaken.Central pixel point is the corresponding pixel of light source center.

Pending image is made of several pixels, this several pixel is according to certain aligned transfer at one A two-dimensional pixel dot matrix.It can be by pixel quantity of the pending image on each horizontal direction or longitudinal direction come table Show that the resolution ratio of pending image, position of the pixel in pending image can also carry out table by a two-dimensional coordinate Show.For example, the resolution ratio of image can be 320*640, then it represents that the image includes 320 pixels on each horizontal direction Point includes 640 pixels on each longitudinal direction.If establishing coordinate as origin using the pixel in the most lower left corner of image System, then can be indicated the position of any one pixel in image by a two-dimensional coordinate.

Electronic equipment can obtain pending image, and pending image is shown.User can set according to electronics The pending image of standby display selects central pixel point.Specifically, which can be in electronic equipment shooting figure Preview image in the previews of picture can also be to be prestored in the image or electronic equipment that electronic equipment is shot Image, do not limit herein.The triggering command can be touch control operation, the pressing operation of physical button, voice-controlled operations Or to trigger actions such as the shaking operations of mobile terminal.Touch control operation, which has, to be touched clicking operation, touches long press operation, touches sliding Operation, multi-point touch operation etc., wherein it is the touch pressing operation more than preset duration to touch long press operation.

Step 204, obtaining light efficiency according to central pixel point enhances model, and it is using central pixel point as light that light efficiency, which enhances model, Simulate the model of light intensity variation in source.

Light efficiency enhancing model refers to the model that light efficiency enhancing processing is carried out to pending image, which enhances model can be with The curve for the light intensity variation that analog light source is sent out.Obtaining light efficiency according to central pixel point enhances model, i.e., by imago in this Vegetarian refreshments simulates the model of the light intensity variation of each pixel position as light source.It can be advance in electronic equipment Storing light efficiency enhances reference model, and it can be using any one reference image vegetarian refreshments in image as light source which, which enhances reference model, Model.After getting central pixel point, displacement of the central pixel point with respect to reference image vegetarian refreshments can be obtained, and light efficiency is increased Strong reference model carries out obtaining the corresponding light efficiency enhancing model of the central pixel point after displacement.

For example, it is P (x, y), light efficiency enhancing ginseng that can prestore a light efficiency enhancing reference model in electronic equipment Model is examined using the reference image vegetarian refreshments that coordinate is (0,0) as the model of light source.Assuming that the central pixel point chosen is (x0,y0) if, So the central pixel point is just (- x relative to the displacement of reference image vegetarian refreshments0,-y0), then obtained according to the displacement this in imago The corresponding light efficiency enhancing model of vegetarian refreshments is just P (x-x0,y-y0).Obtained light efficiency enhancing model P (x-x0,y-y0) in, be exactly with Central pixel point (x0,y0) be light source light efficiency enhance model.

Pending image can be the RGB image being made of RGB triple channels, can also be the monochrome being made of a channel Image.If pending image is RGB image, each pixel in pending image has corresponding RGB tri- logical Road value.If the light source effect of simulation is different, the color that light generates may be different, then respectively to the enhancing system of RGB triple channels Number will be different.For example, the color of sunlight can partially yellow, stage light applications color can be motley.Specifically, Ke Yigen It obtains the corresponding light efficiency enhancing model of RGB triple channels respectively according to central pixel point, and model is enhanced according to light efficiency and calculates separately RGB The corresponding light efficiency of triple channel enhances coefficient.

Step 206, the light efficiency enhancing coefficient that model calculates each pixel in pending image is enhanced according to light efficiency.

In embodiment provided by the present application, light efficiency enhancing model can simulate strong using central pixel point as the light of light source Weak variation, then the light efficiency enhancing coefficient of each pixel in pending image can be calculated by enhancing model according to light efficiency.Light efficiency Enhancing coefficient is the parameter that light efficiency enhancing processing is carried out to each pixel.Position usually remoter from light source position, light Decaying is more.Correspondingly, pixel remoter with a distance from central pixel point in pending image, light efficiency enhancing coefficient is smaller, root According to the light efficiency enhancing coefficient of acquisition light efficiency enhancing processing can be carried out to each pixel.

Step 208, coefficient is enhanced according to light efficiency and light efficiency enhancing processing is carried out to each pixel in pending image.

Light efficiency enhancing processing refers to the processing for enhancing the brightness of image.It, can after calculating light efficiency enhancing coefficient Light efficiency enhancing processing is carried out to each pixel in pending image to enhance coefficient according to light efficiency.Light efficiency can specifically be passed through Enhancing coefficient is overlapped to pending image or the mode of product carries out light efficiency enhancing processing.It is understood that in image Pixel value value range be generally [0,255], therefore by light efficiency enhancing processing after pending image pixel Value cannot be more than 255.

For example, it is assumed that pending image is H0(x, y), it is P (x, y) that light efficiency, which enhances model, then is carried out by stacked system Pending image H (x, y) after light efficiency enhancing processing can be expressed as H (x, y)=(1+P (x, y)) H0(x, y) passes through The mode of product carries out light efficiency enhancing, and treated that pending image can be expressed as H (x, y)=P (x, y) H0(x,y).It can With understanding, light efficiency enhancing processing, which can also be, otherwise to be realized, is not limited herein.

Specifically, the light efficiency enhancing system that model calculates the corresponding RGB triple channels of each pixel can be enhanced according to light efficiency Number, then light efficiency enhancing processing can be carried out to the RGB triple channels of each pixel respectively by enhancing coefficient according to light efficiency.To each logical After road carries out the light efficiency enhancing processing of varying strength, obtained image light efficiency enhancing effect can be the same.For example, the RGB obtained In the corresponding light efficiency enhancing coefficient of triple channel, the corresponding light efficiency enhancing coefficient in the channels R is more than the light efficiency enhancing of the channels G and channel B Coefficient, then after enhancing coefficient to the progress light efficiency enhancing processing of pending image according to the light efficiency of acquisition, obtained light efficiency increases The strong relatively pending image of image is exactly the effect of inclined feux rouges.

The image processing method that above-described embodiment provides, can obtain the light efficiency center of pending image according to triggering command Region, and central pixel point is determined according to light efficiency central area, determine that light efficiency enhances model further according to central pixel point.According to light Effect enhancing model can calculate the light efficiency enhancing coefficient of each pixel in pending image, be enhanced according to the light being calculated Coefficient can carry out light efficiency enhancing processing to each pixel in pending image.It can be referred in this way according to the triggering received Order selects pixel centered on any one pixel in pending image, and according to central pixel point to pending image Light efficiency enhancing processing is carried out, image procossing can be carried out according to the demand of user, improve the usage rate of the user of electronic equipment.

Fig. 3 is the flow chart of image processing method in another embodiment.As shown in figure 3, the image processing method includes Step 302 is to step 308.Wherein:

Step 302, the central pixel point in the pending image selected according to triggering command is obtained.

In one embodiment, pending image is a two-dimensional pixel dot matrix being made of several pixels, then User can select pixel centered on any one pixel in pending image.Specifically, central pixel point is obtained It can specifically include:The light efficiency central area of the pending image selected according to triggering command is obtained, and according to light efficiency center Domain determines central pixel point.Light efficiency central area is the area carried out to pending image when light efficiency enhancing is handled where light source Domain.It is understood that user in selecting imago vegetarian refreshments when, may be shown by the screen size of electronic equipment, nothing Method accurately chooses central pixel point.Light efficiency central area that then can be where first Selection Center pixel, further according in light efficiency Heart district domain determines central pixel point.The pending image that user can show according to electronic equipment sends out triggering command, the triggering Instruction is for choosing the arbitrary region in pending image.After electronic equipment detects triggering command, basis can be obtained Light efficiency central area in the pending image of triggering command selection.

For example, user can touch pending figure on the screen of the electronic device in the previews of shooting by finger As in position, the region that electronic equipment can be touched according to user's finger, and using user's finger touch region as Light efficiency central area.After determining light efficiency central area, central pixel point can be determined according to light efficiency central area.Specifically, may be used To obtain in light efficiency central area pixel centered on any one pixel, light efficiency central area centre bit can also be obtained Pixel centered on the pixel set, does not limit in the present embodiment.Get selected according to triggering command it is pending After the light efficiency central area of image, light efficiency central area can also be amplified to display, then again by input by user It chooses instruction and determines central pixel point in center.

Step 304, dimensional gaussian distribution function is obtained, using central pixel point as the maximum of dimensional gaussian distribution function Point structure light efficiency enhances model.

Specifically, light efficiency enhancing model can be built according to dimensional gaussian distribution function.Dimensional Gaussian is obtained first Distribution function is as follows:

Wherein, (x, y) indicates the two-dimensional coordinate of any pixel point in pending image, and d is constant.Above-mentioned function be with (0,0) it is the dimensional gaussian distribution function of maximum point, then the light efficiency enhancing model obtained according to central pixel point is will be upper It states dimensional gaussian distribution function and carries out displacement, the maximum point of above-mentioned dimensional gaussian distribution function is moved to central pixel point Position can be obtained light efficiency enhancing model.Assuming that central pixel point is (xo,yo), then the light efficiency enhancing model obtained can table It is shown as:

In obtained light efficiency enhancing model, central pixel point (xo,yo) be just maximum point, i.e., in central pixel point (xo, yo) obtain light efficiency enhancing FACTOR Po(x, y) is maximum.Can adjust light efficiency according to above-mentioned constant d enhances the intensity of coefficient.

Fig. 4 is the schematic diagram that light efficiency enhances model in one embodiment.As shown in figure 4, waiting locating in light efficiency enhancing model The resolution ratio for managing image is 50*50, and the coordinate value of central pixel point 402 is (25,25).It can be seen that the central pixel point 402 Corresponding light efficiency enhancing coefficient is maximum, in pending image the corresponding light efficiency enhancing coefficient of other pixels with center pixel It puts the increase of 402 distance and reduces, the remoter pixel with a distance from central pixel point 402, corresponding light efficiency enhances coefficient It is smaller.

Step 306, the light efficiency enhancing coefficient that model calculates each pixel in pending image is enhanced according to light efficiency.

It is understood that pending image is a two-dimensional pixel dot matrix, it can be with the most lower-left of pending image Angle pixel is that origin establishes coordinate system, and the pixel in pending image can be indicated by a two-dimensional coordinate. Enhancing model according to above-mentioned light efficiency and can obtaining the light efficiency of each pixel in pending image enhances coefficient, can directly will be each The corresponding coordinate of a pixel is brought into above-mentioned light efficiency enhancing model, obtains the light efficiency enhancing coefficient of pixel.

Step 308, the portrait area in pending image is detected, enhancing coefficient according to light efficiency will be each in portrait area Pixel carries out light efficiency enhancing processing.

Specifically, user generally compares the region where concern portrait, then carrying out light efficiency processing to pending image When, light efficiency processing can be carried out just for portrait area, the region except portrait area can not handle, can also carry out Weakening treatment.Portrait area refers to the region where portrait in pending image, can be first to the face area in pending image Domain is detected, and extracts portrait area according to the human face region of detection.

Specifically, the human face region of pending image can be obtained by Face datection algorithm, Face datection algorithm can be with Include detection method based on geometric properties, feature face detecting method, linear discriminant analysis method, be based on hidden markov model Detection method etc., does not limit herein.Usually, by image acquisition device image when, figure can be obtained simultaneously As corresponding depth map, the pixel in depth map is corresponding with the pixel in image.Pixel in depth map indicates image The depth information of middle respective pixel, depth information are depth information of the corresponding object of pixel to image collecting device.Example Such as, depth information can be obtained by dual camera, the corresponding depth information of obtained pixel can be 1 meter, 2 meters or 3 meters etc..Portrait area is then obtained to can specifically include:Obtain pending image and corresponding depth information;Detect pending figure Human face region as in, and according to human face region and depth information, obtain the portrait area in pending image.It is generally acknowledged that people As with face on same vertical plane, the depth of the depth information of portrait to image collecting device and face to image collecting device The value of information is spent in same range.Therefore, after obtaining human face region, human face region correspondence can be obtained from depth map Depth information, the corresponding depth information of portrait area then can be obtained according to the corresponding depth information of human face region, then The portrait area in pending image can be got according to the corresponding depth information of portrait area.It is understood that may be used also To obtain portrait area by other methods, in the present embodiment without limiting.Such as artificial intelligence, area can also be passed through The methods of domain growth method obtains portrait area.

After detecting the portrait area in pending image, coefficient can be enhanced according to light efficiency, light is carried out to portrait area Imitate enhancing processing.Other regions in addition to portrait area can be not processed, and can also carry out Weakening treatment.For example, can be with The pixel value of the pixel in other regions is all set to 0, or the brightness of the pixel in other regions is reduced, it can also be by other The pixel in region carries out virtualization processing etc., does not limit in the present embodiment.

In one embodiment, when obtaining pending image, the portrait of passerby may be captured, it can basis The area of portrait judges it is passerby's picture and owner's picture.The larger portrait of area is considered as owner's picture, the smaller portrait of area It is considered as passerby's picture, it, can be just for owner as handling when carrying out light efficiency enhancing processing to portrait.Then to people The step of being handled as region can also include:

Step 502, region area is more than the portrait area of area threshold as mesh by the region area for obtaining portrait area Mark portrait area.

Portrait area is made of several pixels in pending image, the pixel for including in portrait area Quantity is more, indicates that the area of portrait area is bigger.Then the area of portrait area can pass through pixel quantity wherein included It is indicated, the ratio of the pixel quantity and the pixel total quantity of pending image that include in portrait area can also be passed through It is identified, does not limit in the present embodiment.

Step 504, coefficient is enhanced according to light efficiency and each pixel in target portrait area is subjected to light efficiency enhancing processing.

The portrait area that region area is more than to area threshold is carried out as target portrait area, and by target portrait area Light efficiency enhancing is handled, then the smaller portrait area of region area is just weakened, so that target portrait area is more prominent Go out.

In embodiment provided by the present application, the light efficiency processing intensity of light efficiency strength model can be adjusted, according to light The light efficiency strength factor obtained according to light efficiency strength model can be adjusted in effect intensity factor.That is light efficiency intensity factor takes Value is different, and the light efficiency strength factor of the corresponding each pixel obtained is different.Specifically, light efficiency intensity factor, root can be obtained Obtaining light efficiency according to light efficiency intensity factor and central pixel point enhances model, which is that influence light efficiency enhancing processing is strong The parameter of degree.

Light efficiency enhancing processing is carried out to pending image, the brightness of pending image can be improved.Assuming that pending Image is brighter, then if carrying out light efficiency enhancing processing to pending image again, will result in pending image serious distortion. Specifically, the intensity of light efficiency enhancing processing can be adjusted according to the brightness of pending image.Obtain the brightness of pending image Data obtain light efficiency intensity factor according to brightness data.Brightness data refers to the data for the brightness for indicating pending image, according to Brightness data obtains light efficiency intensity factor.Can be that light efficiency intensity factor is obtained according to the average brightness value of pending image, It can be that light efficiency intensity factor is obtained according to maximum brightness value, can also be and light is obtained according to the average brightness value of portrait area Intensity factor is imitated, in the present embodiment without limiting.

In one embodiment, include according to the specific steps of brightness data acquisition light efficiency intensity factor:

Step 602, reference image vegetarian refreshments is obtained according to brightness data, and obtains the interval of reference image vegetarian refreshments and central pixel point Distance.

Step 604, light efficiency intensity factor is obtained according to spacing distance.

Specifically, the maximum pixel of brightness value in pending image can be obtained to be used as with reference to pixel, and obtain ginseng Examine pixel and the spacing distance of central pixel point;Light efficiency intensity factor is obtained according to spacing distance.It is understood that with reference to Pixel is point most bright in pending image, and central pixel point is the corresponding maximum pixel of light efficiency strength factor.From center The distance of pixel is remoter, and corresponding light efficiency strength factor is with regard to smaller.So reference image vegetarian refreshments is got over a distance from central pixel point Far, corresponding light efficiency strength factor is with regard to smaller, and influence of the light efficiency enhancing processing to reference image vegetarian refreshments is with regard to smaller.It therefore can basis Reference image vegetarian refreshments and the spacing distance of central pixel point obtain light efficiency intensity factor, and spacing distance is bigger, light efficiency intensity factor It is bigger.Specifically, the corresponding brightness value of reference image vegetarian refreshments can also be obtained, according to the brightness value and spacing distance of reference image vegetarian refreshments Obtain light efficiency intensity factor.The brightness value of reference image vegetarian refreshments is lower, spacing distance is bigger, and the corresponding light efficiency intensity factor obtained is got over Greatly.

In other embodiment provided by the present application, brightness value in pending image can also be obtained and be more than luminance threshold Pixel, which is used as, refers to pixel, and obtains the spacing distance of each reference image vegetarian refreshments and central pixel point;According to acquired Minimum value in spacing distance obtains light efficiency intensity factor.When brightness value is more than luminance threshold, it is believed that the pixel mistake It is bright, it can be influenced by light efficiency enhancing processing bigger.Pixel of the brightness value more than luminance threshold can then be obtained as ginseng Pixel is examined, and light efficiency intensity factor is obtained according to the nearest reference image vegetarian refreshments of distance center pixel.

The image processing method that above-described embodiment provides, can obtain the light efficiency center of pending image according to triggering command Region, and central pixel point is determined according to light efficiency central area, determine that light efficiency enhances model further according to central pixel point.According to light Effect enhancing model can calculate the light efficiency enhancing coefficient of each pixel in pending image, be enhanced according to the light being calculated Coefficient can carry out light efficiency enhancing processing to each pixel in pending image.It can be referred in this way according to the triggering received Order selects pixel centered on any one pixel in pending image, and according to central pixel point to pending image Light efficiency enhancing processing is carried out, image procossing can be carried out according to the demand of user, improve the usage rate of the user of electronic equipment.

It should be understood that although each step in the flow chart of Fig. 2,3,5,6 is shown successively according to the instruction of arrow, But these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2,3,5,6 At least part step may include multiple sub-steps either these sub-steps of multiple stages or stage be not necessarily Synchronization executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage also need not Be so carry out successively, but can with other steps either the sub-step of other steps or at least part in stage in turn or Person alternately executes.

Fig. 7 is the structural schematic diagram of image processing apparatus in one embodiment.As shown in fig. 7, the image processing apparatus 700 Including center acquisition module 702, model acquisition module 704, coefficient acquisition module 706 and enhancing processing module 708.Wherein:

Center acquisition module 702, for obtaining the central pixel point in the pending image selected according to triggering command.

Model acquisition module 704 enhances model for obtaining light efficiency according to the central pixel point, and the light efficiency enhances mould Type is the model changed as light source analogy light intensity using the central pixel point.

Coefficient acquisition module 706 calculates each pixel in the pending image for enhancing model according to the light efficiency The light efficiency of point enhances coefficient.

Enhance processing module 708, for enhancing coefficient to each pixel in the pending image according to the light efficiency Point carries out light efficiency enhancing processing.

The image processing apparatus that above-described embodiment provides, can obtain the light efficiency center of pending image according to triggering command Region, and central pixel point is determined according to light efficiency central area, determine that light efficiency enhances model further according to central pixel point.According to light Effect enhancing model can calculate the light efficiency enhancing coefficient of each pixel in pending image, be enhanced according to the light being calculated Coefficient can carry out light efficiency enhancing processing to each pixel in pending image.It can be referred in this way according to the triggering received Order selects pixel centered on any one pixel in pending image, and according to central pixel point to pending image Light efficiency enhancing processing is carried out, image procossing can be carried out according to the demand of user, improve the usage rate of the user of electronic equipment.

In one embodiment, model acquisition module 704 is additionally operable to obtain light efficiency intensity factor, according to the light efficiency intensity The factor and central pixel point, which obtain light efficiency, enhances model, and the light efficiency intensity factor is the ginseng for influencing light efficiency enhancing processing intensity Number.

In one embodiment, model acquisition module 704 is additionally operable to obtain the brightness data of pending image, according to described Brightness data obtains light efficiency intensity factor.

In one embodiment, model acquisition module 704 is additionally operable to obtain reference image vegetarian refreshments according to the brightness data, and Obtain the spacing distance of the reference image vegetarian refreshments and the central pixel point;According to the spacing distance obtain light efficiency intensity because Son.

In one embodiment, model acquisition module 704 is additionally operable to obtain dimensional gaussian distribution function, with the middle imago Vegetarian refreshments enhances model as the maximum point structure light efficiency of the dimensional gaussian distribution function.

In one embodiment, enhancing processing module 708 is additionally operable to detect the portrait area in the pending image, root Each pixel in the portrait area is subjected to light efficiency enhancing processing according to light efficiency enhancing coefficient.

In one embodiment, enhancing processing module 708 is additionally operable to obtain the region area of the portrait area, will be described Region area is more than the portrait area of area threshold as target portrait area;Enhance coefficient by the target according to the light efficiency Each pixel in portrait area carries out light efficiency enhancing processing.

The division of modules is only used for for example, in other embodiments, can will scheme in above-mentioned image processing apparatus As processing unit is divided into different modules as required, to complete all or part of function of above-mentioned image processing apparatus.

The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the processor executes the image processing method of above-described embodiment offer.

A kind of computer program product including instruction, when run on a computer so that computer executes above-mentioned The image processing method that embodiment provides.

The embodiment of the present application also provides a kind of electronic equipment.Above-mentioned electronic equipment includes image processing circuit, at image Managing circuit can utilize hardware and or software component to realize, it may include define ISP (Image Signal Processing, figure As signal processing) the various processing units of pipeline.Fig. 8 is the schematic diagram of image processing circuit in one embodiment.Such as Fig. 8 institutes Show, for purposes of illustration only, only showing the various aspects with the relevant image processing techniques of the embodiment of the present application.

As shown in figure 8, image processing circuit includes ISP processors 840 and control logic device 850.Imaging device 810 captures Image data handled first by ISP processors 840, ISP processors 840 to image data analyzed with capture can be used for really The image statistics of fixed and/or imaging device 810 one or more control parameters.Imaging device 810 may include thering is one The camera of a or multiple lens 812 and imaging sensor 814.Imaging sensor 814 may include colour filter array (such as Bayer filters), imaging sensor 814 can obtain the luminous intensity captured with each imaging pixel of imaging sensor 814 and wavelength Information, and the one group of raw image data that can be handled by ISP processors 840 is provided.Sensor 820 (such as gyroscope) can be based on passing The parameter (such as stabilization parameter) of the image procossing of acquisition is supplied to ISP processors 840 by 820 interface type of sensor.Sensor 820 Interface can utilize SMIA (Standard Mobile Imaging Architecture, Standard Mobile Imager framework) interface, The combination of other serial or parallel camera interfaces or above-mentioned interface.

In addition, raw image data can be also sent to sensor 820 by imaging sensor 814, sensor 820 can be based on passing 820 interface type of sensor is supplied to ISP processors 840 or sensor 820 to deposit raw image data raw image data It stores up in video memory 830.

ISP processors 840 handle raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,10,12 or 14 bits, ISP processors 840 can carry out raw image data at one or more images Reason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precision It carries out.

ISP processors 840 can also receive image data from video memory 830.For example, 820 interface of sensor will be original Image data is sent to video memory 830, and the raw image data in video memory 830 is available to ISP processors 840 It is for processing.Video memory 830 can be independent special in a part, storage device or electronic equipment for memory device With memory, and it may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.

When receiving from 814 interface of imaging sensor or from 820 interface of sensor or from video memory 830 When raw image data, ISP processors 840 can carry out one or more image processing operations, such as time-domain filtering.Treated schemes As data can be transmitted to video memory 830, to carry out other processing before shown.ISP processors 840 can also be from Video memory 830 receives processing data, is carried out in original domain and in RGB and YCbCr color spaces to the processing data Image real time transfer.Image data that treated may be output to display 880, so that user watches and/or by graphics engine Or GPU (Graphics Processing Unit, graphics processor) is further processed.In addition, the output of ISP processors 840 It also can be transmitted to video memory 830, and display 880 can read image data from video memory 830.In one embodiment In, video memory 830 can be configured as realizing one or more frame buffers.In addition, the output of ISP processors 840 can be sent out Encoder/decoder 870 is given, so as to encoding/decoding image data.The image data of coding can be saved, and be shown in It is decompressed before in 880 equipment of display.

ISP processors 840 handle image data the step of include:To image data carry out VFE (Video Front End, Video front) it handles and CPP (Camera Post Processing, camera post-processing) processing.At the VFE of image data Reason may include the contrast for correcting image data or brightness, change the illumination conditions data recorded in a digital manner, to picture number According to compensate processing (such as white balance, automatic growth control, γ correction etc.), image data is filtered.To figure As the CPP processing of data may include zooming in and out image, provide preview frame and record frame to each path.Wherein, CPP can make Preview frame and record frame are handled with different codecs.Treated that image data can be transmitted to light efficiency for ISP processors 840 Processing module 860, to carry out light efficiency enhancing processing to image before shown.Wherein, light efficiency processing module 860 can be to move CPU (Central Processing Unit, central processing unit), GPU or coprocessor etc. in dynamic terminal.Light efficiency processing module 860 treated that data can be transmitted to encoder/decoder 870, so as to encoding/decoding image data.The image data of coding It can be saved, and decompressed before being shown in 880 equipment of display.Wherein, light efficiency processing module 860 may be additionally located at coding Between device/decoder 870 and display 880, i.e., light efficiency enhancing module 860 carries out light efficiency enhancing processing to the image being imaged. Above-mentioned encoder/decoder 870 can be CPU, GPU or coprocessor etc. in mobile terminal.

The statistical data that ISP processors 840 determine, which can be transmitted, gives control logic device Unit 850.For example, statistical data can wrap Include the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 812 shadow correction of lens 814 statistical information of device.Control logic device 850 may include the processor and/or micro-control that execute one or more routines (such as firmware) Device processed, one or more routines according to the statistical data of reception, can determine control parameter and the ISP processing of imaging device 810 The control parameter of device 840.For example, the control parameter of imaging device 810 may include 820 control parameter of sensor (such as gain, expose The time of integration of photocontrol), camera flash control parameter, 812 control parameter of lens (such as focus or zoom focal length) or The combination of these parameters.ISP control parameters may include for automatic white balance and color adjustment (for example, during RGB processing) 812 shadow correction parameter of gain level and color correction matrix and lens.

Image processing method as described above can be realized with image processing techniques in Fig. 8.

One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..

The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the application the scope of the claims therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of image processing method, which is characterized in that the method includes:
Obtain the central pixel point in the pending image selected according to triggering command;
Obtaining light efficiency according to the central pixel point enhances model, and the light efficiency enhancing model is using the central pixel point as light Simulate the model of light intensity variation in source;
Enhance the light efficiency enhancing coefficient that model calculates each pixel in the pending image according to the light efficiency;
Enhance coefficient according to the light efficiency and light efficiency enhancing processing is carried out to each pixel in the pending image.
2. according to the method described in claim 1, it is characterized in that, described obtain light efficiency enhancing mould according to the central pixel point Type, including:
Light efficiency intensity factor is obtained, obtaining light efficiency according to the light efficiency intensity factor and central pixel point enhances model, the light Effect intensity factor is the parameter for influencing light efficiency enhancing processing intensity.
3. according to the method described in claim 2, it is characterized in that, the acquisition light efficiency intensity factor, including:
The brightness data for obtaining pending image obtains light efficiency intensity factor according to the brightness data.
4. according to the method described in claim 2, it is characterized in that, it is described according to the brightness data obtain light efficiency intensity because Son, including:
Reference image vegetarian refreshments is obtained according to the brightness data, and obtains the interval of the reference image vegetarian refreshments and the central pixel point Distance;
Light efficiency intensity factor is obtained according to the spacing distance.
5. according to the method described in claim 1, it is characterized in that, described obtain light efficiency enhancing mould according to the central pixel point Type, including:
Dimensional gaussian distribution function is obtained, using the central pixel point as the maximum point structure of the dimensional gaussian distribution function Build light efficiency enhancing model.
6. the method according to any one of claims 1 to 5, it is characterized in that, described enhance coefficient according to the light efficiency Light efficiency enhancing processing is carried out to each pixel in the pending image, including:
The portrait area in the pending image is detected, enhancing coefficient according to the light efficiency will be each in the portrait area Pixel carries out light efficiency enhancing processing.
7. the method according to any one of claim 6, which is characterized in that described to enhance coefficient by institute according to the light efficiency Stating the progress light efficiency enhancing processing of each pixel in portrait area includes:
The region area is more than the portrait area of area threshold as target person by the region area for obtaining the portrait area As region;
Enhance coefficient according to the light efficiency and each pixel in the target portrait area is subjected to light efficiency enhancing processing.
8. a kind of image processing apparatus, which is characterized in that described device includes:
Center acquisition module, for obtaining the central pixel point in the pending image selected according to triggering command;
Model acquisition module enhances model for obtaining light efficiency according to the central pixel point, light efficiency enhancing model be with The central pixel point is the model of light source analogy light intensity variation;
Coefficient acquisition module, for enhancing the light efficiency that model calculates each pixel in the pending image according to the light efficiency Enhance coefficient;
Enhance processing module, light is carried out to each pixel in the pending image for enhancing coefficient according to the light efficiency Imitate enhancing processing.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of method as described in any one of claim 1 to 7 is realized when processor executes.
10. a kind of electronic equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described When instruction is executed by the processor so that the processor executes the image procossing as described in any one of claim 1 to 7 Method.
CN201810231620.4A 2018-03-20 2018-03-20 Image processing method, device, computer readable storage medium and electronic equipment CN108419028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810231620.4A CN108419028A (en) 2018-03-20 2018-03-20 Image processing method, device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810231620.4A CN108419028A (en) 2018-03-20 2018-03-20 Image processing method, device, computer readable storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN108419028A true CN108419028A (en) 2018-08-17

Family

ID=63132834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810231620.4A CN108419028A (en) 2018-03-20 2018-03-20 Image processing method, device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108419028A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040598A (en) * 2018-08-29 2018-12-18 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109191398A (en) * 2018-08-29 2019-01-11 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109242794A (en) * 2018-08-29 2019-01-18 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109242793A (en) * 2018-08-29 2019-01-18 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109345603A (en) * 2018-09-29 2019-02-15 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109447926A (en) * 2018-09-29 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109447927A (en) * 2018-10-15 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
WO2020048192A1 (en) * 2018-09-07 2020-03-12 Oppo广东移动通信有限公司 Image processing method, electronic device, and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308572A (en) * 2008-06-24 2008-11-19 北京中星微电子有限公司 Luminous effect processing method and apparatus
JP2014206566A (en) * 2013-04-10 2014-10-30 株式会社ハートス Image processing light-emission control system, light-emitting display image processing program, and image light-emitting display method
US20140368558A1 (en) * 2013-06-14 2014-12-18 Canon Kabushiki Kaisha Image display apparatus and method of controlling same
CN104794699A (en) * 2015-05-08 2015-07-22 四川天上友嘉网络科技有限公司 Image rendering method applied to games
CN106709981A (en) * 2016-12-29 2017-05-24 天津瀚海星云数字科技有限公司 Local illumination method and local illumination system used for UI Sprite image in U3D
CN107742274A (en) * 2017-10-31 2018-02-27 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308572A (en) * 2008-06-24 2008-11-19 北京中星微电子有限公司 Luminous effect processing method and apparatus
JP2014206566A (en) * 2013-04-10 2014-10-30 株式会社ハートス Image processing light-emission control system, light-emitting display image processing program, and image light-emitting display method
US20140368558A1 (en) * 2013-06-14 2014-12-18 Canon Kabushiki Kaisha Image display apparatus and method of controlling same
CN104794699A (en) * 2015-05-08 2015-07-22 四川天上友嘉网络科技有限公司 Image rendering method applied to games
CN106709981A (en) * 2016-12-29 2017-05-24 天津瀚海星云数字科技有限公司 Local illumination method and local illumination system used for UI Sprite image in U3D
CN107742274A (en) * 2017-10-31 2018-02-27 广东欧珀移动通信有限公司 Image processing method, device, computer-readable recording medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张德发等: "多光源图像细化和细节增强的协同图像处理算法研究", 《重庆邮电大学学报( 自然科学版)》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040598A (en) * 2018-08-29 2018-12-18 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109191398A (en) * 2018-08-29 2019-01-11 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109242794A (en) * 2018-08-29 2019-01-18 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109242793A (en) * 2018-08-29 2019-01-18 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN109040598B (en) * 2018-08-29 2020-08-14 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and electronic equipment
WO2020048192A1 (en) * 2018-09-07 2020-03-12 Oppo广东移动通信有限公司 Image processing method, electronic device, and computer-readable storage medium
CN109345603A (en) * 2018-09-29 2019-02-15 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109447926A (en) * 2018-09-29 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN109447927A (en) * 2018-10-15 2019-03-08 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium

Similar Documents

Publication Publication Date Title
US10157325B2 (en) Image capture device with contemporaneous image correction mechanism
Ren et al. Gated fusion network for single image dehazing
CN103945118B (en) Image weakening method, device and electronic equipment
US9305375B2 (en) High-quality post-rendering depth blur
JP6395810B2 (en) Reference image selection for motion ghost filtering
CN105103189B (en) The image denoising of near-infrared guiding
CN105323425B (en) Scene motion correction in blending image system
CN102892008B (en) Dual image capture processes
Brooks et al. Unprocessing images for learned raw denoising
CN103002225B (en) Multiple exposure high dynamic range image capture
CN102741883B (en) High dynamic range image generation and rendering
Lapray et al. HDR-ARtiSt: an adaptive real-time smart camera for high dynamic range imaging
US8682097B2 (en) Digital image enhancement with reference images
CN101605208B (en) Image processing apparatus, imaging apparatus, image processing method
US8593542B2 (en) Foreground/background separation using reference images
JP5150353B2 (en) Contrast enhancement method, apparatus, imaging apparatus, and storage medium
US7589771B2 (en) Image processing apparatus, image processing method, image pickup apparatus, computer program and recording medium
JP4772839B2 (en) Image identification method and imaging apparatus
KR101612165B1 (en) Method for producing super-resolution images and nonlinear digital filter for implementing same
CN1870715B (en) Means for correcting hand shake
US9615039B2 (en) Systems and methods for reducing noise in video streams
KR101060488B1 (en) Optimal Image Selection Method and Device
KR101026585B1 (en) System, computer-implemented method, and computer-readable recording medium for generating a high dynamic range hdr image from an image sequence of a scene
WO2014093042A1 (en) Determining an image capture payload burst structure based on metering image capture sweep
US20110150280A1 (en) Subject tracking apparatus, subject region extraction apparatus, and control methods therefor

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.