CN105100636A - Image processing method and mobile terminal - Google Patents

Image processing method and mobile terminal Download PDF

Info

Publication number
CN105100636A
CN105100636A CN201510490737.0A CN201510490737A CN105100636A CN 105100636 A CN105100636 A CN 105100636A CN 201510490737 A CN201510490737 A CN 201510490737A CN 105100636 A CN105100636 A CN 105100636A
Authority
CN
China
Prior art keywords
image
uproar
gain coefficient
look
pixel
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.)
Granted
Application number
CN201510490737.0A
Other languages
Chinese (zh)
Other versions
CN105100636B (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

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention relates to the field of electronic technology, and discloses an image processing method and a mobile terminal. The method comprises steps: when a brightness value of the current environment is detected to be smaller than a preset brightness threshold, the mobile terminal increases current sensitivity of a camera to target sensitivity, the camera is controlled to use the target sensitivity to carry out image acquisition on a shooting object in a preset shooting view angle, a first image is obtained, saturation of the first image is reduced, a second image is thus obtained, and the second image is outputted on an image preview interface. Through the embodiment of the invention, the mobile terminal automatically increases the sensitivity of the camera in a dark environment, when the increased sensitivity is used for acquiring the image, brightness of color noise points in the image is reduced through reducing the saturation of the image, the color noise points can be effectively reduced, the image is more distinct, and visibility of the image is enhanced.

Description

A kind of image processing method and mobile terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of image processing method and mobile terminal.
Background technology
Present mobile terminal such as smart mobile phone, panel computer etc. are all configured with camera, and user can be undertaken taking or making a video recording by camera.Camera, after collection image, can carry out Graphics Processing according to specific saturation to the image gathered, then be presented in image preview interface.Under normal circumstances, if user uses camera to take under half-light environment, because the light of shooting environmental is more weak, the brightness of the image of camera collection is lower, visually shows as smudgy.In prior art, in order to improve the brightness of the image gathered under half-light environment, mobile terminal generally can improve the photosensitivity ISO of camera automatically.But along with the photosensitivity of camera improves, the brightness of its image gathered also can improve, and in image, visible colored noise also can increase, thus has a strong impact on definition and the visuality of image.
Summary of the invention
The embodiment of the invention discloses a kind of image processing method and mobile terminal, the look noise of image can be reduced under half-light environment, thus improve definition and the visuality of image.
Embodiment of the present invention first aspect discloses a kind of image processing method, comprising:
When detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera is increased to target photosensitivity;
Control described camera, with described target photosensitivity, IMAQ is carried out to the reference object in default shooting visual angle, obtain the first image;
Reduce the saturation of described first image, to obtain the second image;
Described second image is exported at image preview interface.
As a kind of feasible execution mode, the saturation of described first image of described reduction, to obtain the second image, comprising:
Obtain the pixel value of all pixels in described first image;
According to the pixel value of all pixels of predeterminable area in described first image of default first gain coefficient adjustment, and the pixel value of all pixels in all the other regions in described first image except described predeterminable area is adjusted according to default second gain coefficient, obtain the second image; Wherein, described first gain coefficient of presetting is less than described default second gain coefficient, and the described current gain coefficient preset the second gain coefficient and be less than described camera.
As the execution mode that another kind is feasible, the saturation of described first image of described reduction, to obtain the second image, comprising:
Obtain the pixel value of all pixels in described first image;
The current gain coefficient of described camera is decreased to default 3rd gain coefficient;
According to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, obtain the second image.
As the execution mode that another is feasible, described pixel value comprises rgb value, and described according to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, after obtaining the second image, described method also comprises:
According to the rgb value identification of all pixels in described second image, the look of the second image is made an uproar pixel;
Determine that the make an uproar look of pixel of this look is made an uproar type according to the make an uproar rgb value of pixel of each described look, described look type of making an uproar comprises one in red R noise, green G noise or blue B noise;
In type of being made an uproar by the look comprised in described second image, the look maximum look of pixel quantity type of making an uproar of making an uproar is defined as aim colour and makes an uproar type, and determine that described aim colour is made an uproar color of object passage corresponding to type, described color of object passage comprises the one in R passage, G passage or channel B;
According to default 4th gain coefficient, adjust the value of the described color of object passage in the rgb value of all pixels of described second image, with described second image after being adjusted, described the 4th gain coefficient of presetting is greater than 0 and is less than 1;
Wherein, described at described second image of image preview interface output, comprising:
Described second image after image preview interface exports adjustment.
As the execution mode that another is feasible, described method also comprises:
When receiving photographing instruction, the pixel value according to all pixels in described second image generates image of taking pictures.
Accordingly, embodiment of the present invention second aspect discloses a kind of mobile terminal, comprising:
Increasing unit, for when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera being increased to target photosensitivity;
Control unit, carrying out IMAQ with described target photosensitivity to the reference object in default shooting visual angle for controlling described camera, obtaining the first image;
Reduce unit, for reducing the saturation of described first image, to obtain the second image;
Output unit, for exporting described second image at image preview interface.
As a kind of feasible execution mode, described reduction unit comprises the first acquisition subelement and the first adjustment subelement, wherein:
Described first obtains subelement, for obtaining the pixel value of all pixels in described first image;
Described first adjustment subelement, for the pixel value according to all pixels of predeterminable area in described first image of default first gain coefficient adjustment, and the pixel value of all pixels in all the other regions in described first image except described predeterminable area is adjusted according to default second gain coefficient, obtain the second image; Wherein, described first gain coefficient of presetting is less than described default second gain coefficient, and the described current gain coefficient preset the second gain coefficient and be less than described camera.
As the execution mode that another kind is feasible, described reduction unit comprises the second acquisition subelement, reduces subelement and the second adjustment subelement, wherein:
Described second obtains subelement, for obtaining the pixel value of all pixels in described first image;
Described reduction subelement, for being decreased to default 3rd gain coefficient by the current gain coefficient of described camera;
Described second adjustment subelement, for according to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, obtains the second image.
As the execution mode that another is feasible, described reduction unit also comprises recognin unit, first and determines that subelement determined by subelement and second, wherein:
Described recognin unit, the look for the second image according to the rgb value identification of all pixels in described second image is made an uproar pixel;
Described first determines subelement, and the rgb value for pixel of making an uproar according to each described look determines that the make an uproar look of pixel of this look is made an uproar type, and described look type of making an uproar comprises one in red R noise, green G noise or blue B noise;
Described second determines subelement, be defined as aim colour make an uproar type for the maximum look of the pixel quantity type of making an uproar of making an uproar of look in type that the look comprised in described second image is made an uproar, and determine that described aim colour is made an uproar color of object passage corresponding to type, described color of object passage comprises the one in R passage, G passage or channel B;
Described second adjustment subelement, also preset the 4th gain coefficient for basis, adjust the value of the described color of object passage in the rgb value of all pixels of described second image, with described second image after being adjusted, described the 4th gain coefficient of presetting is greater than 0 and is less than 1;
Described output unit exports described second image concrete mode at image preview interface is:
Described second image after image preview interface exports adjustment.
As the execution mode that another is feasible, described mobile terminal also comprises:
Generation unit, for when receiving photographing instruction, the pixel value according to all pixels in described second image generates image of taking pictures.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera can be increased to target photosensitivity by mobile terminal, and control this camera, with target photosensitivity, IMAQ is carried out to the reference object in default shooting visual angle, obtain the first image, reduce the saturation of this first image, to obtain the second image, and export this second image at image preview interface.Pass through the embodiment of the present invention, mobile terminal automatically can increase the photosensitivity of camera under half-light environment, the vividness of colored noise in image can be reduced by the saturation reducing image when gathering image with the photosensitivity after increase, thus the colored noise of effective reduction, make image more clear, promote the visuality of image.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of image processing method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of image processing method disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the embodiment of the present invention another image processing method disclosed;
Fig. 4 is the structural representation of a kind of mobile terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of 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, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of image processing method and mobile terminal, the look noise of image can be reduced under half-light environment, thus improve definition and the visuality of image.Below be described in detail respectively.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of image processing method disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 1 can be applied to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device (MobileInternetDevices, MID), the mobile terminal such as personal digital assistant (PersonalDigitalAssistant, PDA), media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet.As shown in Figure 1, this image processing method can comprise the following steps:
S101, when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera is increased to target photosensitivity by mobile terminal.
In the embodiment of the present invention, when opening the camera applications of mobile terminal, mobile terminal can detect the brightness value of its current residing environment automatically.When judging that this brightness value is less than predetermined luminance threshold value, just show that this mobile terminal is current and be in half-light environment, and light is more weak.Therefore, the current photosensitivity of camera will be increased to target photosensitivity by this mobile terminal.
Usually, mobile terminal is by the sensitivity in adjustment camera between photophase or merges sensitivity speck and adjust the photosensitivity of camera, that is by the light sensitive degree of promotion feeling optical device or merge the object that several adjacent sensitivity speck reaches promotion feeling luminosity.Sensor devices has a respond, and this respond is changeless, and the photosensitivity so promoting camera can be realized by two kinds of modes: the brightness and contrast improving each pixel by force; As long as the task of using multiple pixel jointly to complete an original pixel to have come.
In general, below photosensitivity ISO50 is low speed, can obtain very level and smooth, fine and smooth photo at this section.As long as condition is permitted, as long as photo can be clapped clear, just use low speed as far as possible, such as, as long as can the depth of field be ensured, large one-level aperture would rather be opened, also photosensitivity is not improved a gear.And ISO100 ~ 200 belong to middle photosensitivity, need to think better of this photo in this section and do what use, be amplified to any degree, if can noise be accepted, middle photosensitivity setting reduces the difficulty of handheld camera shooting, improve the coefficient of safety of taking under low light conditions, success rate is improved.More than ISO400 is ISO, obvious this section of noise, uses such setting, the importance of the theme content of shooting, often beyond the quality of image, the condition of taking sometimes is after all too poor, photographed the photo that a quality is slightly poor, always good less than image than basic seizure.
Therefore, when ambient light is darker, if user continues to make user's camera take pictures, so just show that the requirement of user is only to capture reference object, and do not lie in the quality of image, so this mobile terminal is when detecting that the brightness value of current environment is less than predetermined threshold value, the current photosensitivity of camera will be promoted to target photosensitivity.
It should be noted that, the photosensitivity of camera is mainly promoted to ISO by the embodiment of the present invention under the environment that half-light is more serious.Therefore, target photosensitivity be greater than 400 ISO, and the noise that the ISO being generally greater than 2400 is brought can be more serious.
S102, this mobile terminal control this camera and carry out IMAQ with this target photosensitivity to the reference object in default shooting visual angle, obtain the first image.
In the embodiment of the present invention, after the current photosensitivity of camera is increased to target photosensitivity by mobile terminal, this mobile terminal will control this camera and carry out IMAQ with this target photosensitivity to the reference object in default shooting visual angle, thus obtains the first image.
In the embodiment of the present invention, because target photosensitivity is ISO, so shutter speed faster can be obtained under target photosensitivity.But the image quality brought because photosensitivity is lower is finer and smoother, so the image quality of ISO is then that noise is larger.Therefore, the noise of the image that the more current photosensitivity of noise that mobile terminal controls the first image that camera collects with this target photosensitivity collects is much bigger.
It should be noted that, noise mainly refers to that light is receiving as Received signal strength and coarse part in the image produced in the process exported by CCD (imageing sensor).Camera for mobile terminal is said, inner imageing sensor be bound at work to be subject in various degree from the photoelectromagnetic interference between peripheral circuit and pixel own, be exactly that the picture shot is bound to there is noise in brief, this is inevitable, the weight of the just degree that we see.And these noises originally existed will be amplified further with the image that ISO collects, make the noise of image more obvious.
Therefore, the noise that mobile terminal control camera carries out to the reference object in default shooting visual angle the first image that IMAQ obtains with target photosensitivity is obvious.And colored noise in the image generally collected under half-light environment (also can be called look make an uproar pixel, look noise) is obvious.Wherein, colored noise is that the look value of a certain Color Channel in the red, green of pixel and blue channel of making an uproar is comparatively large and produce.
S103, this mobile terminal reduce the saturation of this first image, to obtain the second image.
In the embodiment of the present invention, saturation may be defined as chroma divided by lightness, refers to the bright-coloured degree of color, also claims the purity of color, characterizes the degree of color deviation with brightness grey equally with chroma.And saturation depends on the ratio containing colour content and colour killing composition (grey) in this look.Larger containing colour content, saturation is larger; Colour killing composition is larger, and saturation is less.Pure color is all HI SA highly saturated, as scarlet, bud green.Mixing white, the color of grey or other tones, is undersaturated color, as dark reddish purple, pink, yellowish-brown etc.Complete undersaturated color does not have tone at all, as the various grey between black and white.And the colored noise in the first image to be exactly the value of the single Color Channel of red, green, blue comparatively large, noise more containing colour content.Therefore, the saturation reducing the first image just the look that can reduce in the first image make an uproar pixel containing colour content, make the camera of mobile terminal to capture reference object, and the look in the image caught is made an uproar, the obvious degree of pixel when showing decreases.Thus the definition of image can be improved, make reference object no matter be can both be high-visible in preview image or in photographic images.
Therefore, after mobile terminal carries out the process of reduction saturation to the first image collected, can obtain the second image, the make an uproar obvious degree of pixel of the look that the first image that the second image ratio is originally collected comprises reduces to some extent, thus improves the definition gathering image.
S104, this mobile terminal export this second image at image preview interface.
In the embodiment of the present invention, when mobile terminal to the first image carry out the process of reduction saturation obtain the second image time, this mobile terminal just can by this second image export on image preview interface.And user sees is the second image after reducing saturation process for the preview image of reference object in default shooting visual angle.
Visible, in the method described by Fig. 1, when detecting that the brightness value of mobile terminal current environment is less than predetermined luminance threshold value, the current photosensitivity of camera can be increased to target photosensitivity by this mobile terminal, and control this camera, with target photosensitivity, IMAQ is carried out to the reference object in default shooting visual angle, obtain the first image, reduce the saturation of this first image, to obtain the second image, and export this second image at image preview interface.Pass through the embodiment of the present invention, mobile terminal automatically can increase the photosensitivity of camera under half-light environment, the vividness of colored noise in image can be reduced by the saturation reducing image when gathering image with the photosensitivity after increase, thus the colored noise of effective reduction, make image more clear, promote the visuality of image.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of image processing method disclosed in the embodiment of the present invention.Wherein, the method shown in Fig. 2 can be applied to the mobile terminal such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet.As shown in Figure 2, this image processing method can comprise the following steps:
S201, when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera is increased to target photosensitivity by mobile terminal.
S202, this mobile terminal control this camera and carry out IMAQ with this target photosensitivity to the reference object in default shooting visual angle, obtain the first image.
The pixel value of all pixels in this first image of S203, this acquisition for mobile terminal.
In the embodiment of the present invention, the mode that the saturation that this mobile terminal reduces the first image obtains the second image is specially: when mobile terminal control camera with target photosensitivity to the reference object in default shooting visual angle carry out IMAQ obtain the first image time, first this mobile terminal can obtain the pixel value of all pixels in this first image.Wherein, this pixel value comprises any one or a few in rgb value, gray value, grey decision-making.And in the embodiment of the present invention, this pixel value mainly refers in particular to the rgb value of pixel.
S204, this mobile terminal adjust the pixel value of all pixels of predeterminable area in this first image according to presetting the first gain coefficient, and the pixel value of all pixels in all the other regions in this first image except predeterminable area is adjusted according to default second gain coefficient, obtain the second image.
In the embodiment of the present invention, because the pixel of making an uproar of the look in the image that camera gathers under ISO (target photosensitivity) is larger, particularly the look of image surrounding is made an uproar pixel.Because the surrounding of what the surrounding of image was corresponding is camera image transducer, due to the dark in environment, imageing sensor light income is not very sufficient, especially the light income of its surrounding can be lower compared to mid portion, so after carrying out opto-electronic conversion, the electric current of surrounding is by less than normal, thus it is bigger than normal to cause the surrounding of image to be subject to the interference of noise, and when being reacted on image preview interface, the look noise of image surrounding will be more than the look noise in the middle of image.
Therefore, mobile terminal is when carrying out the process of reduction saturation to the first image, the degree that the saturation that can make an uproar comparatively serious region for look in the first image reduces is large, and to make an uproar for look in the first image be not be especially obviously or not that the degree that very serious region saturation reduces is less.That is, this predeterminable area is the region that in the first image, look noise is more.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 be different due to the brightness difference of external environment light, and the embodiment of the present invention does not limit.
In general, the image of camera collection is presented on image preview interface or before generating photographic images, all can carry out saturation process.Therefore, the brightness (i.e. lightness) gathering the pixel value of all pixels of image under ISO increases to some extent itself, if the gain coefficient of camera is certain, so in image, the chroma of all pixels will increase, so the color relation of the colored noise originally existed can be more bright-coloured, namely more obvious.
It should be noted that, due to the ratio that saturation is chroma and lightness, so when the photosensitivity promoting camera, the lightness of the pixel of the image so collected will increase, if saturation is certain, so the chroma of the pixel of this image also will increase, and the look of this image is made an uproar pixel thus can be more obvious.And in the embodiment of the present invention, reducing image saturation is exactly the ratio reducing image chroma and lightness, namely reduce gain coefficient when being mapped to image preview interface or imaging from the rgb value of the image slices vegetarian refreshments by collection.
Therefore, when mobile terminal carries out the process of reduction saturation to the first image, the gain coefficient of camera can be reduced, so when the lightness of image slices vegetarian refreshments increases, can ensure that the chroma of pixel does not significantly increase.Therefore the obvious degree reducing look noise in image can be played in this way.
Concrete, preset the first gain coefficient and be less than default second gain coefficient, and default first gain coefficient is all less than the current gain coefficient of camera with default second gain coefficient.So this mobile terminal can after the pixel value getting all pixels of the first image, the pixel value of the pixel of predeterminable area (i.e. look make an uproar comparatively serious region) is used and presets the first gain coefficient adjustment, that is this is preset the first gain coefficient to be multiplied with the pixel value of pixels all in predeterminable area, obtain the new pixel value that each pixel is corresponding respectively; And default second gain coefficient adjustment is used to the pixel value of the pixel of non-predeterminable area (namely look is made an uproar is not very serious zone line), that is this is preset the second gain coefficient to be multiplied with the pixel value of all pixels in non-predeterminable area, obtain the new pixel value that each pixel is corresponding respectively.Reduce the saturation (namely saturation being reduced to predeterminable area and territory, non-default regional compartmentalization) of the first image so targetedly, the second image that definition is higher can be obtained, thus the visuality of the reference object comprised in the second image is increased, promote Consumer's Experience.
Further, this predeterminable area can also be the region including character image or specific reference object image in the first image, and the embodiment of the present invention does not limit.
For example, when acquisition for mobile terminal is to the pixel value of all pixels of the first image, can obtain the region of the preset area centered by the first image center respectively, be non-predeterminable area, and be predeterminable area except zone line.If the current gain coefficient of this mobile terminal camera is 1.5, so the gain coefficient of pixel in predeterminable area can be reduced by 15% thus obtain default first gain coefficient, and the gain coefficient of pixel in non-predeterminable area is reduced by 10% thus obtains default second gain coefficient.And then use the default pixel value of the first gain coefficient to pixels all in predeterminable area to adjust, default second gain coefficient is used to adjust the pixel value of all pixels in all the other regions in the first image except predeterminable area, thus first image that can obtain after pixel value adjustment, i.e. the second image.
S205, this mobile terminal export this second image at image preview interface.
S206, when receiving photographing instruction, this mobile terminal generates according to the pixel value of all pixels in this second image image of taking pictures.
In the embodiment of the present invention, mobile terminal obtains the second image after carrying out the process of reduction saturation to the first image, then this second image will be exported at image preview interface.And when user presses shutter key, this mobile terminal will receive photographing instruction, thus this photographing instruction can be responded, the pixel value according to all pixels of the second image generates image of taking pictures, and namely in this image of taking pictures, the pixel value of pixel is identical with the pixel value of all pixels in the second image.The image definition so not only making user view on image preview interface promotes to some extent, also can improve the definition of image of taking pictures simultaneously, thus promotes Consumer's Experience.
Visible, in the method described by Fig. 2, mobile terminal is when carrying out the process of reduction saturation to the first image, subregion can be carried out to the first image and reduce saturation: namely the gain coefficient of the pixel value of pixel in the first image predeterminable area is adjusted to lower than current gain coefficient, namely by presetting the pixel value of all pixels in the first gain coefficient adjustment predeterminable area; The gain coefficient of the pixel value of pixel in the non-predeterminable area of first image is also adjusted to lower than current gain coefficient, but higher than presetting the first gain coefficient, the pixel value of all pixels in non-predeterminable area is namely adjusted by presetting the second gain coefficient.The cross-color making all reference objects can be unlikely in this way when reduction the first image saturation, and effective denoising is carried out in the comparatively serious region of making an uproar of simultaneously checking colors, promote the definition of image when preview or imaging, thus promote Consumer's Experience.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of the embodiment of the present invention another image processing method disclosed.Wherein, the method shown in Fig. 3 can be applied to the mobile terminal such as smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet.As shown in Figure 3, this image processing method can comprise the following steps:
S301, when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera is increased to target photosensitivity by mobile terminal.
S302, this mobile terminal control this camera and carry out IMAQ with this target photosensitivity to the reference object in default shooting visual angle, obtain the first image.
The rgb value of all pixels in this first image of S303, this acquisition for mobile terminal.
In the embodiment of the present invention, pixel value comprises rgb value.Therefore, the mode that the saturation that this mobile terminal reduces the first image obtains the second image is specially: when mobile terminal control camera with target photosensitivity to the reference object in default shooting visual angle carry out IMAQ obtain the first image time, first this mobile terminal can obtain the rgb value of all pixels in this first image.
The current gain coefficient of this camera is decreased to default 3rd gain coefficient by S304, this mobile terminal.
In the embodiment of the present invention, the gain coefficient of mobile terminal camera is generally fixing, therefore mobile terminal to carry out after IMAQ obtains the first image at control camera to the reference object in default shooting visual angle with target photosensitivity, in order to ensure preview image or the definition of image of taking pictures, the current gain coefficient of camera can be reduced, as reduced by 8% etc., thus obtain default 3rd gain coefficient.
That is, presetting the 3rd gain coefficient can be a pre-set gain coefficient lower than camera current gain coefficient, also can be current gain coefficient is reduced the gain coefficient that special ratios or particular value two calculate, the embodiment of the present invention limit.
S305, this mobile terminal preset according to this rgb value that the 3rd gain coefficient adjusts all pixels in this first image, obtain the second image.
In the embodiment of the present invention, when the current gain coefficient of camera is decreased to default 3rd gain coefficient by mobile terminal, this mobile terminal will use this default 3rd gain coefficient to adjust the rgb value of all pixels in this first image, thus obtains the second image.
That is, this mobile terminal, after collecting the first image, first can carry out the process of reduction saturation to whole first image.
S306, this mobile terminal to be made an uproar pixel according to the look of this second image of rgb value identification of all pixels in this second image.
In the embodiment of the present invention, due to look make an uproar R, G, B tri-of pixel in Color Channel the value of a certain Color Channel high compared to all the other two color channel values, so mobile terminal is after carrying out the process of reduction saturation and obtaining the second image to the first integral image, in fact also there is look in second image to make an uproar pixel, just look degree of making an uproar is lower than the first image.Therefore, this mobile terminal can obtain the rgb value of all pixels in the second image again, and identifies according to its rgb value the look comprised in the second image and to make an uproar pixel.
For example, suppose that the rgb value of the pixel that the second image comprises is respectively (123,202,212), (132,153,143), (23,242,10), (237,15,0), (142,168,135), (252,14,31), so three are included by above-mentioned rgb value pixel of just can determining to make an uproar remarkably.
According to the make an uproar rgb value of pixel of each look, S307, this mobile terminal determine that the make an uproar look of pixel of this look is made an uproar type.
In the embodiment of the present invention, look make an uproar that type comprises in red R noise, green G noise and blue B noise any one, the embodiment of the present invention does not limit.Therefore, identify the coloured pixel of making an uproar of institute in the second image at mobile terminal after, according to the make an uproar rgb value of pixel of each look, this mobile terminal can also determine which kind of look this look pixel of making an uproar belongs to and to make an uproar type.Wherein, each look pixel of making an uproar only may to be made an uproar type for a kind of look.Under normal circumstances, when using the camera of electronic product to take pictures under half-light environment, the red noise obtained and green noise on the high side, and blue noise is comparatively rare.
Concrete, for a certain pixel, if having the value of a Color Channel higher in its R, G, B tri-Color Channel, and the value of all the other two Color Channels is very low, so just can determine that this pixel is that look is made an uproar pixel.Further, if the value of R passage is higher, so this look look of pixel type of making an uproar of making an uproar is just red R noise; And if the value of G passage is higher, so this look look of pixel type of making an uproar of making an uproar is just green G noise.
For example, in the rgb value of the above-mentioned pixel enumerated, (23,242,10), (237,15,0) and pixel corresponding to (252,14,31) be that look is made an uproar pixel, wherein the look of (23,242,10) corresponding pixel points type of making an uproar is G noise, and (237,15,0) and (252,14,31) look of corresponding pixel type of making an uproar is R noise.
S308, this mobile terminal maximum look of pixel quantity type of making an uproar of making an uproar of look in type of being made an uproar by the look comprised in this second image is defined as aim colour and makes an uproar type, and determines that this aim colour is made an uproar color of object passage corresponding to type.
In the embodiment of the present invention, color of object passage comprises the one in R passage, G passage or channel B, and its color of object passage depends on that aim colour is made an uproar type, and the embodiment of the present invention does not limit.Therefore, identify the coloured pixel of making an uproar comprised in the second image at mobile terminal, and determine that the make an uproar look of pixel of each look is made an uproar after type, this mobile terminal will be added up each look look of making an uproar included by type respectively and to make an uproar the quantity of pixel.Then from these three kinds of looks make an uproar type, choose the look maximum look of pixel quantity of making an uproar to make an uproar type, and be defined as aim colour and make an uproar type.
That is, this mobile terminal can be added up look that R noise, G noise and B noise comprise respectively and to make an uproar the quantity of pixel, if the make an uproar quantity of pixel of look maximum in R noise, so just R noise is defined as aim colour and makes an uproar type.
Further, when mobile terminal determine aim colour make an uproar type time, this mobile terminal just can be determined to make an uproar color of object passage corresponding to type for this aim colour.Such as, when aim colour make an uproar type be R noise time, the color of object passage of its correspondence is R passage; When aim colour make an uproar type be G noise time, the color of object passage of its correspondence is G passage; When aim colour make an uproar type be B noise time, the color of object passage of its correspondence is channel B.
S309, this mobile terminal, according to default 4th gain coefficient, adjust the value of the color of object passage in the rgb value of all pixels of this second image, with the second image after being adjusted.
In the embodiment of the present invention, preset the 4th gain coefficient for being greater than 0 and being less than 1 number, the embodiment of the present invention does not limit.Therefore, when mobile terminal determines color of object passage, this mobile terminal will use default 4th gain coefficient to adjust the value of the color of object passage of the rgb value of all pixels in this second image, thus the second image after being adjusted.
That is, controlling camera at mobile terminal uses target photosensitivity to carry out the reference object in default shooting visual angle after IMAQ obtains the first image, the concrete mode that this mobile terminal reduces the saturation of the first image is: first can carry out the process of reduction saturation to the first integral image, thus obtain the second image.And then to determine in the second image which kind of look pixel quantity of making an uproar is more, when the look that pixel quantity of determining to make an uproar remarkably is maximum makes an uproar type, this mobile terminal will reduce saturation to the value of the color of object passage of all pixels in this second image by being multiplied by default 4th gain coefficient, wherein, this color of object passage is that look is made an uproar and to be comprised the look maximum look of pixel of making an uproar in type and to make an uproar Color Channel corresponding to type.Thus realize reducing saturation targetedly according to look type of making an uproar, denoising targetedly can be realized, improve image definition, thus promote Consumer's Experience further.
For example, suppose that presetting the 4th gain coefficient is 0.85, so after determining that color of object passage is G passage, just show that the more type of pixel of making an uproar of look in this second image is R noise, therefore the value of the G Color Channel in pixels all in the second image will be multiplied by 0.85, to reduce the impact of G noise on the second image.
S310, this mobile terminal the second image after image preview interface exports adjustment.
In the embodiment of the present invention, at mobile terminal, the process of reduction saturation is carried out to the first image, obtain the second image, and after adjusting for the value of the color of object passage of the second image slices vegetarian refreshments, the second image after being adjusted.Therefore, the concrete mode that this mobile terminal exports the second image at image preview interface is: the second image after image preview interface exports adjustment.
Visible, in the method described by Fig. 3, after mobile terminal can gather the first image under ISO, first the process of reduction saturation is carried out to the first integral image, obtain the second image, then determine that the maximum look of pixel quantity of making an uproar of look in the second image is made an uproar type, and reduction adjustment is carried out to the make an uproar value of Color Channel corresponding to type of this look in all pixels in this second image, thus reduce the saturation of this color, reduce saturation process to realize check colors pixel of making an uproar of emphasis.Can reduce look like this makes an uproar on the impact of the definition of preview image or the image of taking pictures obtained of taking pictures, and improves image definition and visuality, promotes Consumer's Experience further.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of mobile terminal disclosed in the embodiment of the present invention.Wherein, the mobile terminal 400 shown in Fig. 4 can include but not limited to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC and mobile internet device, personal digital assistant, media player, intelligent television, intelligent watch, intelligent glasses, Intelligent bracelet etc.As shown in Figure 4, this mobile terminal 400 can comprise with lower unit:
Increasing unit 401, for when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera being increased to target photosensitivity.
In the embodiment of the present invention, when opening the camera applications of mobile terminal 400, mobile terminal 400 can detect the brightness value of its current residing environment automatically.When judging that this brightness value is less than predetermined luminance threshold value, just show that this mobile terminal 400 is current and be in half-light environment, and light is more weak.Therefore, increase unit 401 and the current photosensitivity of camera will be increased to target photosensitivity.
Usually, mobile terminal 400 is by the sensitivity in adjustment camera between photophase or merges sensitivity speck and adjust the photosensitivity of camera, that is by the light sensitive degree of promotion feeling optical device or merge the object that several adjacent sensitivity speck reaches promotion feeling luminosity.Sensor devices has a respond, and this respond is changeless, and the photosensitivity so promoting camera can be realized by two kinds of modes: the brightness and contrast improving each pixel by force; As long as the task of using multiple pixel jointly to complete an original pixel to have come.
In general, below photosensitivity ISO50 is low speed, can obtain very level and smooth, fine and smooth photo at this section.As long as condition is permitted, as long as photo can be clapped clear, just use low speed as far as possible, such as, as long as can the depth of field be ensured, large one-level aperture would rather be opened, also photosensitivity is not improved a gear.And ISO100 ~ 200 belong to middle photosensitivity, need to think better of this photo in this section and do what use, be amplified to any degree, if can noise be accepted, middle photosensitivity setting reduces the difficulty of handheld camera shooting, improve the coefficient of safety of taking under low light conditions, success rate is improved.More than ISO400 is ISO, obvious this section of noise, uses such setting, the importance of the theme content of shooting, often beyond the quality of image, the condition of taking sometimes is after all too poor, photographed the photo that a quality is slightly poor, always good less than image than basic seizure.
Therefore, when ambient light is darker, if user continues to make user's camera take pictures, so just show that the requirement of user is only to capture reference object, and do not lie in the quality of image, so this mobile terminal 400 is when detecting that the brightness value of current environment is less than predetermined threshold value, increases unit 401 and will promote the current photosensitivity of camera to target photosensitivity.
It should be noted that, the photosensitivity of camera is mainly promoted to ISO by the embodiment of the present invention under the environment that half-light is more serious.Therefore, target photosensitivity be greater than 400 ISO, and the noise that the ISO being generally greater than 2400 is brought can be more serious.
Control unit 402, carrying out IMAQ with this target photosensitivity to the reference object in default shooting visual angle for controlling this camera, obtaining the first image.
In the embodiment of the present invention, after the current photosensitivity of camera is increased to target photosensitivity by increase unit 401, control unit 402 will control this camera and carry out IMAQ with this target photosensitivity to the reference object in default shooting visual angle, thus obtains the first image.
In the embodiment of the present invention, because target photosensitivity is ISO, so shutter speed faster can be obtained under target photosensitivity.But the image quality brought because photosensitivity is lower is finer and smoother, so the image quality of ISO is then that noise is larger.Therefore, the noise of the image that the more current photosensitivity of noise that control unit 402 controls the first image that camera collects with this target photosensitivity collects is much bigger.
It should be noted that, noise mainly refers to that light is receiving as Received signal strength and coarse part in the image produced in the process exported by CCD (imageing sensor).Camera for mobile terminal 400 is said, inner imageing sensor be bound at work to be subject in various degree from the photoelectromagnetic interference between peripheral circuit and pixel own, be exactly that the picture shot is bound to there is noise in brief, this is inevitable, the weight of the just degree that we see.And these noises originally existed will be amplified further with the image that ISO collects, make the noise of image more obvious.
Therefore, control unit 402 controls the noise that camera carries out to the reference object in default shooting visual angle the first image that IMAQ obtains with target photosensitivity is obvious.And colored noise in the image generally collected under half-light environment (also can be called look make an uproar pixel, look noise) is obvious.Wherein, colored noise is that the look value of a certain Color Channel in the red, green of pixel and blue channel of making an uproar is comparatively large and produce.
Reduce unit 403, for reducing the saturation of the first image that above-mentioned control unit 402 obtains, to obtain the second image.
In the embodiment of the present invention, saturation may be defined as chroma divided by lightness, refers to the bright-coloured degree of color, also claims the purity of color, characterizes the degree of color deviation with brightness grey equally with chroma.And saturation depends on the ratio containing colour content and colour killing composition (grey) in this look.Larger containing colour content, saturation is larger; Colour killing composition is larger, and saturation is less.Pure color is all HI SA highly saturated, as scarlet, bud green.Mixing white, the color of grey or other tones, is undersaturated color, as dark reddish purple, pink, yellowish-brown etc.Complete undersaturated color does not have tone at all, as the various grey between black and white.And the colored noise in the first image to be exactly the value of the single Color Channel of red, green, blue comparatively large, noise more containing colour content.Therefore, the saturation reducing the first image just the look that can reduce in the first image make an uproar pixel containing colour content, make the camera of mobile terminal 400 to capture reference object, and the look in the image caught is made an uproar, the obvious degree of pixel when showing decreases.Thus the definition of image can be improved, make reference object no matter be can both be high-visible in preview image or in photographic images.
Therefore, after reduction unit 403 carries out the process of reduction saturation to the first image collected, can obtain the second image, the make an uproar obvious degree of pixel of the look that the first image that the second image ratio is originally collected comprises reduces to some extent, thus improves the definition gathering image.
Output unit 404, for exporting this second image at image preview interface.
In the embodiment of the present invention, when reduce unit 403 to the first image carry out the process of reductions saturation obtain the second image time, output unit 404 just can by this second image output on image preview interface.And user sees is the second image after reducing saturation process for the preview image of reference object in default shooting visual angle.
Visible, in the mobile terminal described by Fig. 4, when detecting that the brightness value of mobile terminal current environment is less than predetermined luminance threshold value, the current photosensitivity of camera can be increased to target photosensitivity by this mobile terminal, and control this camera, with target photosensitivity, IMAQ is carried out to the reference object in default shooting visual angle, obtain the first image, reduce the saturation of this first image, to obtain the second image, and export this second image at image preview interface.Pass through the embodiment of the present invention, mobile terminal automatically can increase the photosensitivity of camera under half-light environment, the vividness of colored noise in image can be reduced by the saturation reducing image when gathering image with the photosensitivity after increase, thus the colored noise of effective reduction, make image more clear, promote the visuality of image.
Refer to Fig. 5, Fig. 5 is the structural representation of another kind of mobile terminal disclosed in the embodiment of the present invention.Wherein, the mobile terminal 400 shown in Fig. 5 is optimized to obtain on the basis of the mobile terminal 400 shown in Fig. 4.As shown in Figure 5, this mobile terminal 400 can also comprise with lower unit:
Generation unit 405, for when receiving photographing instruction, generates according to the pixel value of all pixels in the second image that reduction unit 403 obtains image of taking pictures.
In the embodiment of the present invention, reduce unit 403 and obtain the second image after carrying out the process of reduction saturation to the first image, then this second image will export at image preview interface by output unit 404.And when user presses shutter key, this mobile terminal 400 will receive photographing instruction, generation unit 405 thus this photographing instruction can be responded, pixel value according to all pixels of the second image generates image of taking pictures, and namely in this image of taking pictures, the pixel value of pixel is identical with the pixel value of all pixels in the second image.The image definition so not only making user view on image preview interface promotes to some extent, also can improve the definition of image of taking pictures simultaneously, thus promotes Consumer's Experience.
In the embodiment of the present invention, above-mentioned reduction unit 403 can comprise acquisition subelement 4031 and adjustment subelement 4032, wherein:
Above-mentioned acquisition subelement 4031, for obtaining the pixel value of all pixels in this first image.
In specific implementation, when control unit 402 control camera with target photosensitivity to the reference object in default shooting visual angle carry out IMAQ obtain the first image time, obtain subelement 4031 and first can obtain the pixel value of all pixels in this first image.Wherein, this pixel value comprises any one or a few in rgb value, gray value, grey decision-making.And in the embodiment of the present invention, this pixel value mainly refers in particular to the rgb value of pixel.
Above-mentioned adjustment subelement 4032, for adjusting the pixel value of all pixels of predeterminable area in this first image according to default first gain coefficient, and the pixel value of all pixels in all the other regions in this first image except predeterminable area is adjusted according to default second gain coefficient, obtain the second image.
In specific implementation, because the pixel of making an uproar of the look in the image that camera gathers under ISO (target photosensitivity) is larger, particularly the look of image surrounding is made an uproar pixel.Because the surrounding of what the surrounding of image was corresponding is camera image transducer, due to the dark in environment, imageing sensor light income is not very sufficient, especially the light income of its surrounding can be lower compared to mid portion, so after carrying out opto-electronic conversion, the electric current of surrounding is by less than normal, thus it is bigger than normal to cause the surrounding of image to be subject to the interference of noise, and when being reacted on image preview interface, the look noise of image surrounding will be more than the look noise in the middle of image.
Therefore, reduce unit 403 when carrying out the process of reduction saturation to the first image, the degree that the saturation that can make an uproar comparatively serious region for look in the first image reduces is large, and to make an uproar for look in the first image be not be especially obviously or not that the degree that very serious region saturation reduces is less.That is, this predeterminable area is the region that in the first image, look noise is more.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 be different due to the brightness difference of external environment light, and the embodiment of the present invention does not limit.
In general, the image of camera collection is presented on image preview interface or before generating photographic images, all can carry out saturation process.Therefore, the brightness (i.e. lightness) gathering the pixel value of all pixels of image under ISO increases to some extent itself, if the gain coefficient of camera is certain, so in image, the chroma of all pixels will increase, so the color relation of the colored noise originally existed can be more bright-coloured, namely more obvious.
It should be noted that, due to the ratio that saturation is chroma and lightness, so when the photosensitivity promoting camera, the lightness of the pixel of the image so collected will increase, if saturation is certain, so the chroma of the pixel of this image also will increase, and the look of this image is made an uproar pixel thus can be more obvious.And in the embodiment of the present invention, reducing image saturation is exactly the ratio reducing image chroma and lightness, namely reduce gain coefficient when being mapped to image preview interface or imaging from the rgb value of the image slices vegetarian refreshments by collection.
Therefore, when reduction unit 403 carries out the process of reduction saturation to the first image, the gain coefficient of camera can be reduced, so when the lightness of image slices vegetarian refreshments increases, can ensure that the chroma of pixel does not significantly increase.Therefore the obvious degree reducing look noise in image can be played in this way.
Concrete, preset the first gain coefficient and be less than default second gain coefficient, and default first gain coefficient is all less than the current gain coefficient of camera with default second gain coefficient.So adjusting subelement 4032 can after acquisition subelement 4031 gets the pixel value of all pixels of the first image, the pixel value of the pixel of predeterminable area (i.e. look make an uproar comparatively serious region) is used and presets the first gain coefficient adjustment, that is this is preset the first gain coefficient to be multiplied with the pixel value of pixels all in predeterminable area, obtain the new pixel value that each pixel is corresponding respectively; And default second gain coefficient adjustment is used to the pixel value of the pixel of non-predeterminable area (namely look is made an uproar is not very serious zone line), that is this is preset the second gain coefficient to be multiplied with the pixel value of all pixels in non-predeterminable area, obtain the new pixel value that each pixel is corresponding respectively.Reduce the saturation (namely saturation being reduced to predeterminable area and territory, non-default regional compartmentalization) of the first image so targetedly, the second image that definition is higher can be obtained, thus the visuality of the reference object comprised in the second image is increased, promote Consumer's Experience.
Further, this predeterminable area can also be the region including character image or specific reference object image in the first image, and the embodiment of the present invention does not limit.
For example, when obtaining subelement 4031 and getting the pixel value of all pixels of the first image, can obtain the region of the preset area centered by the first image center respectively, be non-predeterminable area, and be predeterminable area except zone line.If the current gain coefficient of this mobile terminal 400 camera is 1.5, so the gain coefficient of pixel in predeterminable area can be reduced by 15% thus obtain default first gain coefficient by this mobile terminal 400, and the gain coefficient of pixel in non-predeterminable area is reduced by 10% thus obtains default second gain coefficient.Then adjust subelement 4032 to re-use the pixel value of default first gain coefficient to pixels all in predeterminable area and adjust, default second gain coefficient is used to adjust the pixel value of all pixels in all the other regions in the first image except predeterminable area, thus first image that can obtain after pixel value adjustment, i.e. the second image.
It should be noted that, obtain subelement 4031 and can distinguish the first acquisition subelement and the second operation of acquisition performed by subelement in enforcement of rights claim, and adjust subelement 4032 and also can to distinguish in enforcement of rights claim the first adjustment subelement and the second operation of adjustment performed by subelement, the embodiment of the present invention repeats no more.
As a kind of feasible execution mode, this reduction unit 403 can also comprise reduction subelement 4033, recognin unit 4034 and determine subelement 4035, wherein:
Above-mentioned reduction subelement 4033, for being decreased to default 3rd gain coefficient by the current gain coefficient of this camera.
In specific implementation, the gain coefficient of mobile terminal 400 camera is generally fixing, therefore control unit 402 to carry out after IMAQ obtains the first image at control camera to the reference object in default shooting visual angle with target photosensitivity, in order to ensure preview image or the definition of image of taking pictures, reduce subelement 4033 current gain coefficient of camera to be reduced, as reduced by 8% etc., thus obtain default 3rd gain coefficient.
That is, presetting the 3rd gain coefficient can be a pre-set gain coefficient lower than camera current gain coefficient, also can be current gain coefficient is reduced the gain coefficient that special ratios or particular value two calculate, the embodiment of the present invention limit.
Above-mentioned adjustment subelement 4032, also for presetting according to this rgb value that the 3rd gain coefficient adjusts all pixels in this first image, obtains the second image.
In specific implementation, when the current gain coefficient of camera is decreased to default 3rd gain coefficient by reduction subelement 4033, and obtain subelement 4031 when getting the rgb value of all pixels in the first image, adjustment subelement 4032 will use this default 3rd gain coefficient to adjust the rgb value of all pixels in this first image, thus obtains the second image.
That is, this mobile terminal 400, after collecting the first image, first can carry out the process of reduction saturation to whole first image.
Above-mentioned recognin unit 4034, the look for this second image of rgb value identification according to all pixels in this second image is made an uproar pixel.
In specific implementation, due to look make an uproar R, G, B tri-of pixel in Color Channel the value of a certain Color Channel high compared to all the other two color channel values, so adjustment subelement 4032 is after carrying out the process of reduction saturation and obtaining the second image to the first integral image, in fact also there is look in second image to make an uproar pixel, just look degree of making an uproar is lower than the first image.Therefore, obtain subelement 4031 and again can obtain the rgb value of all pixels in the second image, then recognin unit 4034 identifies according to its rgb value the look comprised in the second image and to make an uproar pixel.
For example, suppose that the rgb value of the pixel that the second image comprises is respectively (123,202,212), (132,153,143), (23,242,10), (237,15,0), (142,168,135), (252,14,31), so three are included by above-mentioned rgb value pixel of just can determining to make an uproar remarkably.
Determine subelement 4035, the make an uproar rgb value of pixel of each look for identifying according to above-mentioned recognin unit 4034 determines that the make an uproar look of pixel of this look is made an uproar type.
In specific implementation, look make an uproar that type comprises in red R noise, green G noise and blue B noise any one, the embodiment of the present invention does not limit.Therefore, identify the coloured pixel of making an uproar of institute in the second image at recognin unit 4034 after, determine according to the make an uproar rgb value of pixel of each look, subelement 4035 can also determine which kind of look this look pixel of making an uproar belongs to and to make an uproar type.Wherein, each look pixel of making an uproar only may to be made an uproar type for a kind of look.Under normal circumstances, when using the camera of electronic product to take pictures under half-light environment, the red noise obtained and green noise on the high side, and blue noise is comparatively rare.
Concrete, for a certain pixel, if having the value of a Color Channel higher in its R, G, B tri-Color Channel, and the value of all the other two Color Channels is very low, so just can determine that this pixel is that look is made an uproar pixel.Further, if the value of R passage is higher, so this look look of pixel type of making an uproar of making an uproar is just red R noise; And if the value of G passage is higher, so this look look of pixel type of making an uproar of making an uproar is just green G noise.
For example, in the rgb value of the above-mentioned pixel enumerated, (23,242,10), (237,15,0) and pixel corresponding to (252,14,31) be that look is made an uproar pixel, wherein the look of (23,242,10) corresponding pixel points type of making an uproar is G noise, and (237,15,0) and (252,14,31) look of corresponding pixel type of making an uproar is R noise.
Further, above-mentionedly determine subelement 4035, be also defined as aim colour make an uproar type for the maximum look of the pixel quantity type of making an uproar of making an uproar of look in type that the look comprised in this second image is made an uproar, and determine that this aim colour is made an uproar color of object passage corresponding to type.
It should be noted that, determine that subelement 4,035 first can determine that the operation performed by subelement determined by subelement and second in enforcement of rights claim respectively, the embodiment of the present invention does not repeat them here.
In specific implementation, color of object passage comprises the one in R passage, G passage or channel B, and its color of object passage depends on that aim colour is made an uproar type, and the embodiment of the present invention does not limit.Therefore, the coloured pixel of making an uproar comprised in the second image is identified at recognin unit 4034, and determine that subelement 4035 determines that the make an uproar look of pixel of each look is made an uproar after type, determine that subelement 4035 will be added up each look look of making an uproar included by type respectively and to make an uproar the quantity of pixel.Then from these three kinds of looks make an uproar type, choose the look maximum look of pixel quantity of making an uproar to make an uproar type, and be defined as aim colour and make an uproar type.
That is, determine that subelement 4035 can be added up look that R noise, G noise and B noise comprise respectively and to make an uproar the quantity of pixel, if the make an uproar quantity of pixel of look maximum in R noise, so just R noise is defined as aim colour and makes an uproar type.
Further, when determine subelement 4035 determine aim colour make an uproar type time, just can determine to make an uproar color of object passage corresponding to type for this aim colour.Such as, when aim colour make an uproar type be R noise time, the color of object passage of its correspondence is R passage; When aim colour make an uproar type be G noise time, the color of object passage of its correspondence is G passage; When aim colour make an uproar type be B noise time, the color of object passage of its correspondence is channel B.
Further, above-mentioned adjustment subelement 4032, also for according to presetting the 4th gain coefficient, adjusts the value of the color of object passage in the rgb value of all pixels of this second image, with the second image after being adjusted.
In specific implementation, preset the 4th gain coefficient for being greater than 0 and being less than 1 number, the embodiment of the present invention does not limit.Therefore, when determining that color of object passage determined by subelement 4035, adjustment subelement 4032 will use default 4th gain coefficient to adjust the value of the color of object passage of the rgb value of all pixels in this second image, thus the second image after being adjusted.
That is, controlling camera at control unit 402 uses target photosensitivity to carry out the reference object in default shooting visual angle after IMAQ obtains the first image, the concrete mode that reduction unit 403 reduces the saturation of the first image is: first can carry out the process of reduction saturation to the first integral image, thus obtain the second image.Then determine that subelement 4035 to determine in the second image which kind of look pixel quantity of making an uproar is more again, when the look that pixel quantity of determining to make an uproar remarkably is maximum makes an uproar type, adjustment subelement 4032 will reduce saturation to the value of the color of object passage of all pixels in this second image by being multiplied by default 4th gain coefficient, wherein, this color of object passage is that look is made an uproar and to be comprised the look maximum look of pixel of making an uproar in type and to make an uproar Color Channel corresponding to type.Thus realize reducing saturation targetedly according to look type of making an uproar, denoising targetedly can be realized, improve image definition, thus promote Consumer's Experience further.
For example, suppose that presetting the 4th gain coefficient is 0.85, so after determining that subelement 4035 determines that color of object passage is G passage, just show that the more type of pixel of making an uproar of look in this second image is R noise, therefore adjust subelement 4032 and the value of the G Color Channel in pixels all in the second image will be multiplied by 0.85, to reduce the impact of G noise on the second image.
In the embodiment of the present invention, output unit 404 exports the second image concrete mode at image preview interface can be: adjust the second image after the second image at image preview interface output adjustment subelement 4032.
Visible, in the mobile terminal described by Fig. 5, mobile terminal is when carrying out the process of reduction saturation to the first image, subregion can be carried out to the first image and reduce saturation: namely the gain coefficient of the pixel value of pixel in the first image predeterminable area is adjusted to lower than current gain coefficient, namely by presetting the pixel value of all pixels in the first gain coefficient adjustment predeterminable area; The gain coefficient of the pixel value of pixel in the non-predeterminable area of first image is also adjusted to lower than current gain coefficient, but higher than presetting the first gain coefficient, the pixel value of all pixels in non-predeterminable area is namely adjusted by presetting the second gain coefficient.Can be unlikely to when reduction the first image saturation the cross-color making all reference objects in this way, and effective denoising is carried out in the comparatively serious region of making an uproar of simultaneously checking colors, and promotes the definition of image when preview or imaging.Further, after mobile terminal can gather the first image under ISO, first the process of reduction saturation is carried out to the first integral image, obtain the second image, then determine that the maximum look of pixel quantity of making an uproar of look in the second image is made an uproar type, and reduction adjustment is carried out to the make an uproar value of Color Channel corresponding to type of this look in all pixels in this second image, thus reduce the saturation of this color, reduce saturation process to realize check colors pixel of making an uproar of emphasis.Can reduce look like this makes an uproar on the impact of the definition of preview image or the image of taking pictures obtained of taking pictures, and improves image definition and visuality, promotes Consumer's Experience further.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. an image processing method, is characterized in that, comprising:
When detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera is increased to target photosensitivity;
Control described camera, with described target photosensitivity, IMAQ is carried out to the reference object in default shooting visual angle, obtain the first image;
Reduce the saturation of described first image, to obtain the second image;
Described second image is exported at image preview interface.
2. method according to claim 1, is characterized in that, the saturation of described first image of described reduction, to obtain the second image, comprising:
Obtain the pixel value of all pixels in described first image;
According to the pixel value of all pixels of predeterminable area in described first image of default first gain coefficient adjustment, and the pixel value of all pixels in all the other regions in described first image except described predeterminable area is adjusted according to default second gain coefficient, obtain the second image; Wherein, described first gain coefficient of presetting is less than described default second gain coefficient, and the described current gain coefficient preset the second gain coefficient and be less than described camera.
3. method according to claim 1, is characterized in that, the saturation of described first image of described reduction, to obtain the second image, comprising:
Obtain the pixel value of all pixels in described first image;
The current gain coefficient of described camera is decreased to default 3rd gain coefficient;
According to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, obtain the second image.
4. method according to claim 3, is characterized in that, described pixel value comprises rgb value, and described according to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, after obtaining the second image, described method also comprises:
According to the rgb value identification of all pixels in described second image, the look of the second image is made an uproar pixel;
Determine that the make an uproar look of pixel of this look is made an uproar type according to the make an uproar rgb value of pixel of each described look, described look type of making an uproar comprises one in red R noise, green G noise or blue B noise;
In type of being made an uproar by the look comprised in described second image, the look maximum look of pixel quantity type of making an uproar of making an uproar is defined as aim colour and makes an uproar type, and determine that described aim colour is made an uproar color of object passage corresponding to type, described color of object passage comprises the one in R passage, G passage or channel B;
According to default 4th gain coefficient, adjust the value of the described color of object passage in the rgb value of all pixels of described second image, with described second image after being adjusted, described the 4th gain coefficient of presetting is greater than 0 and is less than 1;
Wherein, described at described second image of image preview interface output, comprising:
Described second image after image preview interface exports adjustment.
5. method according to claim 1, is characterized in that, described method also comprises:
When receiving photographing instruction, the pixel value according to all pixels in described second image generates image of taking pictures.
6. a mobile terminal, is characterized in that, comprising:
Increasing unit, for when detecting that the brightness value of current environment is less than predetermined luminance threshold value, the current photosensitivity of camera being increased to target photosensitivity;
Control unit, carrying out IMAQ with described target photosensitivity to the reference object in default shooting visual angle for controlling described camera, obtaining the first image;
Reduce unit, for reducing the saturation of described first image, to obtain the second image;
Output unit, for exporting described second image at image preview interface.
7. mobile terminal according to claim 6, is characterized in that, described reduction unit comprises the first acquisition subelement and the first adjustment subelement, wherein:
Described first obtains subelement, for obtaining the pixel value of all pixels in described first image;
Described first adjustment subelement, for the pixel value according to all pixels of predeterminable area in described first image of default first gain coefficient adjustment, and the pixel value of all pixels in all the other regions in described first image except described predeterminable area is adjusted according to default second gain coefficient, obtain the second image; Wherein, described first gain coefficient of presetting is less than described default second gain coefficient, and the described current gain coefficient preset the second gain coefficient and be less than described camera.
8. mobile terminal according to claim 6, is characterized in that, described reduction unit comprises the second acquisition subelement, reduces subelement and the second adjustment subelement, wherein:
Described second obtains subelement, for obtaining the pixel value of all pixels in described first image;
Described reduction subelement, for being decreased to default 3rd gain coefficient by the current gain coefficient of described camera;
Described second adjustment subelement, for according to the described pixel value presetting all pixels in described first image of the 3rd gain coefficient adjustment, obtains the second image.
9. mobile terminal according to claim 8, is characterized in that, described reduction unit also comprises recognin unit, first and determines that subelement determined by subelement and second, wherein:
Described recognin unit, the look for the second image according to the rgb value identification of all pixels in described second image is made an uproar pixel;
Described first determines subelement, and the rgb value for pixel of making an uproar according to each described look determines that the make an uproar look of pixel of this look is made an uproar type, and described look type of making an uproar comprises one in red R noise, green G noise or blue B noise;
Described second determines subelement, be defined as aim colour make an uproar type for the maximum look of the pixel quantity type of making an uproar of making an uproar of look in type that the look comprised in described second image is made an uproar, and determine that described aim colour is made an uproar color of object passage corresponding to type, described color of object passage comprises the one in R passage, G passage or channel B;
Described second adjustment subelement, also preset the 4th gain coefficient for basis, adjust the value of the described color of object passage in the rgb value of all pixels of described second image, with described second image after being adjusted, described the 4th gain coefficient of presetting is greater than 0 and is less than 1;
Described output unit exports described second image concrete mode at image preview interface is:
Described second image after image preview interface exports adjustment.
10. mobile terminal according to claim 6, is characterized in that, described mobile terminal also comprises:
Generation unit, for when receiving photographing instruction, the pixel value according to all pixels in described second image generates image of taking pictures.
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 true CN105100636A (en) 2015-11-25
CN105100636B CN105100636B (en) 2017-11-07

Family

ID=54580075

Family Applications (2)

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
CN201510490737.0A Expired - Fee Related CN105100636B (en) 2015-08-11 2015-08-11 A kind of image processing method and mobile terminal

Family Applications Before (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) CN107635103B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021697A (en) * 2017-12-19 2018-05-11 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment and terminal equipment
CN108280811A (en) * 2018-01-23 2018-07-13 哈尔滨工业大学深圳研究生院 A kind of image de-noising method and system based on neural network
CN110110638A (en) * 2019-04-29 2019-08-09 江苏省人民医院(南京医科大学第一附属医院) Control command analysis system for hospital disinfection room
CN110519485A (en) * 2019-09-09 2019-11-29 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111351078A (en) * 2018-12-20 2020-06-30 九阳股份有限公司 Lampblack identification method of range hood and range hood
CN112104812A (en) * 2019-06-18 2020-12-18 北京京东尚科信息技术有限公司 Method and device for acquiring picture

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635103B (en) * 2015-08-11 2020-02-14 Oppo广东移动通信有限公司 Image processing method, mobile terminal and medium product
CN109118447B (en) * 2018-08-01 2021-04-23 Oppo广东移动通信有限公司 Picture processing method, picture processing device and terminal 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 (7)

* 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
US20130266220A1 (en) * 2012-04-05 2013-10-10 Sony Corporation Color signal processing circuit, color signal processing method, color reproduction evaluating method, imaging apparatus, electronic apparatus and testing device
CN104793742A (en) * 2015-04-09 2015-07-22 广东欧珀移动通信有限公司 Shooting previewing method and device

Family Cites Families (2)

* 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
CN107635103B (en) * 2015-08-11 2020-02-14 Oppo广东移动通信有限公司 Image processing method, mobile terminal and medium product

Patent Citations (7)

* 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
US20130266220A1 (en) * 2012-04-05 2013-10-10 Sony Corporation Color signal processing circuit, color signal processing method, color reproduction evaluating method, imaging apparatus, electronic apparatus and testing device
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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021697A (en) * 2017-12-19 2018-05-11 广东小天才科技有限公司 Photographing and question searching method based on terminal equipment and terminal equipment
CN108280811A (en) * 2018-01-23 2018-07-13 哈尔滨工业大学深圳研究生院 A kind of image de-noising method and system based on neural network
CN111351078A (en) * 2018-12-20 2020-06-30 九阳股份有限公司 Lampblack identification method of range hood and range hood
CN111351078B (en) * 2018-12-20 2022-05-03 九阳股份有限公司 Lampblack identification method of range hood and range hood
CN110110638A (en) * 2019-04-29 2019-08-09 江苏省人民医院(南京医科大学第一附属医院) Control command analysis system for hospital disinfection room
CN110110638B (en) * 2019-04-29 2019-12-17 江苏省人民医院(南京医科大学第一附属医院) control command analysis system for hospital disinfection room
CN112104812A (en) * 2019-06-18 2020-12-18 北京京东尚科信息技术有限公司 Method and device for acquiring picture
CN112104812B (en) * 2019-06-18 2023-11-07 北京京东尚科信息技术有限公司 Picture acquisition method and device
CN110519485A (en) * 2019-09-09 2019-11-29 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110519485B (en) * 2019-09-09 2021-08-31 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN107635103A (en) 2018-01-26
CN107635103B (en) 2020-02-14
CN105100636B (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN105100636A (en) Image processing method and mobile terminal
CN107635102B (en) Method and device for acquiring exposure compensation value of high-dynamic-range image
EP3343911A1 (en) Image signal processing method and system
CN110766621B (en) Image processing method, image processing device, storage medium and electronic equipment
US8363131B2 (en) Apparatus and method for local contrast enhanced tone mapping
FI116327B (en) Method and system for automatically adjusting color balance in a digital image processing chain, corresponding hardware and software means for implementing the method
JP4677753B2 (en) Moving image processing apparatus and method
CN100431340C (en) Solid imaging equipment
US20070040929A1 (en) Image combination device
CN110136071A (en) A kind of image processing method, device, electronic equipment and storage medium
US9177396B2 (en) Image processing apparatus and image processing method
US9025820B2 (en) Image processing apparatus and image processing method
KR100609155B1 (en) Image processing device and method for compensating a picture taken against the light using the same
EP1335611B1 (en) Camera with image recording mode switching function
CN108629738B (en) Image processing method and device
JP4595569B2 (en) Imaging device
CN110365920A (en) Image procossing
JP3378601B2 (en) Image processing device
JP2008305122A (en) Image-processing apparatus, image processing method and program
US20130266220A1 (en) Color signal processing circuit, color signal processing method, color reproduction evaluating method, imaging apparatus, electronic apparatus and testing device
JP2006270752A (en) Electronic finder and electronic camera using it
CN115527474A (en) Image display method, image display device, projection device, and storage medium
CN103167183B (en) Translucent camera aperture processing method, system and mobile terminal
US20040208393A1 (en) Image processing device, image processing method, and image processing program product for making determination based on spectrum
JP4954658B2 (en) Image processing device

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