CN105100636B - A kind of image processing method and mobile terminal - Google Patents

A kind of image processing method and mobile terminal Download PDF

Info

Publication number
CN105100636B
CN105100636B CN201510490737.0A CN201510490737A CN105100636B CN 105100636 B CN105100636 B CN 105100636B CN 201510490737 A CN201510490737 A CN 201510490737A CN 105100636 B CN105100636 B CN 105100636B
Authority
CN
China
Prior art keywords
image
color
uproar
pixel
value
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.)
Expired - Fee Related
Application number
CN201510490737.0A
Other languages
Chinese (zh)
Other versions
CN105100636A (en
Inventor
李小朋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510490737.0A priority Critical patent/CN105100636B/en
Priority to CN201710995175.4A priority patent/CN107635103B/en
Publication of CN105100636A publication Critical patent/CN105100636A/en
Application granted granted Critical
Publication of CN105100636B publication Critical patent/CN105100636B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present embodiments relate to electronic technology field, a kind of image processing method and mobile terminal are disclosed.Wherein, this method includes:When the brightness value for detecting current environment is less than predetermined luminance threshold value, the current sensitivity of camera can be increased to target sensitivity by mobile terminal, and control the camera to carry out IMAQ to the reference object preset in shooting visual angle with target sensitivity, obtain the first image, reduce the saturation degree of first image, to obtain the second image, and export at image preview interface second image.Pass through the embodiment of the present invention, mobile terminal can increase the sensitivity of camera automatically under half-light environment, the vividness of colored noise in image can be reduced by reducing the saturation degree of image when the sensitivity after with increase gathers image, so as to effectively reduce colored noise, so that image becomes apparent from, the visuality of image is lifted.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to electronic technology field, and in particular to a kind of image processing method and mobile terminal.
Background technology
Present mobile terminal such as smart mobile phone, tablet personal computer etc. are equipped with camera, and user can pass through camera Shot or imaged.Camera can be shown after collection image according to specific saturation degree to the image of collection Processing, is then shown in image preview interface.Under normal circumstances, if user is clapped under half-light environment using camera Take the photograph, because the light of shooting environmental is weaker, the brightness of the image of camera collection is relatively low, visually shows as smudgy. In the prior art, in order to improve the brightness of the image gathered under half-light environment, mobile terminal can typically improve camera automatically Sensitivity ISO.But, improved with the sensitivity of camera, the brightness of its image gathered can also be improved, and can in image The colored noise seen can also increase, so as to have a strong impact on the definition and visuality of image.
The content of the invention
The embodiment of the invention discloses a kind of image processing method and mobile terminal, image can be reduced under half-light environment Color noise, so as to improve the definition and visuality of image.
First aspect of the embodiment of the present invention discloses a kind of image processing method, including:
When the brightness value for detecting current environment is less than predetermined luminance threshold value, the current sensitivity of camera is increased to Target sensitivity;
The camera is controlled to carry out IMAQ to the reference object preset in shooting visual angle with the target sensitivity, Obtain the first image;
The saturation degree of described first image is reduced, to obtain the second image;
Second image is exported at image preview interface.
As a kind of feasible embodiment, the saturation degree of the reduction described first image, to obtain the second image, is wrapped Include:
Obtain the pixel value of all pixels point in described first image;
The pixel value of all pixels point of predeterminable area in described first image is adjusted according to default first gain coefficient, and The all pixels in remaining region in described first image in addition to the predeterminable area are adjusted according to default second gain coefficient The pixel value of point, obtains the second image;Wherein, default first gain coefficient is less than default second gain coefficient, and Default second gain coefficient is less than the current gain coefficient of the camera.
As another feasible embodiment, the saturation degree of the reduction described first image, to obtain the second image, Including:
Obtain the pixel value of all pixels point in described first image;
The current gain coefficient of the camera is decreased to default 3rd gain coefficient;
According to the pixel value of all pixels point in the default 3rd gain coefficient adjustment described first image, second is obtained Image.
As another feasible embodiment, the pixel value includes rgb value, described according to default 3rd gain The pixel value of all pixels point, is obtained after the second image, methods described also includes in coefficient adjustment described first image:
Recognize that the color of second image is made an uproar pixel according to the rgb value of all pixels point in second image;
Determine that the make an uproar color of pixel of the color is made an uproar type according to the make an uproar rgb value of pixel of each color, the color is made an uproar type Including one kind in red R noise, green G noises or blueness B noises;
Color included in the second image most color of the pixel quantity type of making an uproar of making an uproar of color in type of making an uproar is defined as Aim colour is made an uproar type, and determines that the aim colour is made an uproar the corresponding color of object passage of type, and the color of object passage is logical including R One kind in road, G passages or channel B;
According to default 4th gain coefficient, the target face in the rgb value of the second image all pixels point is adjusted The value of chrominance channel, with second image after being adjusted, default 4th gain coefficient is more than 0 and less than 1;
Wherein, it is described in image preview interface output second image, including:
Second image after the output adjustment of image preview interface.
As another feasible embodiment, methods described also includes:
When receiving photographing instruction, image of taking pictures is generated according to the pixel value of all pixels point in second image.
Accordingly, second aspect of the embodiment of the present invention discloses a kind of mobile terminal, including:
Adding unit, for when the brightness value for detecting current environment is less than predetermined luminance threshold value, by working as camera Preceding sensitivity increases to target sensitivity;
Control unit, for controlling the camera with the target sensitivity to presetting the reference object in shooting visual angle IMAQ is carried out, the first image is obtained;
Reduce unit, the saturation degree for reducing described first image, to obtain the second image;
Output unit, for exporting second image at image preview interface.
As a kind of feasible embodiment, the reduction unit includes first and obtains subelement and the first adjustment son list Member, wherein:
Described first obtains subelement, the pixel value for obtaining all pixels point in described first image;
The first adjustment subelement, for according to predeterminable area in default first gain coefficient adjustment described first image All pixels point pixel value, and according to default second gain coefficient adjust described first image in except the predeterminable area it The pixel value of all pixels point in remaining outer region, obtains the second image;Wherein, default first gain coefficient is less than institute Default second gain coefficient is stated, and default second gain coefficient is less than the current gain coefficient of the camera.
As another feasible embodiment, the reduction unit include second obtain subelement, reduce subelement with And second adjustment subelement, wherein:
Described second obtains subelement, the pixel value for obtaining all pixels point in described first image;
The reduction subelement, for the current gain coefficient of the camera to be decreased into default 3rd gain coefficient;
The second adjustment subelement, for owning according in the default 3rd gain coefficient adjustment described first image The pixel value of pixel, obtains the second image.
As another feasible embodiment, the reduction unit also includes identification subelement, the first determination subelement And second determination subelement, wherein:
The identification subelement, second figure is recognized for the rgb value according to all pixels point in second image The color of picture is made an uproar pixel;
First determination subelement, for determining that the color is made an uproar pixel according to the make an uproar rgb value of pixel of each color Color make an uproar type, color type of making an uproar includes one kind in red R noise, green G noises or blueness B noises;
Second determination subelement, for the color in type of making an uproar of the color included in second image to be made an uproar pixel number The most colors of amount type of making an uproar is defined as aim colour and made an uproar type, and determines that the aim colour is made an uproar the corresponding color of object passage of type, The color of object passage includes one kind in R passages, G passages or channel B;
The second adjustment subelement, is additionally operable to, according to default 4th gain coefficient, adjust all pictures of the second image The value of the color of object passage in the rgb value of vegetarian refreshments, with second image after being adjusted, the described default 4th increases Beneficial coefficient is more than 0 and less than 1;
The output unit is in the concrete mode that image preview interface exports second image:
Second image after the output adjustment of image preview interface.
As another feasible embodiment, the mobile terminal also includes:
Generation unit, for when receiving photographing instruction, according to the pixel value of all pixels point in second image Generate image of taking pictures.
Implement the embodiment of the present invention, have the advantages that:
In the embodiment of the present invention, when the brightness value for detecting current environment is less than predetermined luminance threshold value, mobile terminal meeting The current sensitivity of camera is increased into target sensitivity, and controls the camera with target sensitivity to presetting shooting visual angle Interior reference object carries out IMAQ, obtains the first image, reduces the saturation degree of first image, to obtain the second image, And second image is exported at image preview interface.By the embodiment of the present invention, mobile terminal can increase automatically under half-light environment Plus the sensitivity of camera, it can reduce image by reducing the saturation degree of image when the sensitivity after with increase gathers image The vividness of middle colored noise, so as to effectively reduce colored noise so that image becomes apparent from, and lifts the visuality of image.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of image processing method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another image processing method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another image processing method disclosed in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of image processing method and mobile terminal, image can be reduced under half-light environment Color noise, so as to improve the definition and visuality of image.It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of image processing method disclosed in the embodiment of the present invention.Wherein, scheme Method shown in 1 can apply to smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC and Mobile internet device (MobileInternetDevices, MID), personal digital assistant (Personal Digital Assistant, PDA), media player, intelligent television, intelligent watch, intelligent glasses, the mobile terminal such as Intelligent bracelet.Such as Fig. 1 Shown, the image processing method may comprise steps of:
S101, when detect current environment brightness value be less than predetermined luminance threshold value when, mobile terminal by camera work as Preceding sensitivity increases to target sensitivity.
In the embodiment of the present invention, when opening the camera applications of mobile terminal, mobile terminal can its current institute of automatic detection Locate the brightness value of environment.When judging that the brightness value is less than predetermined luminance threshold value, indicate that the mobile terminal is currently at secretly Luminous environment, and light is weaker.Therefore, the current sensitivity of camera will be increased to target sensitivity by the mobile terminal.
Generally, mobile terminal is sensitivity by adjusting photosensitive period in camera or merges sensitivity speck to take the photograph to adjust As the sensitivity of head, that is to say, that by lift the light sensitivity of sensor devices or merge several adjacent sensitivity specks come Reach the purpose of lifting sensitivity.Sensor devices have a respond, and this respond is changeless, then carried Rise what the sensitivity of camera can be realized by two ways:The brightness and contrast for improving each pixel by force;Use As long as the task that multiple pixels complete an original pixel to complete jointly.
In general, below sensitivity ISO50 is low speed, and extremely smooth, fine and smooth photograph can be obtained in this section Piece.As long as condition is permitted, as long as photo can be clapped clear, low speed just is used as far as possible, such as, as long as ensure that scape It is deep, big one-level aperture would rather be opened, also sensitivity should not be improved one keeps off.And ISO100~200 belong to middle sensitivity, in this section Need to think better of what use this photo does, what degree be amplified to, if noise can be received, middle sensitivity setting drop The difficulty that low handheld camera is shot, improves the safety coefficient shot under low light conditions, improves success rate.ISO400 Above is ISO, in this section of noise substantially, is set, the importance of the theme content of shooting often surpasses using such The quality of image is crossed, the condition shot sometimes after all is too poor, photographed a slightly worse photo of quality, always than basic seizure It is good less than image.
Therefore, in the case where ambient light is dark, if user is continuing with family, camera is taken pictures, then with regard to table The requirement of bright user is only to capture reference object, and does not lie in the quality of image, thus the mobile terminal detect work as When the brightness value of preceding environment is less than predetermined threshold value, the current sensitivity of camera will be lifted to target sensitivity.
It should be noted that the embodiment of the present invention mainly puies forward the sensitivity of camera under the more serious environment of half-light Rise to ISO.Therefore, target sensitivity is the ISO more than 400, and generally higher than 2400 ISO institute band The noise come can be more serious.
S102, the mobile terminal control the camera to enter with the target sensitivity to presetting the reference object in shooting visual angle Row IMAQ, obtains the first image.
In the embodiment of the present invention, the current sensitivity of camera is increased to after target sensitivity in mobile terminal, should Mobile terminal will control the camera to carry out IMAQ to the reference object preset in shooting visual angle with the target sensitivity, So as to obtain the first image.
In the embodiment of the present invention, because target sensitivity is ISO, so can be obtained more under target sensitivity Fast shutter speed.But be due to sensitivity get over low strap image quality it is finer and smoother, so the image quality of ISO is then made an uproar Point is than larger.Therefore, the noise for the first image that mobile terminal control camera is collected with the target sensitivity is more current The noise for the image that sensitivity is collected is much bigger.
Received and defeated using light as signal is received it should be noted that noise is primarily referred to as CCD (imaging sensor) The coarse part in image produced by during going out.Said for the camera of mobile terminal, internal imaging sensor exists It is bound in work by the different degrees of photoelectricity magnetic disturbance between peripheral circuit and pixel itself, is exactly to clap in brief The picture taken out is bound to the presence of noise, and this is inevitable, it is seen that simply degree weight.And with height sense The noise that the image that luminosity is collected will have these originally is further amplified so that the noise of image is more obvious.
Therefore, mobile terminal control camera carries out image with target sensitivity to the reference object preset in shooting visual angle The noise of the first image collected is obvious.And colour is made an uproar in the general image collected under half-light environment Point (be referred to as color make an uproar pixel, color noise) is obvious.Wherein, colored noise be color make an uproar the red, green of pixel and In blue channel the value of a certain Color Channel it is larger and produce.
S103, the mobile terminal reduce the saturation degree of first image, to obtain the second image.
In the embodiment of the present invention, saturation degree may be defined as chroma divided by lightness, refer to the bright-coloured degree of color, also referred to as color Purity, the degree for characterizing color deviation with brightness grey same with chroma.And saturation degree depend on the color in composition containing color with The ratio of colour killing composition (grey).Composition containing color is bigger, and saturation degree is bigger;Colour killing composition is bigger, and saturation degree is smaller.Pure color All be it is HI SA highly saturated, such as it is scarlet, it is bud green.Mix the color of white, grey or other tones, be undersaturated color, such as It is dark reddish purple, it is pink, it is yellowish-brown etc..Complete undersaturated color does not have the various grey between tone, such as black and white at all.And the first image In colored noise be exactly the single Color Channel of red, green, blue value it is larger, the composition containing color of noise is more.Therefore, first is reduced The color that the saturation degree of image can be just reduced in the first image is made an uproar the composition containing color of pixel so that the camera energy of mobile terminal Enough capture reference object, and obvious degree of the pixel in display of making an uproar of the color in the image caught decreases.So as to The definition of image can be improved so that reference object clearly can may be used either in preview image or in shooting image See.
Therefore, after mobile terminal carries out reduction saturation degree processing to the first image for collecting, the can be obtained Two images so that the second image has subtracted than the make an uproar obvious degree of pixel of the color that the first image for collecting of script is included It is small, so as to improve the definition of collection image.
S104, the mobile terminal export second image at image preview interface.
In the embodiment of the present invention, when mobile terminal, which carries out reduction saturation degree processing to the first image, obtains the second image, The mobile terminal just can be by second image output on image preview interface.And shooting visual angle is preset in being directed to that user sees The preview image of interior reference object is to reduce the second image after saturation degree processing.
It can be seen that, in the method described by Fig. 1, when the brightness value for detecting mobile terminal current environment is less than predetermined luminance During threshold value, the mobile terminal can increase to the current sensitivity of camera target sensitivity, and control the camera with target Sensitivity carries out IMAQ to the reference object preset in shooting visual angle, obtains the first image, reduces the full of first image And degree, to obtain the second image, and export at image preview interface second image.Pass through the embodiment of the present invention, mobile terminal The sensitivity of camera can be increased automatically under half-light environment, can be schemed when the sensitivity after with increase gathers image by reducing The saturation degree of picture reduces in image the vividness of colored noise, so as to effectively reduce colored noise so that image is more clear It is clear, lift the visuality of image.
Referring to Fig. 2, Fig. 2 is the schematic flow sheet of another image processing method disclosed in the embodiment of the present invention.Wherein, Method shown in Fig. 2 can apply to smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC with And mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet Deng mobile terminal.As shown in Fig. 2 the image processing method may comprise steps of:
S201, when detect current environment brightness value be less than predetermined luminance threshold value when, mobile terminal by camera work as Preceding sensitivity increases to target sensitivity.
S202, the mobile terminal control the camera to enter with the target sensitivity to presetting the reference object in shooting visual angle Row IMAQ, obtains the first image.
The pixel value of all pixels point in S203, the acquisition for mobile terminal first image.
In the embodiment of the present invention, the mobile terminal reduce the first image saturation degree obtain the second image mode it is specific For:Obtained when mobile terminal controls camera to carry out IMAQ to the reference object preset in shooting visual angle with target sensitivity During the first image, the mobile terminal can obtain the pixel value of all pixels point in first image first.Wherein, the pixel value bag Include any one or a few in rgb value, gray value, grey decision-making.And in the embodiment of the present invention, the pixel value mainly refers in particular to pixel The rgb value of point.
S204, the mobile terminal adjust all pixels of predeterminable area in first image according to default first gain coefficient The pixel value of point, and adjust according to default second gain coefficient the institute in remaining region in first image in addition to predeterminable area There is the pixel value of pixel, obtain the second image.
In the embodiment of the present invention, the color in the image gathered due to camera under ISO (target sensitivity) is made an uproar picture Vegetarian refreshments is than larger, and the color of particularly image surrounding is made an uproar pixel.Because the corresponding surrounding of image is camera image sensor Surrounding, due to the dark in environment, imaging sensor light income is not very sufficient, the especially light income meeting of its surrounding It is relatively low compared to center section, so after opto-electronic conversion is carried out, the electric current of surrounding will be less than normal so that cause the surrounding of image by Interference to noise is bigger than normal, and the color noise for being reacted to image surrounding when on image preview interface will make an uproar than the color in the middle of image Point is more.
Therefore, mobile terminal can be directed to color in the first image and make an uproar when carrying out reduction saturation degree processing to the first image The degree of the saturation degree reduction in more serious region is big, and being made an uproar for color in the first image is not particularly evident or is not very tight The degree of the region saturation degree reduction of weight is smaller.That is, the predeterminable area is the more area of color noise in the first image Domain.And in general, predeterminable area is the region of the certain area in outside of the first image, and the determination of predeterminable area may Different due to the brightness difference of external environment light, the embodiment of the present invention is not limited.
In general, the image of camera collection is shown on image preview interface or generated before shooting image, all can Carry out saturation degree processing.Therefore, the brightness (i.e. lightness) of pixel value of all pixels point of image is gathered under ISO originally Body increased, if the gain coefficient of camera is certain, then the chroma of all pixels point will increase in image, so former The color of the colored noise of this presence will be more bright-coloured, i.e., more obvious.
It should be noted that due to the ratio that saturation degree is chroma and lightness, so work as the sensitivity of lifting camera, that The lightness of the pixel of the image collected will increase, if saturation degree is certain, then the coloured silk of the pixel of the image Degree will also increase, and the color of the image makes an uproar pixel so as to which meeting is more obvious.And in the embodiment of the present invention, reduce image saturation The ratio of image chroma and lightness is exactly reduced, that is, reduces from by the rgb value of the image slices vegetarian refreshments of collection and is mapped to image Gain coefficient when preview interface or imaging.
Therefore, when mobile terminal carries out reduction saturation degree processing to the first image, the gain coefficient of camera can be reduced, So in the case of the lightness of image slices vegetarian refreshments is increased, it is ensured that the chroma of pixel does not have obvious increase.Therefore The obvious degree for reducing color noise in image can be played in this way.
Specifically, default first gain coefficient is less than default second gain coefficient, and preset the first gain coefficient and default Second gain coefficient is respectively less than the current gain coefficient of camera.So the mobile terminal can own getting the first image After the pixel value of pixel, default the is used to the pixel value of the pixel of predeterminable area (i.e. color make an uproar more serious region) One gain coefficient is adjusted, that is to say, that by the pixel value phase of default first gain coefficient and all pixels point in predeterminable area Multiply, respectively obtain the corresponding new pixel value of each pixel;And to non-predeterminable area, (it is not very serious middle area that i.e. color, which is made an uproar, Domain) the pixel value of pixel adjusted using default second gain coefficient, that is to say, that by default second gain coefficient with it is non- The pixel value of all pixels point is multiplied in predeterminable area, respectively obtains the corresponding new pixel value of each pixel.So it is directed to Property the image of reduction by first saturation degree (saturation degree is reduced to predeterminable area and non-predeterminable area subregion), can obtain clear The second higher image of clear degree, so that the visuality of the reference object included in the second image increases, lifts user Experience.
Further, the predeterminable area, which can also be, includes character image or specific reference object image in the first image Region, the embodiment of the present invention do not limit.
For example, when pixel value of the acquisition for mobile terminal to the first image all pixels point, can be obtained respectively The region of preset area centered on one image center, is non-predeterminable area, and in addition to intermediate region for predeterminable area. If the current gain coefficient of the mobile terminal camera is 1.5, then can be by the gain coefficient of pixel in predeterminable area Reduction by 15% so as to obtain default first gain coefficient, and by the gain coefficient reduction by 10% of pixel in non-predeterminable area so as to Obtain default second gain coefficient.Then pixel value of default first gain coefficient to all pixels point in predeterminable area is reused It is adjusted, using default second gain coefficient to all pixels point in remaining region in the first image in addition to predeterminable area Pixel value is adjusted, so as to obtain the first image after pixel value adjustment, i.e. the second image.
S205, the mobile terminal export second image at image preview interface.
S206, when receiving photographing instruction, the mobile terminal is according to the pixel value of all pixels point in second image Generate image of taking pictures.
In the embodiment of the present invention, mobile terminal obtains the second figure after reduction saturation degree processing is carried out to the first image Picture, then will be by second image output at image preview interface.And when user presses shutter key, the mobile terminal will Photographing instruction is received, so that the photographing instruction can be responded, figure of taking pictures is generated according to the pixel value of the second image all pixels point The pixel value of pixel is identical with the pixel value of all pixels point in the second image in picture, the i.e. image of taking pictures.So not only make The image definition that is viewed on image preview interface of user has been lifted, while can also improve the clear of image of taking pictures Degree, so as to lift Consumer's Experience.
It can be seen that, in the method described by Fig. 2, mobile terminal, can when carrying out reduction saturation degree processing to the first image To carry out reduction saturation degree in subregion to the first image:Namely by the increasing of the pixel value of pixel in the first image predeterminable area Beneficial coefficient adjustment adjusts all pixels point in predeterminable area to lower than current gain coefficient by presetting the first gain coefficient Pixel value;The gain coefficient of the pixel value of pixel in first image non-predeterminable area is also adjusted to than current gain coefficient It is low but higher than default first gain coefficient, i.e., all pixels point in non-predeterminable area is adjusted by default second gain coefficient Pixel value.It can be unlikely to make the color of all reference objects to lose when reducing the first image saturation in this way Very, and simultaneously can make an uproar the effective denoising of more serious region progress to color, and lifting image is clear in preview or imaging Degree, so as to lift Consumer's Experience.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet of another image processing method disclosed in the embodiment of the present invention.Wherein, Method shown in Fig. 3 can apply to smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, palm PC with And mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet Deng mobile terminal.As shown in figure 3, the image processing method may comprise steps of:
S301, when detect current environment brightness value be less than predetermined luminance threshold value when, mobile terminal by camera work as Preceding sensitivity increases to target sensitivity.
S302, the mobile terminal control the camera to enter with the target sensitivity to presetting the reference object in shooting visual angle Row IMAQ, obtains the first image.
The rgb value of all pixels point in S303, the acquisition for mobile terminal first image.
In the embodiment of the present invention, pixel value includes rgb value.Therefore, the saturation degree of the first image of mobile terminal reduction is obtained Mode to the second image is specially:When mobile terminal controls camera with target sensitivity to presetting the shooting in shooting visual angle When object progress IMAQ obtains the first image, the mobile terminal can obtain all pixels point in first image first Rgb value.
The current gain coefficient of the camera is decreased to default 3rd gain coefficient by S304, the mobile terminal.
In the embodiment of the present invention, the gain coefficient of mobile terminal camera is usually fixed, therefore mobile terminal is in control Camera processed is obtained with target sensitivity to the reference object progress IMAQ preset in shooting visual angle after the first image, is Ensure the definition of preview image or image of taking pictures, the current gain coefficient of camera can be reduced, such as reduction by 8%, from And obtain default 3rd gain coefficient.
That is, default 3rd gain coefficient can be pre-set more relatively low than camera current gain coefficient One gain coefficient or the gain coefficient for calculating current gain coefficient reduction special ratios or particular value two, The embodiment of the present invention is not limited.
S305, the mobile terminal adjust the RGB of all pixels point in first image according to default 3rd gain coefficient Value, obtains the second image.
In the embodiment of the present invention, when the current gain coefficient of camera is decreased to preset the 3rd gain coefficient by mobile terminal When, the mobile terminal will use this to preset the rgb value that the 3rd gain coefficient adjusts all pixels point in first image, so that Obtain the second image.
That is, the mobile terminal is after the first image is collected, whole first image can be dropped first Low saturation processing.
S306, the mobile terminal recognize that the color of second image is made an uproar according to the rgb value of all pixels point in second image Pixel.
In the embodiment of the present invention, due to color make an uproar pixel the Color Channel of R, G, B tri- in the value of a certain Color Channel compare It is high in remaining two color channel values, so mobile terminal obtains the second figure integrally carrying out reduction saturation degree processing to the first image As after, also there is color in the second image in fact and make an uproar pixel, simply color degree of making an uproar is lower than the first image.Therefore, the movement Terminal can obtain the rgb value of all pixels point in the second image again, and identified and included in the second image according to its rgb value Color make an uproar pixel.
As an example it is assumed that the rgb value for the pixel that the second image includes be respectively (123,202,212), (132, 153,143), (23,242,10), (237,15,0), (142,168,135), (252,14,31), then can by above-mentioned rgb value To determine that outstanding pixel of making an uproar includes three.
S307, the mobile terminal determine that the make an uproar color of pixel of the color is made an uproar type according to the make an uproar rgb value of pixel of each color.
In the embodiment of the present invention, color makes an uproar type including any one in red R noise, green G noises and blueness B noises Kind, the embodiment of the present invention is not limited.Therefore, after the coloured pixel of making an uproar of institute during mobile terminal identifies the second image, Can also be made an uproar according to each color rgb value of pixel of the mobile terminal determines that color pixel of making an uproar belongs to which kind of color is made an uproar type. Wherein, each color pixel of making an uproar is only possible to make an uproar type for a kind of color.Under normal circumstances, using the camera of electronic product in half-light When being taken pictures under environment, obtained red noise and green noise is on the high side, and blue noise is more rare.
Specifically, for a certain pixel, if the value for having a Color Channel in its Color Channel of R, G, B tri- compares Height, and the value of remaining two Color Channel is very low, then be assured that the pixel is made an uproar pixel for color.Further, if Be R passages value it is higher, then the color make an uproar pixel color make an uproar type just be red R noise;And if the value of G passages compared with It is high, then the make an uproar color type of making an uproar of pixel of the color is just green G noises.
For example, in the rgb value of the above-mentioned pixel enumerated, (23,242,10), (237,15,0) and (252, 14,31) corresponding pixel is that color is made an uproar pixel, wherein the color of (23,242,10) corresponding pixel points is made an uproar, type is G noises, and The color of (237,15,0) and (252,14,31) corresponding pixel makes an uproar type for R noises.
S308, the mobile terminal make an uproar the color in type of making an uproar of the color included in second image most color of pixel quantity Type of making an uproar is defined as aim colour and made an uproar type, and determines that the aim colour is made an uproar the corresponding color of object passage of type.
In the embodiment of the present invention, color of object passage includes one kind in R passages, G passages or channel B, its color of object Passage is made an uproar type depending on aim colour, and the embodiment of the present invention is not limited.Therefore, the institute in mobile terminal identifies the second image Comprising the coloured pixel of making an uproar of institute, and determine that the make an uproar color of pixel of each color is made an uproar after type, the mobile terminal will be distinguished The color that each color makes an uproar included by type is counted to make an uproar the quantity of pixel.Then from these three colors make an uproar type in choose color and make an uproar pixel The most color of point quantity is made an uproar type, and is defined as aim colour and makes an uproar type.
Made an uproar pixel that is, the mobile terminal can count the color that R noises, G noises and B noises included respectively Quantity, if in R noises color make an uproar pixel quantity it is most, then R noises are just defined as aim colour and made an uproar type.
Further, when mobile terminal determine aim colour make an uproar type when, the mobile terminal is assured that for the mesh Mark color is made an uproar the corresponding color of object passage of type.For example, when aim colour makes an uproar type for R noises, its corresponding color of object leads to Road is R passages;When aim colour makes an uproar type for G noises, its corresponding color of object passage is G passages;When aim colour is made an uproar When type is B noises, its corresponding color of object passage is channel B.
S309, the mobile terminal are according to default 4th gain coefficient, in the rgb value for adjusting the second image all pixels point Color of object passage value, with the second image after being adjusted.
In the embodiment of the present invention, it is that, more than 0 and less than 1 number, the embodiment of the present invention is not limited to preset the 4th gain coefficient. Therefore, when mobile terminal determines color of object passage, the mobile terminal will use default 4th gain coefficient to this The value of the color of object passage of the rgb value of all pixels point is adjusted in two images, so that the second image after being adjusted.
That is, controlling camera using target sensitivity to presetting the reference object in shooting visual angle in mobile terminal Progress IMAQ is obtained after the first image, and the concrete mode that the mobile terminal reduces the saturation degree of the first image is:First Reduction saturation degree processing can be integrally carried out to the first image, so as to obtain the second image.Then which kind of is determined in the second image again Color is made an uproar, and pixel quantity is more, and when the type it is determined that the outstanding most color of pixel quantity of making an uproar is made an uproar, the mobile terminal will be to this The value of the color of object passage of all pixels point reduces saturation degree by being multiplied by default 4th gain coefficient in second image, its In, the color of object passage is that color is made an uproar in type and made an uproar the corresponding Color Channel of type comprising the color most color of pixel of making an uproar.So as to Realize targetedly is reduced saturation degree according to color type of making an uproar, and can realize targetedly denoising, raising image clearly Degree, so as to further lift Consumer's Experience.
As an example it is assumed that default 4th gain coefficient is 0.85, then determine color of object passage for G passages it Afterwards, indicate that color makes an uproar the more type of pixel for R noises in second image, therefore will be by all pixels in the second image The value of G Color Channels in point is multiplied by 0.85, to reduce influence of the G noises to the second image.
The second image of S310, the mobile terminal after the output adjustment of image preview interface.
In the embodiment of the present invention, reduction saturation degree processing is carried out to the first image in mobile terminal, the second image is obtained, and For the color of object passage of the second image slices vegetarian refreshments value be adjusted after, the second image after being adjusted.Therefore, should Mobile terminal image preview interface export the second image concrete mode be:Second after the output adjustment of image preview interface Image.
It can be seen that, in the method described by Fig. 3, mobile terminal can be gathered under ISO after the first image, first Reduction saturation degree processing is first integrally carried out to the first image, the second image is obtained, is made an uproar pixel it is then determined that going out color in the second image The most color of point quantity is made an uproar type, and the value for the corresponding Color Channel of type of being made an uproar to the color in all pixels point in second image Reduction adjustment is carried out, so as to reduce the saturation degree of the color, to realize that emphasis is made an uproar pixel reduction saturation degree processing to color.So Color can be reduced to make an uproar the influence of the definition to preview image or obtained image of taking pictures of taking pictures, improve image definition and Visuality, further lifts Consumer's Experience.
Referring to Fig. 4, Fig. 4 is a kind of structural representation of mobile terminal disclosed in the embodiment of the present invention.Wherein, Fig. 4 institutes The mobile terminal 400 shown can include but is not limited to smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, the palm Upper computer and mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet etc..As shown in figure 4, the mobile terminal 400 can include with lower unit:
Adding unit 401, for when the brightness value for detecting current environment is less than predetermined luminance threshold value, by camera Current sensitivity increases to target sensitivity.
In the embodiment of the present invention, when open mobile terminal 400 camera applications when, mobile terminal 400 can automatic detection its It is presently in the brightness value of environment.When judging that the brightness value is less than predetermined luminance threshold value, indicate that the mobile terminal 400 is worked as It is preceding to be in half-light environment, and light is weaker.Therefore, the current sensitivity of camera will be increased to target by adding unit 401 Sensitivity.
Generally, mobile terminal 400 is sensitivity by adjusting photosensitive period in camera or merges sensitivity speck to adjust The sensitivity of whole camera, that is to say, that by lifting the light sensitivity of sensor devices or merging several adjacent photosensitive Point lifts the purpose of sensitivity to reach.Sensor devices have a respond, this respond be it is changeless, that What the sensitivity of lifting camera can be realized by two ways:The brightness and contrast for improving each pixel by force; As long as the completing an original pixel jointly using multiple pixels to complete of the task.
In general, below sensitivity ISO50 is low speed, and extremely smooth, fine and smooth photograph can be obtained in this section Piece.As long as condition is permitted, as long as photo can be clapped clear, low speed just is used as far as possible, such as, as long as ensure that scape It is deep, big one-level aperture would rather be opened, also sensitivity should not be improved one keeps off.And ISO100~200 belong to middle sensitivity, in this section Need to think better of what use this photo does, what degree be amplified to, if noise can be received, middle sensitivity setting drop The difficulty that low handheld camera is shot, improves the safety coefficient shot under low light conditions, improves success rate.ISO400 Above is ISO, in this section of noise substantially, is set, the importance of the theme content of shooting often surpasses using such The quality of image is crossed, the condition shot sometimes after all is too poor, photographed a slightly worse photo of quality, always than basic seizure It is good less than image.
Therefore, in the case where ambient light is dark, if user is continuing with family, camera is taken pictures, then with regard to table The requirement of bright user is only to capture reference object, and does not lie in the quality of image, so the mobile terminal 400 is being detected When the brightness value of current environment is less than predetermined threshold value, adding unit 401 will lift the current sensitivity of camera to target sense Luminosity.
It should be noted that the embodiment of the present invention mainly puies forward the sensitivity of camera under the more serious environment of half-light Rise to ISO.Therefore, target sensitivity is the ISO more than 400, and generally higher than 2400 ISO institute band The noise come can be more serious.
Control unit 402, for controlling the camera with the target sensitivity to presetting the reference object in shooting visual angle IMAQ is carried out, the first image is obtained.
In the embodiment of the present invention, the current sensitivity of camera is increased to after target sensitivity in adding unit 401, Control unit 402 will control the camera to be adopted with the target sensitivity to the reference object progress image preset in shooting visual angle Collection, so as to obtain the first image.
In the embodiment of the present invention, because target sensitivity is ISO, so can be obtained more under target sensitivity Fast shutter speed.But be due to sensitivity get over low strap image quality it is finer and smoother, so the image quality of ISO is then made an uproar Point is than larger.Therefore, the noise for the first image that the control of control unit 402 camera is collected with the target sensitivity is relatively worked as The noise for the image that preceding sensitivity is collected is much bigger.
Received and defeated using light as signal is received it should be noted that noise is primarily referred to as CCD (imaging sensor) The coarse part in image produced by during going out.Said for the camera of mobile terminal 400, internal imaging sensor Be bound at work by the different degrees of photoelectricity magnetic disturbance between peripheral circuit and pixel itself, be exactly in brief The picture shot is bound to the presence of noise, and this is inevitable, it is seen that simply degree weight.And with height The noise that the image that sensitivity is collected will have these originally is further amplified so that the noise of image is brighter It is aobvious.
Therefore, the control camera of control unit 402 is carried out with target sensitivity to the reference object preset in shooting visual angle The noise for the first image that IMAQ is obtained is obvious.And the general image collected under half-light environment is prized Color noise (be referred to as color make an uproar pixel, color noise) is obvious.Wherein, colored noise is that color is made an uproar the red, green of pixel And in blue channel a certain Color Channel value it is larger and produce.
Reduce unit 403, the saturation degree for reducing the first image that above-mentioned control unit 402 is obtained, to obtain second Image.
In the embodiment of the present invention, saturation degree may be defined as chroma divided by lightness, refer to the bright-coloured degree of color, also referred to as color Purity, the degree for characterizing color deviation with brightness grey same with chroma.And saturation degree depend on the color in composition containing color with The ratio of colour killing composition (grey).Composition containing color is bigger, and saturation degree is bigger;Colour killing composition is bigger, and saturation degree is smaller.Pure color All be it is HI SA highly saturated, such as it is scarlet, it is bud green.Mix the color of white, grey or other tones, be undersaturated color, such as It is dark reddish purple, it is pink, it is yellowish-brown etc..Complete undersaturated color does not have the various grey between tone, such as black and white at all.And the first image In colored noise be exactly the single Color Channel of red, green, blue value it is larger, the composition containing color of noise is more.Therefore, first is reduced The color that the saturation degree of image can be just reduced in the first image is made an uproar the composition containing color of pixel so that the shooting of mobile terminal 400 Head can capture reference object, and obvious degree of the pixel in display of making an uproar of the color in the image caught decreases. So as to improve the definition of image so that reference object can be clear either in preview image or in shooting image It is clear visible.
Therefore, after the first image that 403 pairs of unit of reduction is collected carries out reduction saturation degree processing, it can obtain Second image so that the second image than the color that the first image for collecting of script is included make an uproar pixel obvious degree Reduce, so as to improve the definition of collection image.
Output unit 404, for exporting second image at image preview interface.
In the embodiment of the present invention, the second image is obtained when reduction by 403 pair of first image of unit carries out reduction saturation degree processing When, output unit 404 just can be by second image output on image preview interface.And shooting is preset in being directed to that user sees The preview image of reference object is to reduce the second image after saturation degree processing in visual angle.
It can be seen that, in the mobile terminal described by Fig. 4, preset when the brightness value for detecting mobile terminal current environment is less than During luminance threshold, the mobile terminal can increase to the current sensitivity of camera target sensitivity, and control the camera with Target sensitivity carries out IMAQ to the reference object preset in shooting visual angle, obtains the first image, reduces by first image Saturation degree, to obtain the second image, and export at image preview interface second image.It is mobile by the embodiment of the present invention Terminal can increase the sensitivity of camera automatically under half-light environment, can pass through drop when the sensitivity after with increase gathers image The saturation degree of low image reduces in image the vividness of colored noise, so as to effectively reduce colored noise so that image is more Plus it is clear, lift the visuality of image.
Referring to Fig. 5, Fig. 5 is the structural representation of another mobile terminal disclosed in the embodiment of the present invention.Wherein, Fig. 5 Shown mobile terminal 400 is to optimize what is obtained on the basis of the mobile terminal 400 shown in Fig. 4.As shown in figure 5, should Mobile terminal 400 can also include with lower unit:
Generation unit 405, for when receiving photographing instruction, institute in the second image obtained according to reduction unit 403 The pixel value for having pixel generates image of taking pictures.
In the embodiment of the present invention, reduction unit 403 obtains second after reduction saturation degree processing is carried out to the first image Image, then output unit 404 will be by second image output at image preview interface.And when user presses shutter key, The mobile terminal 400 will receive photographing instruction, and generation unit 405 is so as to respond the photographing instruction, according to the second image The pixel value generation of all pixels point is taken pictures in image, the i.e. image of taking pictures all pictures in the pixel value and the second image of pixel The pixel value of vegetarian refreshments is identical.So not only the image definition that user views on image preview interface is lifted, The definition for image of taking pictures can be also improved simultaneously, so as to lift Consumer's Experience.
In the embodiment of the present invention, above-mentioned reduction unit 403 can include obtaining subelement 4031 and adjustment subelement 4032, wherein:
Above-mentioned acquisition subelement 4031, the pixel value for obtaining all pixels point in first image.
In the specific implementation, when control unit 402 controls camera with target sensitivity to presetting the shooting in shooting visual angle When object progress IMAQ obtains the first image, all pixels point in first image can be obtained first by obtaining subelement 4031 Pixel value.Wherein, the pixel value includes any one or a few in rgb value, gray value, grey decision-making.And the present invention is implemented In example, the pixel value mainly refers in particular to the rgb value of pixel.
Above-mentioned adjustment subelement 4032, for adjusting predeterminable area in first image according to default first gain coefficient The pixel value of all pixels point, and adjust according to default second gain coefficient remaining in first image in addition to predeterminable area The pixel value of all pixels point in region, obtains the second image.
The pixel in the specific implementation, color in the image gathered due to camera under ISO (target sensitivity) is made an uproar Than larger, the color of particularly image surrounding is made an uproar pixel.Because the corresponding surrounding of image is the four of camera image sensor In week, due to the dark in environment, imaging sensor light income is not very sufficient, and especially the light income of its surrounding can be compared It is relatively low in center section, so after opto-electronic conversion is carried out, the electric current of surrounding will be less than normal, so as to cause the surrounding of image to be made an uproar The interference of sound is bigger than normal, and the color noise for being reacted to image surrounding when on image preview interface will be than the color noise in the middle of image It is many.
Therefore, reduction unit 403 can be directed to color in the first image when carrying out reduction saturation degree processing to the first image Make an uproar more serious region saturation degree reduction degree it is big, and being made an uproar for color in the first image is not particularly evident or is not very The degree of serious region saturation degree reduction is smaller.That is, the predeterminable area be in the first image color noise it is more Region.And in general, predeterminable area is the region of the certain area in outside of the first image, and the determination of predeterminable area may Can be different due to the brightness difference of external environment light, the embodiment of the present invention is not limited.
In general, the image of camera collection is shown on image preview interface or generated before shooting image, all can Carry out saturation degree processing.Therefore, the brightness (i.e. lightness) of pixel value of all pixels point of image is gathered under ISO originally Body increased, if the gain coefficient of camera is certain, then the chroma of all pixels point will increase in image, so former The color of the colored noise of this presence will be more bright-coloured, i.e., more obvious.
It should be noted that due to the ratio that saturation degree is chroma and lightness, so work as the sensitivity of lifting camera, that The lightness of the pixel of the image collected will increase, if saturation degree is certain, then the coloured silk of the pixel of the image Degree will also increase, and the color of the image makes an uproar pixel so as to which meeting is more obvious.And in the embodiment of the present invention, reduce image saturation The ratio of image chroma and lightness is exactly reduced, that is, reduces from by the rgb value of the image slices vegetarian refreshments of collection and is mapped to image Gain coefficient when preview interface or imaging.
Therefore, when 403 pair of first image of reduction unit carries out reduction saturation degree processing, the gain system of camera can be reduced Number, then in the case of the lightness of image slices vegetarian refreshments is increased, it is ensured that the chroma of pixel does not have obvious increase.Cause This can play the obvious degree for reducing color noise in image in this way.
Specifically, default first gain coefficient is less than default second gain coefficient, and preset the first gain coefficient and default Second gain coefficient is respectively less than the current gain coefficient of camera.So adjustment subelement 4032 can obtain subelement 4031 After the pixel value for getting the first image all pixels point, to the pixel of predeterminable area (i.e. color make an uproar more serious region) Pixel value adjusted using default first gain coefficient, that is to say, that will default first gain coefficient with owning in predeterminable area The pixel value of pixel is multiplied, and respectively obtains the corresponding new pixel value of each pixel;And to non-predeterminable area, (i.e. color, which is made an uproar, is not Very serious intermediate region) the pixel value of pixel adjusted using default second gain coefficient, that is to say, that by this default the Two gain coefficients are multiplied with the pixel value of all pixels point in non-predeterminable area, respectively obtain the corresponding new pixel of each pixel Value.So targetedly reduce the saturation degree of the first image (reduces saturation to predeterminable area and non-predeterminable area subregion Degree), the second higher image of definition can be obtained, so that the visuality of the reference object included in the second image is Improve, lift Consumer's Experience.
Further, the predeterminable area, which can also be, includes character image or specific reference object image in the first image Region, the embodiment of the present invention do not limit.
For example, when acquisition subelement 4031 gets the pixel value of the first image all pixels point, it can distinguish The region of the preset area centered on the first image center is obtained, is non-predeterminable area, and in addition to intermediate region is pre- If region.If the current gain coefficient of the camera of mobile terminal 400 is 1.5, then the mobile terminal 400 will can be preset The gain coefficient reduction by 15% of pixel is so as to obtain default first gain coefficient in region, and by pixel in non-predeterminable area Gain coefficient reduction by 10% so as to obtaining default second gain coefficient.Then adjustment subelement 4032 reuses default first and increased Beneficial coefficient is adjusted to the pixel value of all pixels point in predeterminable area, using default second gain coefficient in the first image The pixel value of all pixels point is adjusted in remaining region in addition to predeterminable area, so as to obtain after pixel value adjustment First image, i.e. the second image.
It should be noted that obtaining, subelement 4031 can perform the first acquisition subelement respectively and the second acquisition is single Operation performed by member, and the first adjustment subelement and the second adjustment subelement can also be performed respectively by adjusting subelement 4032 Performed operation, the embodiment of the present invention is repeated no more.
As a kind of feasible embodiment, the reduction unit 403 can also include reducing subelement 4033, identification son list Member 4034 and determination subelement 4035, wherein:
Above-mentioned reduction subelement 4033, for the current gain coefficient of the camera to be decreased into default 3rd gain system Number.
In the specific implementation, the gain coefficient of the camera of mobile terminal 400 is usually fixed, therefore control unit 402 exists Control camera is obtained with target sensitivity to the reference object progress IMAQ preset in shooting visual angle after the first image, In order to ensure the definition of preview image or image of taking pictures, the current gain coefficient of camera can be dropped by reducing subelement 4033 It is low, 8% is such as reduced, so as to obtain default 3rd gain coefficient.
That is, default 3rd gain coefficient can be pre-set more relatively low than camera current gain coefficient One gain coefficient or the gain coefficient for calculating current gain coefficient reduction special ratios or particular value two, The embodiment of the present invention is not limited.
Above-mentioned adjustment subelement 4032, is additionally operable to adjust all pictures in first image according to default 3rd gain coefficient The rgb value of vegetarian refreshments, obtains the second image.
In the specific implementation, the current gain coefficient of camera is decreased to preset the 3rd gain system when reducing subelement 4033 Number, and subelement 4031 is obtained when getting the rgb value of all pixels point in the first image, adjustment subelement 4032 will be used Default 3rd gain coefficient adjusts the rgb value of all pixels point in first image, so as to obtain the second image.
That is, the mobile terminal 400 is after the first image is collected, whole first image can be carried out first Reduce saturation degree processing.
Above-mentioned identification subelement 4034, for recognizing second figure according to the rgb value of all pixels point in second image The color of picture is made an uproar pixel.
In the specific implementation, due to color make an uproar pixel the Color Channel of R, G, B tri- in a certain Color Channel value compared to it Two color channel values of remaininging are high, so adjustment subelement 4032 obtains second integrally carrying out reduction saturation degree processing to the first image Also there is color after image, in the second image in fact to make an uproar pixel, simply color degree of making an uproar is lower than the first image.Therefore, obtain Subelement 4031 can obtain the rgb value of all pixels point in the second image again, then recognize subelement 4034 according to its rgb value To identify that the color included in the second image is made an uproar pixel.
As an example it is assumed that the rgb value for the pixel that the second image includes be respectively (123,202,212), (132, 153,143), (23,242,10), (237,15,0), (142,168,135), (252,14,31), then can by above-mentioned rgb value To determine that outstanding pixel of making an uproar includes three.
Determination subelement 4035, each color for being identified according to above-mentioned identification subelement 4034 is made an uproar the RGB of pixel Value determines that the make an uproar color of pixel of the color is made an uproar type.
In the specific implementation, color is made an uproar, type includes any one in red R noise, green G noises and blueness B noises, The embodiment of the present invention is not limited.Therefore, the institute that identifies in the second image in identification subelement 4034 is coloured make an uproar pixel it Afterwards, can also be made an uproar according to each color rgb value of pixel of determination subelement 4035 determines which kind of color color pixel of making an uproar belongs to Make an uproar type.Wherein, each color pixel of making an uproar is only possible to make an uproar type for a kind of color.Under normal circumstances, using the shooting of electronic product When head is taken pictures under half-light environment, obtained red noise and green noise is on the high side, and blue noise is more rare.
Specifically, for a certain pixel, if the value for having a Color Channel in its Color Channel of R, G, B tri- compares Height, and the value of remaining two Color Channel is very low, then be assured that the pixel is made an uproar pixel for color.Further, if Be R passages value it is higher, then the color make an uproar pixel color make an uproar type just be red R noise;And if the value of G passages compared with It is high, then the make an uproar color type of making an uproar of pixel of the color is just green G noises.
For example, in the rgb value of the above-mentioned pixel enumerated, (23,242,10), (237,15,0) and (252, 14,31) corresponding pixel is that color is made an uproar pixel, wherein the color of (23,242,10) corresponding pixel points is made an uproar, type is G noises, and The color of (237,15,0) and (252,14,31) corresponding pixel makes an uproar type for R noises.
Further, above-mentioned determination subelement 4035, is additionally operable to make an uproar the color included in second image color in type The most color of pixel quantity of making an uproar type of making an uproar is defined as aim colour and made an uproar type, and determines that the aim colour is made an uproar the corresponding target face of type Chrominance channel.
It should be noted that determination subelement 4035 can perform the first determination subelement respectively and the second determination is single Operation performed by member, the embodiment of the present invention will not be repeated here.
In the specific implementation, color of object passage includes one kind in R passages, G passages or channel B, its color of object passage Made an uproar type depending on aim colour, the embodiment of the present invention is not limited.Therefore, in identification subelement 4034 identifies the second image Comprising the coloured pixel of making an uproar of institute, and determination subelement 4035 determines that the make an uproar color of pixel of each color is made an uproar after type, really Stator unit 4035 will count the color that each color makes an uproar included by type respectively and make an uproar the quantity of pixel.Then from these three colors The color most color of pixel quantity of making an uproar is chosen in type of making an uproar to make an uproar type, and is defined as aim colour makes an uproar type.
The pixel that is, meeting of determination subelement 4035 color that statistics R noises, G noises and B noises are included respectively is made an uproar The quantity of point, if in R noises color make an uproar pixel quantity it is most, then R noises are just defined as aim colour and made an uproar type.
Further, when determination subelement 4035 determine aim colour make an uproar type when, it is possible to it is determined that for the aim colour The corresponding color of object passage of type of making an uproar.For example, when aim colour makes an uproar type for R noises, its corresponding color of object passage is For R passages;When aim colour makes an uproar type for G noises, its corresponding color of object passage is G passages;When aim colour is made an uproar type During for B noises, its corresponding color of object passage is channel B.
Further, above-mentioned adjustment subelement 4032, is additionally operable to, according to default 4th gain coefficient, adjust second image The value of color of object passage in the rgb value of all pixels point, with the second image after being adjusted.
In the specific implementation, default 4th gain coefficient is more than 0 and less than 1 number, the embodiment of the present invention is not limited.Cause This, when determination subelement 4035 determines color of object passage, adjustment subelement 4032 will use default 4th gain system Several values to the color of object passage of the rgb value of all pixels point in second image are adjusted, so that after being adjusted Second image.
That is, controlling camera using target sensitivity to presetting the shooting in shooting visual angle in control unit 402 Object progress IMAQ is obtained after the first image, and the concrete mode for the saturation degree that reduction unit 403 reduces the first image is: Reduction saturation degree processing can be integrally carried out to the first image first, so as to obtain the second image.It is then determined that subelement 4035 is again Determine in the second image which kind of color pixel quantity of making an uproar is more, when the type it is determined that the outstanding most color of pixel quantity of making an uproar is made an uproar, Adjusting subelement 4032 will be to the value of the color of object passage of all pixels point in second image by being multiplied by the default 4th Gain coefficient reduces saturation degree, wherein, the color of object passage is that color is made an uproar in type and made an uproar comprising make an uproar pixel most color of color The corresponding Color Channel of type.Saturation degree is targetedly reduced according to color type of making an uproar so as to realize, pin can have been realized Denoising to property, improves image definition, so as to further lift Consumer's Experience.
As an example it is assumed that default 4th gain coefficient is 0.85, then determine target face in determination subelement 4035 Chrominance channel is after G passages, indicates that color makes an uproar the more type of pixel for R noises in second image, therefore adjustment is single The value of G Color Channels in all pixels point in second image will be multiplied by 0.85 by member 4032, to reduce G noises to the second figure The influence of picture.
In the embodiment of the present invention, output unit 404 can be in the concrete mode that image preview interface exports the second image: The second image after image preview interface output adjustment subelement 4032 adjusts the second image.
It can be seen that, in the mobile terminal described by Fig. 5, mobile terminal is carrying out reduction saturation degree processing to the first image When, reduction saturation degree in subregion can be carried out to the first image:Namely by the pixel of pixel in the first image predeterminable area The gain coefficient of value is adjusted to lower than current gain coefficient, i.e., adjust all pictures in predeterminable area by default first gain coefficient The pixel value of vegetarian refreshments;The gain coefficient of the pixel value of pixel in first image non-predeterminable area is also adjusted to than current gain Coefficient is low, but higher than default first gain coefficient, i.e., adjust all pictures in non-predeterminable area by default second gain coefficient The pixel value of vegetarian refreshments.It can be unlikely to make the color of all reference objects when reducing the first image saturation in this way Distortion, and the more serious region that can be made an uproar simultaneously to color carries out effective denoising, lifting image is clear in preview or imaging Clear degree.Further, after mobile terminal can gather the first image under ISO, the first image is integrally carried out first Saturation degree processing is reduced, the second image is obtained, made an uproar type it is then determined that going out the most color of pixel quantity of making an uproar of color in the second image, And the value for the corresponding Color Channel of type of being made an uproar to the color in all pixels point in second image carries out reduction adjustment, so as to reduce The saturation degree of the color, with realize emphasis color is made an uproar pixel reduction saturation degree processing.Color can so be reduced to make an uproar to preview graph The influence of the definition of picture or obtained image of taking pictures of taking pictures, improves image definition and visuality, and further lifting is used Experience at family.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (4)

1. a kind of image processing method, it is characterised in that including:
When the brightness value for detecting current environment is less than predetermined luminance threshold value, the current sensitivity of camera is increased into target Sensitivity;
Control the camera to carry out IMAQ to the reference object preset in shooting visual angle with the target sensitivity, obtain First image;
The saturation degree of described first image is reduced, to obtain the second image;
Second image is exported at image preview interface;
Wherein, the saturation degree of the reduction described first image, to obtain the second image, including:
Obtain the pixel value of all pixels point in described first image;
The current gain coefficient of the camera is decreased to default 3rd gain coefficient;
According to the pixel value of all pixels point in the default 3rd gain coefficient adjustment described first image, the second figure is obtained Picture;
Wherein, the pixel value includes rgb value, described according to institute in the default 3rd gain coefficient adjustment described first image There is the pixel value of pixel, obtain after the second image, methods described also includes:
Recognize that the color of second image is made an uproar pixel according to the rgb value of all pixels point in second image;
Determine that the make an uproar color of pixel of the color is made an uproar type according to the make an uproar rgb value of pixel of each color, color type of making an uproar includes One kind in red R noise, green G noises or blueness B noises;
Color included in the second image most color of the pixel quantity type of making an uproar of making an uproar of color in type of making an uproar is defined as target Color is made an uproar type, and determines that the aim colour is made an uproar the corresponding color of object passage of type, and the color of object passage includes R passages, G One kind in passage or channel B;
According to default 4th gain coefficient, the color of object adjusted in the rgb value of the second image all pixels point leads to The value in road, with second image after being adjusted, default 4th gain coefficient is more than 0 and less than 1;
Wherein, it is described in image preview interface output second image, including:
Second image after the output adjustment of image preview interface.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
When receiving photographing instruction, image of taking pictures is generated according to the pixel value of all pixels point in second image.
3. a kind of mobile terminal, it is characterised in that including:
Adding unit, for when the brightness value for detecting current environment is less than predetermined luminance threshold value, by the current sense of camera Luminosity increases to target sensitivity;
Control unit, for controlling the camera to be carried out with the target sensitivity to the reference object preset in shooting visual angle IMAQ, obtains the first image;
Reduce unit, the saturation degree for reducing described first image, to obtain the second image;
Output unit, for exporting second image at image preview interface;
Wherein, the reduction unit includes the second acquisition subelement, reduces subelement and the second adjustment subelement, wherein:
Described second obtains subelement, the pixel value for obtaining all pixels point in described first image;
The reduction subelement, for the current gain coefficient of the camera to be decreased into default 3rd gain coefficient;
The second adjustment subelement, for according to all pixels in the default 3rd gain coefficient adjustment described first image The pixel value of point, obtains the second image;
Wherein, the reduction unit also includes identification subelement, the first determination subelement and the second determination subelement, wherein:
The identification subelement, second image is recognized for the rgb value according to all pixels point in second image Color is made an uproar pixel;
First determination subelement, for determining that the color is made an uproar the color of pixel according to the make an uproar rgb value of pixel of each color Make an uproar type, color type of making an uproar includes one kind in red R noise, green G noises or blueness B noises;
Second determination subelement, for the color in type of making an uproar of the color included in second image to be made an uproar into pixel quantity most Many colors type of making an uproar is defined as aim colour and made an uproar type, and determines that the aim colour is made an uproar the corresponding color of object passage of type, described Color of object passage includes one kind in R passages, G passages or channel B;
The second adjustment subelement, is additionally operable to, according to default 4th gain coefficient, adjust the second image all pixels point Rgb value in the color of object passage value, with second image after being adjusted, the default 4th gain system Number is more than 0 and less than 1;
The output unit is in the concrete mode that image preview interface exports second image:
Second image after the output adjustment of image preview interface.
4. mobile terminal according to claim 3, it is characterised in that the mobile terminal also includes:
Generation unit, for when receiving photographing instruction, being generated according to the pixel value of all pixels point in second image Take pictures image.
CN201510490737.0A 2015-08-11 2015-08-11 A kind of image processing method and mobile terminal Expired - Fee Related CN105100636B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510490737.0A CN105100636B (en) 2015-08-11 2015-08-11 A kind of image processing method and mobile terminal
CN201710995175.4A CN107635103B (en) 2015-08-11 2015-08-11 Image processing method, mobile terminal and medium product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510490737.0A CN105100636B (en) 2015-08-11 2015-08-11 A kind of image processing method and mobile terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201710995175.4A Division CN107635103B (en) 2015-08-11 2015-08-11 Image processing method, mobile terminal and medium product

Publications (2)

Publication Number Publication Date
CN105100636A CN105100636A (en) 2015-11-25
CN105100636B true CN105100636B (en) 2017-11-07

Family

ID=54580075

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510490737.0A Expired - Fee Related CN105100636B (en) 2015-08-11 2015-08-11 A kind of image processing method and mobile terminal
CN201710995175.4A Active CN107635103B (en) 2015-08-11 2015-08-11 Image processing method, mobile terminal and medium product

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710995175.4A Active CN107635103B (en) 2015-08-11 2015-08-11 Image processing method, mobile terminal and medium product

Country Status (1)

Country Link
CN (2) CN105100636B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635103A (en) * 2015-08-11 2018-01-26 广东欧珀移动通信有限公司 A kind of image processing method and mobile terminal and medium product

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021697B (en) * 2017-12-19 2020-11-06 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment, terminal equipment and storage medium
CN108280811B (en) * 2018-01-23 2021-07-06 哈尔滨工业大学深圳研究生院 Image denoising method and system based on neural network
CN109118447B (en) * 2018-08-01 2021-04-23 Oppo广东移动通信有限公司 Picture processing method, picture processing device and terminal equipment
CN111351078B (en) * 2018-12-20 2022-05-03 九阳股份有限公司 Lampblack identification method of range hood and range hood
CN110110638B (en) * 2019-04-29 2019-12-17 江苏省人民医院(南京医科大学第一附属医院) control command analysis system for hospital disinfection room
CN112104812B (en) * 2019-06-18 2023-11-07 北京京东尚科信息技术有限公司 Picture acquisition method and device
CN110519485B (en) * 2019-09-09 2021-08-31 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN113281341A (en) * 2021-04-19 2021-08-20 唐山学院 Detection optimization method of double-sensor surface quality detection system of hot-dip galvanized strip steel
CN115665557B (en) * 2022-12-28 2023-06-27 北京蓝色星际科技股份有限公司 Image processing method and device and image acquisition equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006050233A (en) * 2004-08-04 2006-02-16 Konica Minolta Photo Imaging Inc Image pickup apparatus, image processor, image processing method and program
CN101668108A (en) * 2008-09-05 2010-03-10 比亚迪股份有限公司 Method and system for adjusting color saturation of image
CN102082897A (en) * 2004-09-30 2011-06-01 晨星半导体股份有限公司 Method and device for color noise suppression
CN103051837A (en) * 2012-12-17 2013-04-17 广东欧珀移动通信有限公司 Method and device for improving effect of camera shooting in dark
CN103067661A (en) * 2013-01-07 2013-04-24 华为终端有限公司 Image processing method, image processing device and shooting terminal
CN104793742A (en) * 2015-04-09 2015-07-22 广东欧珀移动通信有限公司 Shooting previewing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263926A (en) * 2010-05-31 2011-11-30 鸿富锦精密工业(深圳)有限公司 Electronic equipment and image processing method thereof
JP2013219452A (en) * 2012-04-05 2013-10-24 Sony Corp Color signal processing circuit, color signal processing method, color reproduction evaluation method, imaging apparatus, electronic apparatus and testing apparatus
CN105100636B (en) * 2015-08-11 2017-11-07 广东欧珀移动通信有限公司 A kind of image processing method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006050233A (en) * 2004-08-04 2006-02-16 Konica Minolta Photo Imaging Inc Image pickup apparatus, image processor, image processing method and program
CN102082897A (en) * 2004-09-30 2011-06-01 晨星半导体股份有限公司 Method and device for color noise suppression
CN101668108A (en) * 2008-09-05 2010-03-10 比亚迪股份有限公司 Method and system for adjusting color saturation of image
CN103051837A (en) * 2012-12-17 2013-04-17 广东欧珀移动通信有限公司 Method and device for improving effect of camera shooting in dark
CN103067661A (en) * 2013-01-07 2013-04-24 华为终端有限公司 Image processing method, image processing device and shooting terminal
CN104793742A (en) * 2015-04-09 2015-07-22 广东欧珀移动通信有限公司 Shooting previewing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635103A (en) * 2015-08-11 2018-01-26 广东欧珀移动通信有限公司 A kind of image processing method and mobile terminal and medium product
CN107635103B (en) * 2015-08-11 2020-02-14 Oppo广东移动通信有限公司 Image processing method, mobile terminal and medium product

Also Published As

Publication number Publication date
CN107635103B (en) 2020-02-14
CN107635103A (en) 2018-01-26
CN105100636A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105100636B (en) A kind of image processing method and mobile terminal
CN106375606B (en) Control method, device and system for display screen of intelligent communication equipment in call state
JP4677753B2 (en) Moving image processing apparatus and method
CN104995912B (en) Camera head, image processing apparatus and image processing method
CN110766621B (en) Image processing method, image processing device, storage medium and electronic equipment
US8229217B2 (en) Image processing method and apparatus, image processing program and medium storing this program
CN110136071A (en) A kind of image processing method, device, electronic equipment and storage medium
CN100431340C (en) Solid imaging equipment
US8411176B2 (en) Image input device
US7880783B2 (en) Image pickup apparatus and method
CN110022469A (en) Image processing method, device, storage medium and electronic equipment
CN107038680A (en) The U.S. face method and system that adaptive optical shines
CN102104728A (en) Image processing apparatus and image sensing apparatus
KR20110140089A (en) Image processing apparatus, image taking apparatus, image processing method and image processing program
CN111064899A (en) Exposure parameter adjusting method and device
CN108932696B (en) Signal lamp halo suppression method and device
CN108629738B (en) Image processing method and device
US9177396B2 (en) Image processing apparatus and image processing method
KR20060080217A (en) Method and system in a digital image processing chain for adjusting a colour balance, corresponding equipment, and software means for implementing the method
CN101867826B (en) Image processing apparatus and image processing method
JP2003259389A (en) Imaging unit
CN106550227A (en) A kind of image saturation method of adjustment and device
WO2018100950A1 (en) Image processing device, digital camera, image processing program, and recording medium
CN101854469B (en) Image processing apparatus, and image processing method
JP2008305122A (en) Image-processing apparatus, image processing method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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

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

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

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

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171107