CN105578063B - A kind of image processing method and terminal - Google Patents
A kind of image processing method and terminal Download PDFInfo
- Publication number
- CN105578063B CN105578063B CN201510413773.7A CN201510413773A CN105578063B CN 105578063 B CN105578063 B CN 105578063B CN 201510413773 A CN201510413773 A CN 201510413773A CN 105578063 B CN105578063 B CN 105578063B
- Authority
- CN
- China
- Prior art keywords
- image
- black white
- coloured
- camera
- coloured image
- 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.)
- Active
Links
Landscapes
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
The invention discloses a kind of image processing method, methods described includes:The coloured image of the first camera shooting and the black white image of same time second camera shooting are obtained, first camera is located at the same side of terminal with the second camera;Extract the color information parameter of each pixel in the coloured image;Extract the half-tone information parameter of each pixel in the black white image;According to the half-tone information parameter of corresponding pixel points in the color information parameter of pixel in the coloured image and the black white image, the color information parameter of corresponding pixel points in output image is determined.The invention also discloses a kind of image processing terminal.Using the present invention, the shooting effect of low illumination conditions hypograph can be improved.
Description
Technical field
The present invention relates to electronic technology field, more particularly to a kind of image processing method and terminal.
Background technology
As the development of electronic product and image processing techniques is more and more quicker, the image that people shoot to electronic product
Shooting effect requires also more and more higher.At present, shooting is realized generally by integrated a colour imagery shot on electronic product
The function of photochrome, colour imagery shot is the perception by focusing on white light realization to external environment, and ambient removes
White light (visible ray) outside, also there is infrared ray, when being in the environment of low-light level, white light seldom and infrared ray account for leading
Lead, the color pixel that infrared ray is formed on a sensor when this results in the shooting under low-light level environment can interfere with white light and pass
The coloured image formed on sensor, so that taking the photo come has color error ratio, shooting effect is poor.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of image processing method and terminal, Ke Yigai
The shooting effect and presentation effect of kind low illumination conditions hypograph.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of image processing method, methods described to include:
Obtain the coloured image of the first camera shooting and the black white image of same time second camera shooting, described the
One camera is located at the same side of terminal with the second camera;
Extract the color information parameter of each pixel in the coloured image;
Extract the half-tone information parameter of each pixel in the black white image;
According to corresponding pixel points in the color information parameter of pixel in the coloured image and the black white image
Half-tone information parameter, determine the color information parameter of corresponding pixel points in output image.
Correspondingly, the embodiment of the present invention additionally provides a kind of image processing terminal, including:
Image collection module, for obtaining coloured image and the shooting of same time second camera of the shooting of the first camera
Black white image, first camera and the second camera are located at the same side of terminal;
Colouring information extraction module, for extracting the color information parameter of each pixel in the coloured image;
Half-tone information extraction module, for extracting the half-tone information parameter of each pixel in the black white image;
Output image module, for according to the color information parameter of pixel in the coloured image and the artwork master
The half-tone information parameter of corresponding pixel points as in, determine the color information parameter of corresponding pixel points in output image.
The embodiment of the present invention is by obtaining the coloured image and the shooting of same time second camera that the first camera is shot
Black white image, extract the color information parameter of each pixel in the coloured image, extract each in the black white image
The half-tone information parameter of pixel, according in the color information parameter of pixel in the coloured image and the black white image
The half-tone information parameter of corresponding pixel points, determines the color information parameter of corresponding pixel points in output image, improves low-light level
The shooting effect of situation hypograph.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of image processing method in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of image processing method in another embodiment of the present invention;
Fig. 3 is a kind of composition structural representation of image processing terminal in the embodiment of the present invention;
Fig. 4 is the output image module composition structure chart of Fig. 3 in the embodiment of the present invention;
Fig. 5 is the registration module composition structure chart of Fig. 3 in the embodiment of the present invention;
Fig. 6 is the schematic diagram that coordinate maps in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Fig. 1 is that a kind of schematic flow sheet of image processing method, this method flow can be by images in the embodiment of the present invention
Processing terminal is implemented, and described image processing terminal can include mobile phone, notebook computer, tablet personal computer, digital camera etc..Such as figure
Method flow in shown the present embodiment can include:
Step S101, obtain the coloured image of the first camera shooting and the artwork master of same time second camera shooting
Picture, first camera are located at the same side of terminal with the second camera.
Specifically, after the photographing instruction of user is received, it is described to be imaged positioned at first camera of the same side and second
Head will find a view taking pictures, and the relative position of first camera and the second camera can be one on the other either
One the first from left is right, and both relative distance will can guarantee that in shooting process, first camera and the second camera
Viewfinder range, the acquisition parameters such as angle are all consistent substantially.First camera is provided with the colored filter for filtering out infrared ray
Light microscopic, when being taken pictures under such low-light level, a small amount of white light can pass through first camera and reach sensor in environment, make institute
State the first camera and photograph coloured image by focusing on white light;The second camera is provided with the infrared filtering for filtering out white light
Mirror, because infrared ray is not reduced during low-light level, infrared ray reaches sensor through the second camera, makes described second
Camera photographs the black white image for being filtered white light.Afterwards, terminal obtains the coloured image of the first camera shooting
With the black white image of second camera shooting, the parameter for further extraction pixel.
It is further alternative, when the brightness value of terminal induction to environment is less than default luminance threshold, can lead to respectively
Cross opened when first camera and the second camera shoot the coloured image and the black white image flash lamp to
Shooting direction irradiates fill-in light, and the fill-in light includes white light and infrared ray.Due to the presence of optical filtering, two kinds of light mutually will not
The coloured image and the black white image to shooting produce interference, therefore white light may only give the first camera light filling, red
Outside line may only give second camera light filling, to improve the brightness of shooting environmental.
Step S102, extract the color information parameter of each pixel in the coloured image.
Specifically, the coloured image is made up of a number of pixel, each pixel all includes colouring information
Parameter, terminal are exactly to preserve and reduce the coloured image by extracting the color information parameter of each pixel.Need
It is noted that the color information parameter of coloured image described here is the RGB parameters of RGB color, wherein R, G and B is
The coloured image represents Red Green Blue light in each pixel in the color space component of RGB color respectively
Shared numerical value in point.Different R, G and B numerical value can represent different colourity, therefore by extracting the RGB parameters, can
To obtain the colouring information of each pixel in the coloured image.
Step S103, extract the half-tone information parameter of each pixel in the black white image.
Specifically, the black white image is made up of a number of pixel, each pixel all includes half-tone information
Parameter, terminal are exactly to preserve and reduce the black white image by extracting the half-tone information parameter of each pixel.Need
It is noted that the half-tone information parameter of black white image described here is the YUV parameters of YUV color spaces, wherein Y, U and V is
The black white image represents the luminance component Y and colourity of each pixel in the color space component of YUV color spaces respectively
Component U, V, wherein chromatic component can describe tone and saturation degree.If only Y-signal component is without U, V component, then
The image so represented is exactly black and white gray level image.Therefore by extracting the YUV parameters, can obtain in the black white image
Each pixel half-tone information.
Step S104, according to corresponding in the color information parameter of pixel in the coloured image and the black white image
The half-tone information parameter of pixel, determine the color information parameter of corresponding pixel points in output image.
Specifically, the color information parameter according to pixel in the coloured image of step S102 and step S103 extractions
And in the black white image corresponding pixel points half-tone information parameter, can synthesize to obtain the respective pixel of the output image
The color information parameter of point, so as to which the terminal can is according to the color information parameter of the corresponding pixel points of the output image
To preserve, reduce and present the output image.Gray scale of the black white image than each pixel that the coloured image includes
Information parameter (luminance component Y) is more accurate, and the coloured image is believed than the color for each pixel that the black white image includes
It is more accurate to cease parameter (rgb space component), after synthesis, the output image quality can be obtained by improvement.It is specific real
Shi Zhong, image registration first can be carried out to the coloured image and the black white image, to determine to be directed to same photographic subjects
The corresponding relation of pixel of the position in the coloured image and the pixel of the black white image.Afterwards, by the black and white
Image the YUV color spaces YUV Parameter Switch into the RGB color RGB parameters, then by the black white image
RGB parameters compensate RGB parameters to the coloured image, the RGB parameters of the output image are determined, finally according to described defeated
The RGB parameters for going out image preserve or shown the output image.
The embodiment of the present invention is by obtaining the coloured image and the shooting of same time second camera that the first camera is shot
Black white image, extract the color information parameter of each pixel in the coloured image, extract each in the black white image
The half-tone information parameter of pixel, according in the color information parameter of pixel in the coloured image and the black white image
The half-tone information parameter of corresponding pixel points, determines the color information parameter of corresponding pixel points in output image, improves low-light level
The shooting effect of situation hypograph.
Fig. 2 is the schematic flow sheet of image processing method in another embodiment of the present invention.As shown in the figure in the present embodiment
Method flow can include:
Step S201, obtain the coloured image of the first camera shooting and the artwork master of same time second camera shooting
Picture, first camera are located at the same side of terminal with the second camera.
Specific method refers to step S101.
Step S202, determine the displacement difference vector between the coloured image and the black white image.
Specifically, due to certain distance, the institute of the first camera shooting between the first camera and second camera be present
The black white image for stating coloured image and second camera shooting will have certain skew, it is therefore desirable to the colour
Image and the black white image carry out image registration, first just it needs to be determined that between the coloured image and the black white image
Displacement difference vector.In specific implementation, the terminal by detect two images similar features point, extract the coloured image and
At least one set of fixed reference feature point pair of the black white image;According to the fixed reference feature point to respectively in the coloured image and institute
The reference coordinate on black white image is stated, determines the coordinate mapping relations of the coloured image and the black white image;Then by institute
State mapping relations and be converted into corresponding displacement difference vector.The displacement difference vector have recorded the coloured image and the black and white
Image spatially differ apart from size and correspondence direction, important parameter when being translation compensation.For simplest example
For, as shown in fig. 6, in plane X-Y coordinate, one group of fixed reference feature point pair of the coloured image and the black white image
Coordinate is (1,1) and (2,2), then it is X to obtain its mapping relations2=X1+ 1, Y2=Y1+ 1, then existed according to the mapping relations
Obtain displacement difference vector as depicted.
Step S203, according to the displacement difference vector, translation compensation is carried out to the coloured image and the black white image.
Specifically, after determining the displacement difference vector, side that the terminal can is pointed to according to the displacement difference vector
To with apart from size, translation compensation being carried out to the coloured image and the black white image, to determine to be directed to same photographic subjects
The corresponding relation of pixel of the position in the coloured image and the pixel of the black white image.To the coloured image with
And the image registration of the black white image, can match somebody with somebody using the black white image as with reference to coloured image progress image
It is accurate or be with reference to black white image progress image registration using the coloured image., can be with specific implementation
The black white image is to carry out translation compensation with reference to the coloured image, i.e., described black white image remains stationary as, and only translates institute
State coloured image;Or in turn, translation compensation, i.e. institute can be carried out using the coloured image as with reference to the black white image
State coloured image to remain stationary as, only translate the black white image;On the other hand, a reference coordinate can also be set, by described in
Black white image and the coloured image are using the reference coordinate as with reference to progress translation compensation, i.e., described black white image and the coloured silk
Color image is to the position translation of reference coordinate.Because the above two can reduce time and the difficulty of image procossing, therefore here
From a method as translation compensation in the above two.
Step S204, extract RGB parameter of each pixel in the coloured image in RGB color.
Specifically, the coloured image is made up of a number of pixel, each pixel is all empty comprising RGB color
Between RGB parameters, terminal is exactly to preserve and reduce the coloured image by extracting the RGB parameters of each pixel.
It should be noted that R, G and B are color space component of the coloured image in RGB color here, represent respectively
Red Green Blue light numerical value shared in each pixel.Different R, G and B numerical value can represent different colourity,
Therefore by extracting the RGB parameters, the colouring information of each pixel in the coloured image can be obtained.
Step S205, extract YUV parameter of each pixel in the black white image in YUV color spaces.
Specifically, the black white image is made up of a number of pixel, each pixel is all empty comprising YUV colors
Between YUV parameters, terminal is exactly to preserve and reduce the black white image by extracting the YUV parameters of each pixel.
It should be noted that Y, U and V are color space component of the black white image in YUV color spaces here, represent respectively every
The luminance component Y and chromatic component U, V of individual pixel, wherein chromatic component can describe tone and saturation degree.If only Y believes
Number component is without U, V component, then the image so represented is exactly black and white gray level image.Therefore joined by extracting the YUV
Number, the half-tone information of each pixel in the black white image can be obtained.Further, step S202 and step S203 be
Registration has been carried out to the coloured image and the black white image, therefore for same photographic subjects position in the coloured image
In the pixel that collects one-to-one relation be present with the pixel collected in the black white image.
Step S206, the black white image is empty into the RGB color in the YUV Parameter Switch of the YUV color spaces
Between RGB parameters.
Specifically, the conversion formula of the YUV parameters and the RGB parameters is as follows:
R=1.164 (Y-16)+1.596 (V-128)
G=1.164 (Y-16) -0.813 (V-128) -0.391 (U-128)
B=1.164 (Y-16)+2.018 (U-128)
After YUV parameter of each pixel during step S205 extracts the black white image in YUV color spaces, so that it may
To utilize this group of conversion formula, by the black white image the YUV color spaces YUV Parameter Switch into the RGB color
The color space can of each pixel of the RGB parameters in space, so described black white image and the coloured image keeps one
Cause.
Step S207, according to the RGB parameters of the black white image and the RGB parameters of the coloured image, determine described defeated
Go out the RGB parameters of image.
Specifically, the terminal obtains the RGB parameters of the black white image and the RGB parameters of the coloured image respectively
Afterwards, the RGB parameters of the black white image can be compensated to the RGB parameters to the coloured image, to determine the output image
RGB parameters.Here compensation can be that part compensation can also be whole compensation, and specific compensation way can be by institute
The quality settings threshold value that the first camera shoots the coloured image come is stated, to the multinomial finger such as definition, brightness, contrast
Mark is judged, for example, when many index of the coloured image exceedes the threshold value, represents the quality of the coloured image
Hit the target, only need the part compensation of the RGB parameters of 50% black white image;It is more when the coloured image
When item index is not less than the threshold value, represent that the quality of the coloured image is not up to desired indicator, can be by the artwork master
The RGB parameters of picture all compensate the RGB parameters to the coloured image.For concrete example, it is assumed that the mesh of the black white image
The RGB parameters of mark pixel be [66,20,57], the RGB ginsengs with the target pixel points corresponding pixel points of the coloured image
Number is [91,52,43], and many index of the coloured image is not less than the threshold value, at this moment just by the black white image
All compensation gives the coloured image corresponding to the target pixel points to the RGB parameters [66,20,57] of the target pixel points
Pixel RGB parameters [91,52,43], then the RGB parameters of the target pixel points of the output image just for the R,
G, the value [157,72,100] after the corresponding superposition of B component.Each pixel of the output image is obtained with by methods described
The RGB parameters of point, the final terminal can be according to the preservations of the RGB parameters of each pixel of the output image and showing
Output image.
The embodiment of the present invention is by obtaining the coloured image and the shooting of same time second camera that the first camera is shot
Black white image, extract the color information parameter of each pixel in the coloured image, extract each in the black white image
The half-tone information parameter of pixel, according in the color information parameter of pixel in the coloured image and the black white image
The half-tone information parameter of corresponding pixel points, determines the color information parameter of corresponding pixel points in output image, improves low-light level
The shooting effect of situation hypograph.
Fig. 3 is a kind of composition structural representation of image processing terminal in the embodiment of the present invention, described image processing terminal
Mobile phone, notebook computer, tablet personal computer, digital camera etc. can be included.The terminal in the present embodiment can include as shown in the figure:
Image collection module 310, for the coloured image for obtaining the shooting of the first camera and same time second camera
The black white image of shooting, first camera are located at the same side of terminal with the second camera.
Specifically, after the photographing instruction of user is received, it is described to be imaged positioned at first camera of the same side and second
Head will find a view taking pictures, and the relative position of first camera and the second camera can be one on the other either
One the first from left is right, and both relative distance will can guarantee that in shooting process, first camera and the second camera
Viewfinder range, the acquisition parameters such as angle are all consistent substantially.First camera is provided with the colored filter for filtering out infrared ray
Light microscopic, when being taken pictures under such low-light level, a small amount of white light can pass through first camera and reach sensor in environment, make institute
State the first camera and photograph coloured image by focusing on white light;The second camera is provided with the infrared filtering for filtering out white light
Mirror, because infrared ray is not reduced during low-light level, infrared ray reaches sensor through the second camera, makes described second
Camera photographs the black white image for being filtered white light.Afterwards, described image acquisition module 310 obtains first camera
The coloured image of shooting and the black white image of second camera shooting, for further extracting the parameter of pixel.
Colouring information extraction module 320, for extracting the color information parameter of each pixel in the coloured image.
Specifically, the coloured image is made up of a number of pixel, each pixel all includes colouring information
Parameter, the colouring information extraction module 320 are exactly to preserve and go back by extracting the color information parameter of each pixel
The former coloured image.It should be noted that the color information parameter of coloured image described here is RGB color
RGB parameters, wherein R, G and B are color space component of the coloured image in RGB color, represent respectively it is red, green,
Primary colors light numerical value shared in each pixel.Different R, G and B numerical value can represent different colourity, therefore logical
Cross and extract the RGB parameters, the colouring information of each pixel in the coloured image can be obtained.
Half-tone information extraction module 330, for extracting the half-tone information parameter of each pixel in the black white image.
Specifically, the black white image is made up of a number of pixel, each pixel all includes half-tone information
Parameter, the half-tone information extraction module 330 are exactly to preserve and go back by extracting the half-tone information parameter of each pixel
The former black white image.It should be noted that the half-tone information parameter of black white image described here is YUV color spaces
YUV parameters, wherein Y, U and V are color space component of the black white image in YUV color spaces, represent each picture respectively
The luminance component Y and chromatic component U, V of vegetarian refreshments, wherein chromatic component can describe tone and saturation degree.If only Y-signal point
Amount is without U, V component, then the image so represented is exactly black and white gray level image.Therefore, can by extracting the YUV parameters
To obtain the half-tone information of each pixel in the black white image.Further, registration module 360 can be to the cromogram
Picture and the black white image carry out registration, therefore are directed to the pixel that same photographic subjects position collects in the coloured image
One-to-one relation be present when being gathered with the pixel collected in the black white image in point.
Output image module 340, for according to the color information parameter of pixel in the coloured image and described black
The half-tone information parameter of corresponding pixel points in white image, determine the color information parameter of corresponding pixel points in output image.
Specifically, the coloured image extracted according to colouring information extraction module 320 and half-tone information extraction module 330
The half-tone information parameter of corresponding pixel points in the color information parameter of middle pixel and the black white image, can synthesize to obtain
The color information parameter of the corresponding pixel points of the output image, so as to which the can of output image module 340 is according to
The color information parameter of the corresponding pixel points of output image preserves, reduces and presented the output image.The black white image
The half-tone information parameter (luminance component Y) of each pixel included than the coloured image is more accurate, and the coloured image ratio
The color information parameter (rgb space component) for each pixel that the black white image includes is more accurate, described after synthesis
Output image quality can be obtained by improvement.
Further, the output image module 340 also includes:Parameter conversion unit 341 and parameter conversion unit 341,
As described in Figure 4.
Parameter conversion unit 341, for by the black white image the YUV color spaces YUV Parameter Switch into institute
State the RGB parameters of RGB color.
Specifically, the conversion formula of the YUV parameters and the RGB parameters is as follows:
R=1.164 (Y-16)+1.596 (V-128)
G=1.164 (Y-16) -0.813 (V-128) -0.391 (U-128)
B=1.164 (Y-16)+2.018 (U-128)
The YUV of each pixel in half-tone information extraction module 330 extracts the black white image in YUV color spaces
After parameter, the can of parameter conversion unit 341 utilizes this group of conversion formula, by the black white image in the YUV color spaces
YUV Parameter Switch into the RGB parameters of the RGB color, each picture of so described black white image and the coloured image
The color space can of vegetarian refreshments is consistent.
Parameter determination unit 342, for the RGB parameters and the RGB parameters of the coloured image according to the black white image,
Determine the RGB parameters of the output image.
Specifically, the colouring information extraction module 320 and the half-tone information extraction module 330 obtain respectively it is described black
After white the RGB parameters of image and the RGB parameters of the coloured image, the parameter determination unit 342 can be by the artwork master
The RGB parameters of picture compensate the RGB parameters to the coloured image, to determine the RGB parameters of the output image.Here compensation
Can be that part compensation can also be whole compensation, specific compensation way can by first camera is shot come
The coloured image quality settings threshold value, many indexs such as definition, brightness, contrast are judged, for example, working as institute
When stating many index of coloured image and exceeding the threshold value, the quality hit the target of the coloured image is represented, is only needed
The part compensation of the RGB parameters of 50% black white image;When many index of the coloured image is not less than described
During threshold value, represent that the quality of the coloured image is not up to desired indicator, the RGB parameters of the black white image can all be mended
Repay the RGB parameters to the coloured image.For concrete example, it is assumed that the RGB parameters of the target pixel points of the black white image
For [66,20,57], the coloured image is [91,52,43] with the RGB parameters of the target pixel points corresponding pixel points, and
The many index of the coloured image is not less than the threshold value, at this moment just by the target pixel points of the black white image
RGB parameters [66,20,57] all compensate the RGB parameters with the target pixel points corresponding pixel points to the coloured image
[91,52,43], then the RGB parameters of the target pixel points of the output image are just the R, G, after the corresponding superposition of B component
Value [157,72,100].The RGB parameters of each pixel of the output image, final institute are obtained with by methods described
The output figure can be preserved and show according to the RGB parameters of each pixel of the output image by stating output image module 340
Picture.
Flash module 350, for shooting the cromogram by first camera and the second camera respectively
Flash lamp is opened when picture and the black white image and irradiates fill-in light to shooting direction, the fill-in light includes white light and infrared light.
It is specific optional, when the brightness value of terminal induction to environment is less than default luminance threshold, can pass through respectively
Flash module 350 is opened when shooting the coloured image and the black white image to first camera and the second camera
Open flash lamp and irradiate fill-in light to shooting direction, the fill-in light includes white light and infrared ray.Due to the presence of optical filtering, two kinds
Light will not produce mutually interference to the coloured image of shooting and the black white image, therefore white light may only be to the first shooting
Head light filling, infrared ray may only give second camera light filling, to improve the brightness of shooting environmental.
Registration module 360, for carrying out image registration to the coloured image and the black white image, to determine to be directed to
The corresponding relation of pixel of the same photographic subjects position in the coloured image and the pixel of the black white image.
The registration module 360 includes:Displacement difference determining unit 361 and compensating unit 362, as described in Figure 5.
Displacement difference determining unit 361, for determining the displacement difference vector between the coloured image and the black white image.
Specifically, due to certain distance, the institute of the first camera shooting between the first camera and second camera be present
The black white image for stating coloured image and second camera shooting will have certain skew, it is therefore desirable to the colour
Image and the black white image carry out image registration.In specific implementation, the displacement difference determining unit 361 is by detecting two figures
The similar features point of picture, extract at least one set of fixed reference feature point pair of the coloured image and the black white image;According to described
Fixed reference feature point determines the coloured image and institute to the reference coordinate on the coloured image and the black white image respectively
State the coordinate mapping relations of black white image;Then the mapping relations are converted into corresponding displacement difference vector.The displacement
Difference vector have recorded the coloured image and the black white image spatially differs apart from size and correspondence direction, be flat
Move important parameter during compensation.For simplest example, as shown in fig. 6, in plane X-Y coordinate, the cromogram
One group of fixed reference feature point of picture and the black white image is (1,1) and (2,2) to coordinate, then it is X to obtain its mapping relations2=
X1+ 1, Y2=Y1+ 1, then obtaining displacement difference vector as depicted according to the mapping relations.
Compensating unit 362, for according to the displacement difference vector, being translated to institute's coloured image and the black white image
Compensation.
Specifically, after determining the displacement difference vector, the can of compensating unit 362 refers to according to the displacement difference vector
To direction with apart from size, translation compensation is carried out to the coloured image and the black white image, to determine to be directed to same bat
Take the photograph the corresponding relation of pixel of the target location in the coloured image and the pixel of the black white image.To the colour
The image registration of image and the black white image, can be that figure is carried out to the coloured image by reference of the black white image
Image registration is carried out as registration or using the coloured image as with reference to the black white image., can in specific implementation
To carry out translation compensation using the black white image as with reference to the coloured image, i.e., described black white image remains stationary as, only flat
Move the coloured image;Or in turn, translation compensation can be carried out using the coloured image as with reference to the black white image,
I.e. described coloured image remains stationary as, and only translates the black white image;On the other hand, a reference coordinate can also be set, will
The black white image and the coloured image are using the reference coordinate as with reference to progress translation compensation, i.e., described black white image and institute
Coloured image is stated to the position translation of reference coordinate.Because the above two can reduce time and the difficulty of image procossing, therefore
Here the method as translation compensation selected in the above two.
The embodiment of the present invention is by obtaining the coloured image and the shooting of same time second camera that the first camera is shot
Black white image, extract the color information parameter of each pixel in the coloured image, extract each in the black white image
The half-tone information parameter of pixel, according in the color information parameter of pixel in the coloured image and the black white image
The half-tone information parameter of corresponding pixel points, determines the color information parameter of corresponding pixel points in output image, improves low-light level
The shooting effect of situation hypograph.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (8)
1. a kind of image processing method, it is characterised in that methods described includes:
The coloured image of the first camera shooting and the black white image of same time second camera shooting are obtained, described first takes the photograph
As head and the second camera are located at the same side of terminal;
Image registration is carried out to the coloured image and the black white image, to determine for same photographic subjects position in institute
State the corresponding relation of the pixel of the pixel and the black white image in coloured image;
Extract the color information parameter of each pixel in the coloured image;
Extract the half-tone information parameter of each pixel in the black white image;
The color information parameter of the coloured image is the RGB parameters of RGB color, and the half-tone information of the black white image is joined
Number is the YUV parameters of YUV color spaces;
By the black white image the YUV color spaces YUV Parameter Switch into the RGB color RGB parameters;
According to the quality of the coloured image, by the RGB argument sections compensation of the black white image or all compensate to described
The RGB parameters of coloured image, to determine the RGB parameters of output image;
It is described that the coloured image and black white image progress image registration are included:
The similar features point of two images is detected, extracts at least one set of fixed reference feature of the coloured image and the black white image
Point pair;
According to the fixed reference feature point to the reference coordinate on the coloured image and the black white image respectively, it is determined that described
The coordinate mapping relations of coloured image and the black white image;
The mapping relations are converted into corresponding displacement difference vector;
According to the displacement difference vector, translation compensation is carried out to the coloured image and the black white image.
2. image processing method as claimed in claim 1, it is characterised in that first camera is provided with and filters out infrared ray
Colorized optical filtering mirror, the second camera are provided with the infrared filter for filtering out white light.
3. image processing method as claimed in claim 1, it is characterised in that methods described also includes:
Opened when shooting the coloured image and the black white image by first camera and the second camera respectively
Open flash lamp and irradiate fill-in light to shooting direction, the fill-in light includes white light and infrared ray.
4. image processing method as claimed in claim 1, it is characterised in that described to the coloured image and the black and white
Image, which carries out image registration, to be included:Image registration is carried out using the black white image as with reference to the coloured image, or with described
Coloured image is to carry out image registration with reference to the black white image.
5. a kind of image processing terminal, it is characterised in that the terminal includes:
Image collection module, coloured image and same time second camera for obtaining the shooting of the first camera shoot black
White image, first camera are located at the same side of terminal with the second camera;
Colouring information extraction module, for extracting the color information parameter of each pixel in the coloured image;
Half-tone information extraction module, for extracting the half-tone information parameter of each pixel in the black white image;
The color information parameter of the coloured image is the RGB parameters of RGB color, and the half-tone information of the black white image is joined
Number is the YUV parameters of YUV color spaces;
Output image module, for by the black white image the YUV color spaces YUV Parameter Switch into the RGB face
The RGB parameters of the colour space;According to the quality of the coloured image, by the RGB argument sections compensation or complete of the black white image
Portion compensates the RGB parameters to the coloured image, to determine the RGB parameters of output image;
Registration module, for carrying out image registration to the coloured image and the black white image, to determine to be directed to same bat
Take the photograph the corresponding relation of pixel of the target location in the coloured image and the pixel of the black white image;
The registration module includes:
Displacement difference determining unit, for detecting the similar features point of two images, extract the coloured image and the artwork master
At least one set of fixed reference feature point pair of picture;According to the fixed reference feature point to respectively in the coloured image and the black white image
On reference coordinate, determine the coordinate mapping relations of the coloured image and the black white image;The mapping relations are changed
As corresponding displacement difference vector;
Compensating unit, for according to the displacement difference vector, translation compensation to be carried out to institute's coloured image and the black white image.
6. image processing terminal as claimed in claim 5, it is characterised in that first camera is provided with and filters out infrared ray
Colorized optical filtering mirror, the second camera are provided with the infrared filter for filtering out white light.
7. image processing terminal as claimed in claim 5, it is characterised in that the terminal also includes:
Flash module, for shooting the coloured image and described by first camera and the second camera respectively
Flash lamp is opened during black white image and irradiates fill-in light to shooting direction, the fill-in light includes white light and infrared light.
8. image processing terminal as claimed in claim 5, it is characterised in that described to the coloured image and the black and white
Image, which carries out image registration, to be included:Image registration is carried out using the black white image as with reference to the coloured image, or with described
Coloured image is to carry out image registration with reference to the black white image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510413773.7A CN105578063B (en) | 2015-07-14 | 2015-07-14 | A kind of image processing method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510413773.7A CN105578063B (en) | 2015-07-14 | 2015-07-14 | A kind of image processing method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105578063A CN105578063A (en) | 2016-05-11 |
CN105578063B true CN105578063B (en) | 2018-04-10 |
Family
ID=55887670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510413773.7A Active CN105578063B (en) | 2015-07-14 | 2015-07-14 | A kind of image processing method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105578063B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336907A (en) * | 2019-08-21 | 2019-10-15 | 惠州Tcl移动通信有限公司 | Terminal, shooting method and storage medium |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10362205B2 (en) | 2016-04-28 | 2019-07-23 | Qualcomm Incorporated | Performing intensity equalization with respect to mono and color images |
CN106060419B (en) * | 2016-06-30 | 2019-05-17 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN106101666B (en) * | 2016-06-30 | 2018-09-04 | 维沃移动通信有限公司 | A kind of method and mobile terminal of image color reservation |
CN106454077B (en) * | 2016-09-26 | 2021-02-23 | 宇龙计算机通信科技(深圳)有限公司 | Shooting method, shooting device and terminal |
CN106454290B (en) * | 2016-10-12 | 2019-05-14 | 成都西纬科技有限公司 | A kind of dual camera image processing system and method |
CN106550227B (en) * | 2016-10-27 | 2019-02-22 | 成都西纬科技有限公司 | A kind of image saturation method of adjustment and device |
CN106412534B (en) * | 2016-10-27 | 2018-09-11 | 成都西纬科技有限公司 | A kind of brightness of image adjusting method and device |
JP6803982B2 (en) * | 2016-11-03 | 2020-12-23 | 華為技術有限公司Huawei Technologies Co.,Ltd. | Optical imaging method and equipment |
CN110089103B (en) | 2016-12-28 | 2020-08-07 | 华为技术有限公司 | A method and device for demosaicing |
DE112017007165T5 (en) * | 2017-03-02 | 2019-11-14 | Sony Corporation | PICTURE PROCESSING DEVICE AND PICTURE DEVICE |
CN110476056B (en) * | 2017-04-26 | 2022-02-18 | 深圳配天智能技术研究院有限公司 | Visual detection method, detection equipment and robot |
CN107087108A (en) * | 2017-05-18 | 2017-08-22 | 努比亚技术有限公司 | A kind of image processing method and device based on dual camera |
CN107493431A (en) * | 2017-08-31 | 2017-12-19 | 努比亚技术有限公司 | A kind of image taking synthetic method, terminal and computer-readable recording medium |
CN107566730B (en) * | 2017-09-27 | 2019-10-15 | 维沃移动通信有限公司 | A panoramic image shooting method and mobile terminal |
CN108022227B (en) * | 2017-12-29 | 2022-03-18 | 努比亚技术有限公司 | Black and white background picture acquisition method and device and computer readable storage medium |
CN108445010B (en) * | 2018-03-12 | 2021-01-22 | 昆山国显光电有限公司 | Automatic optical detection method and device |
CN108540736A (en) * | 2018-04-03 | 2018-09-14 | 深圳新亮智能技术有限公司 | Infrared laser illuminates the camera chain of Color License Plate |
CN108737728B (en) * | 2018-05-03 | 2021-06-11 | Oppo广东移动通信有限公司 | Image shooting method, terminal and computer storage medium |
CN109120911B (en) * | 2018-07-09 | 2019-11-15 | 武汉斗鱼网络科技有限公司 | A kind of video method for transformation, device, equipment and medium |
CN109785251B (en) * | 2018-12-25 | 2021-02-12 | 北京中科慧眼科技有限公司 | Image quality improving method and device and automatic driving system |
CN111970432A (en) * | 2019-05-20 | 2020-11-20 | 华为技术有限公司 | Image processing method and image processing device |
CN112822465B (en) * | 2019-11-15 | 2023-06-16 | 北京小米移动软件有限公司 | Terminal equipment and image processing method |
CN111479075B (en) * | 2020-04-02 | 2022-07-19 | 青岛海信移动通信技术股份有限公司 | Photographing terminal and image processing method thereof |
CN112133101B (en) * | 2020-09-22 | 2021-11-26 | 杭州海康威视数字技术股份有限公司 | Method and device for enhancing license plate area, camera device, computing equipment and storage medium |
CN113038017A (en) * | 2021-03-24 | 2021-06-25 | 重庆中科云从科技有限公司 | Image acquisition method, image acquisition device and computer-readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986875A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring device, method and terminal and video acquiring method |
CN104463112A (en) * | 2014-11-27 | 2015-03-25 | 深圳市科葩信息技术有限公司 | Method and system for carrying out biological recognition through RGB+IR image sensor |
CN105049718A (en) * | 2015-07-06 | 2015-11-11 | 深圳市金立通信设备有限公司 | Image processing method and terminal |
-
2015
- 2015-07-14 CN CN201510413773.7A patent/CN105578063B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986875A (en) * | 2014-05-29 | 2014-08-13 | 宇龙计算机通信科技(深圳)有限公司 | Image acquiring device, method and terminal and video acquiring method |
CN104463112A (en) * | 2014-11-27 | 2015-03-25 | 深圳市科葩信息技术有限公司 | Method and system for carrying out biological recognition through RGB+IR image sensor |
CN105049718A (en) * | 2015-07-06 | 2015-11-11 | 深圳市金立通信设备有限公司 | Image processing method and terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336907A (en) * | 2019-08-21 | 2019-10-15 | 惠州Tcl移动通信有限公司 | Terminal, shooting method and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105578063A (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105578063B (en) | A kind of image processing method and terminal | |
CN105554483B (en) | A kind of image processing method and terminal | |
CN111738970B (en) | Image fusion method, device and computer readable storage medium | |
TWI464706B (en) | Dark portion exposure compensation method for simulating high dynamic range with single image and image processing device using the same | |
US10645268B2 (en) | Image processing method and apparatus of terminal, and terminal | |
US8111946B2 (en) | Image processing apparatus, imaging apparatus, and image processing method | |
CN105049718A (en) | Image processing method and terminal | |
KR20200014842A (en) | Image illumination methods, devices, electronic devices and storage media | |
EP2798831A1 (en) | Spectral image processing | |
CN108012078A (en) | Image brightness processing method, device, storage medium and electronic equipment | |
CN108259770A (en) | Image processing method, image processing device, storage medium and electronic equipment | |
WO2019134491A1 (en) | Method and apparatus for processing image | |
US20240185389A1 (en) | Image processing method and electronic device | |
US12262156B2 (en) | White balance processing method and electronic device | |
CN107948511A (en) | Brightness of image processing method, device, storage medium and electronic equipment | |
CN107705263A (en) | A kind of adaptive Penetrating Fog method and terminal based on RGB IR sensors | |
CN114866754A (en) | Automatic white balance method and device, computer readable storage medium and electronic equipment | |
CN107682611B (en) | Focusing method and device, computer readable storage medium and electronic equipment | |
CN111866369B (en) | Image processing method and device | |
CN110460783B (en) | Array camera module, image processing system, image processing method and electronic equipment | |
CN116437198B (en) | Image processing method and electronic equipment | |
CN105979151B (en) | A kind of image processing method and terminal | |
CN109166082A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN109447925B (en) | Image processing method and device, storage medium, electronic device | |
CN118071658A (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium |
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 |