CN103647958A - Image processing method and device and electronic device - Google Patents

Image processing method and device and electronic device Download PDF

Info

Publication number
CN103647958A
CN103647958A CN201310717185.3A CN201310717185A CN103647958A CN 103647958 A CN103647958 A CN 103647958A CN 201310717185 A CN201310717185 A CN 201310717185A CN 103647958 A CN103647958 A CN 103647958A
Authority
CN
China
Prior art keywords
color
motif
image
conversion matrix
image data
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
CN201310717185.3A
Other languages
Chinese (zh)
Other versions
CN103647958B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310717185.3A priority Critical patent/CN103647958B/en
Publication of CN103647958A publication Critical patent/CN103647958A/en
Application granted granted Critical
Publication of CN103647958B publication Critical patent/CN103647958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

Disclosed is an image processing method and device and an electronic device. The electronic device comprises a camera unit. The image processing method comprises utilizing the camera unit to capture an image and obtaining original image data corresponding to the image; determining the color motif of the captured image according to the original image data; obtaining a color conversion matrix which can convert the original image data to target image data; modifying the color conversion matrix according to the color motif to be matched with the color motif; utilizing the modified color conversion matrix to convert the original image data. In the technical scheme according to the embodiment of the image processing method and device and the electronic device, a user can effectively improve color cast in a shot picture by determining the color motif of the captured image and modifying the color conversion matrix on the basis of the color motif.

Description

Image processing method, image processing apparatus and electronic equipment
Technical field
The present invention relates to electronic technology field, more specifically, relate to a kind of image processing method, image processing apparatus and electronic equipment.
Background technology
In the process of utilizing the camera of mobile phone, camera, video camera to take, due to the problem of light or angle, in captured image, likely there is the situation of colour cast, between the color of captured image and the color of real-world object, there is deviation.For example, the color of captured image may be partially yellow, compile red or partially blue etc.
In existing technology, conventionally take following technology to reduce or eliminate colour cast.A kind of technology is before taking, to adjust the white balance of taking equipment, white balance is to be described in while showing red, green, blue three primary colors to mix an index that generates rear white accuracy, this index is very sensitive for the impact of colour temperature, in use be difficult to accurate adjustment, thus color difference eliminating well.Another kind of technology is to increase specific color displacement amount, but in the situation that the brightness of photographed scene changes, described specific color displacement amount can be improper, can cause colour cast equally.Therefore, existing color correction technology can not reduce or eliminate the colour cast problem in taking effectively.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method, image processing apparatus and has comprised the electronic equipment of this image processing apparatus, and it can improve the colour cast phenomenon in shooting picture effectively.
On the one hand, provide a kind of image processing method, be applied to comprise the electronic equipment of image unit, this image processing method can comprise: utilize image unit to catch image, and obtain the raw image data corresponding with this image; Based on described raw image data, determine the color motif of the image of catching; Obtain and described raw image data can be converted to the color conversion matrix of destination image data; Based on described color motif, revise described color conversion matrix to match with described color motif; Utilize revised color conversion matrix to change described raw image data.
In described image processing method, the described color motif based on the definite image of catching of described raw image data can comprise: determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature; Described environmental information is combined and determines described color motif with colouring information in image.
In described image processing method, describedly based on described color motif, revise described color conversion matrix to match and to comprise with described color motif: based on described color motif, determine tone color corresponding with this color motif in described color conversion matrix; Conversion coefficient based in color conversion matrix described in tone color correct is to match with described color motif.
In described image processing method, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and can comprise with described color motif: determine whether the conversion coefficient corresponding with described tone color meets predetermined condition; When the conversion coefficient corresponding with described tone color meets predetermined condition, revise the conversion coefficient except the conversion coefficient corresponding with described tone color in described color conversion matrix, to match with described color motif.
In described image processing method, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and also can comprise with described color motif: when not meeting predetermined condition with conversion coefficient corresponding to described tone color, revise the conversion coefficient corresponding with described tone color in described color conversion matrix, to match with described color motif.
In described image processing method, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and can comprise with described color motif: the tone color that will revise for each, with equal proportion, revise its each conversion coefficient to match with described color motif.
In described image processing method, the color conversion matrix of obtaining can be for described raw image data being carried out to the linear transformation matrix of linear transformation.
On the other hand, a kind of image processing apparatus is provided, be applied to comprise the electronic equipment of image unit, this image processing apparatus can comprise: acquiring unit, be used for utilizing image unit to catch image, and obtain the raw image data corresponding with this image, and obtain and described raw image data can be converted to the color conversion matrix of destination image data; Keynote determining unit, for determining the color motif of caught image based on described raw image data; Amending unit, for revising described color conversion matrix to match with described color motif based on described color motif; Converting unit, for utilizing revised color conversion matrix to change described raw image data.
In described image processing apparatus, described keynote determining unit can be determined the color motif of the image of catching as follows: determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature; Described environmental information is combined and determines described color motif with colouring information in image.
In described image processing apparatus, described amending unit can comprise: color corresponding component, for the tone color of determining that based on described color motif described color conversion matrix is corresponding with this color motif; Correcting part, for the conversion coefficient based on color conversion matrix described in tone color correct to match with described color motif.
In described image processing apparatus, described amending unit also can comprise: determining means, for determining whether the conversion coefficient of described tone color meets predetermined condition, when described determining means determines that the conversion coefficient of described tone color meets predetermined condition, described correcting part can be revised in described color conversion matrix the conversion coefficient except the conversion coefficient of described tone color to match with described color motif.
In described image processing apparatus, when described determining means determines that the conversion coefficient of described tone color does not meet predetermined condition, described correcting part can be revised the conversion coefficient for described tone color in described color conversion matrix to match with described color motif.
In described image processing apparatus, described correcting part is the conversion coefficient based in color conversion matrix described in tone color correct as follows: the tone color that will revise for each, with equal proportion, revise its each conversion coefficient to match with described color motif.
In described image processing apparatus, the color conversion matrix that described acquiring unit obtains can be for described raw image data being carried out to the linear transformation matrix of linear transformation.
Another aspect, provides a kind of electronic equipment, comprising: image unit; Image processing apparatus as above.
At above-mentioned image processing method, the image processing apparatus of the embodiment of the present invention with comprise in the technical scheme of electronic equipment of this image processing apparatus, by determining the color motif of the image of catching and revising described color conversion matrix based on described color motif, thereby can effectively improve the colour cast phenomenon in shooting picture.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 the has been indicative icon flow chart of the image processing method of example embodiment according to the present invention;
Fig. 2 the has been indicative icon flow chart of the operation of the correction color conversion matrix in the image processing method of example embodiment according to the present invention;
Fig. 3 the has been indicative icon block diagram of the image processing apparatus of example embodiment according to the present invention;
Fig. 4 the has been indicative icon block diagram of the correcting part in the image processing apparatus of example embodiment according to the present invention;
Fig. 5 the has been indicative icon block diagram of the electronic equipment of example embodiment according to 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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.
Fig. 1 the has been indicative icon flow chart of the image processing method 100 of example embodiment according to the present invention.The electronic equipment that this image processing method 100 is applied to is such as being mobile phone, personal digital assistant, computer etc., and the image unit wherein having such as camera is caught image.This image processing method 100, for the image of catching by described image unit is processed, with the aberration in removal of images, thereby obtains the image that its color more approaches the true colors of subject.
As shown in Figure 1, this image processing method 100 comprises: utilize image unit to catch image, and obtain the raw image data corresponding with this image (S110); Based on described raw image data, determine the color motif (S120) of the image of catching; Obtain the color conversion matrix (S130) that described raw image data can be converted to destination image data; Based on described color motif revise described color conversion matrix with described color motif match (S140); Utilize revised color conversion matrix to change described raw image data (S150).
In S110, obtain the raw image data corresponding with the image of subject.When the image unit in electronic equipment is activated, image unit becomes light electric charge and converts digital signal to, thereby obtains the raw image data corresponding with the image of subject.For example, at described image unit, be charge coupled device (CCD, charge coupled deice) in situation, light enters the camera lens in charge coupled device, then experience RGB primary colors color separation (being colour filter), light source after colour filter is converted to electronic signal by sensitization, i.e. raw image data.
The raw image data of the acquisition of process RGB primary colors color separation processing is original RGB data.RGB is exactly respectively the English initial of red (Red), green (Green) and blue (Blue), the all colours that mankind's eyes can be identified can be comprised of red, green and blue, therefore in the color separation of RGB primary colors, by the color of these three passages, can adjust to the color that expectation represents.In addition, can also carry out CMYK(green grass or young crops, fuchsin, Huang, black to light) primary colors color separation processing and obtain original cmyk data as raw image data.Described raw image data also needs to utilize color conversion matrix to convert the view data of standard to, to show on display or to print in printer.
In existing technology, described raw image data is multiplied by color conversion matrix, thereby raw image data is converted to target image space, to show on display or to print in printer.With described raw image data correspondingly, described destination image data is such as being rgb image data, CMYK view data etc.In the technical scheme of the embodiment of the present invention, obtain by S120 as described below, 130, S140 the color conversion matrix of correction, and in S150, utilize revised color conversion matrix to change described raw image data.
In S120, based on described raw image data, determine the color motif of the image of catching.This color motif indicates caught image and presents warm tones or cool tone or indicate the main color in caught image, etc.
When utilizing image unit to take, if light is partially dark, or shooting backlight, cause having deviation between the color of captured image and the color of real-world object, there is colour cast phenomenon.Therefore,, when adjusting described raw image data, need to know the true colors of captured image.In this S120, the color motif of definite image can generally indicate this true colors.
For example, when raw image data, show it is caught image while being off-the-air picture, the color motif that can determine described image is warm tones, in follow-up processing, can increase the red component in image; When raw image data, show it is that caught image is on meadow time, the color motif that can determine described image is green, in follow-up processing, can increase green component.
As example, the described color motif based on the definite image of catching of described raw image data can comprise: determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature; Described environmental information is combined and determines described color motif with colouring information in image.Particularly, can utilize thermometer to obtain the temperature of shooting environmental, utilize microphone etc. to obtain the acoustic information in shooting environmental.If can determine it is indoor shooting environmental according to described environmental information and in conjunction with the raw image data of described image, the color motif that can determine caught image is warm tones.Certainly, iff just determining it is indoor shooting environmental based on described raw image data, can omit the described operation of determining the environmental information in described image.
In S130, obtain and described raw image data can be converted to the color conversion matrix of destination image data.Can take technology existing or that occur in the future to obtain this color conversion matrix, concrete obtain manner does not form the restriction to the embodiment of the present invention.For example, a color data storehouse can be set up in advance, by the target color lump output valve in the output valve of each color lump of captured image and described color data storehouse is carried out to comparing, just described color conversion matrix can be released.
With original RGB data instance, its color conversion matrix F is 3 * 3 matrixes typically, as shown in formula (1) below:
F = R r G r B r R g G g B g R b G b B b Formula (1)
Wherein, R r R g R b For red conversion coefficient, G r G g G b For green conversion coefficient, B r B g B b For blue conversion coefficient.The size of the coefficient of each color is corresponding with the brightness of respective color.The original RGB data of each image in image become the rgb image data of standard after the conversion through described formula (1).
The color conversion matrix of obtaining can be for described raw image data being carried out to the linear transformation matrix of linear transformation, also can being for described raw image data being carried out to the non-linear conversion matrix of non-linear conversion.In practice, can select as required.
In S140, based on described color motif, revise described color conversion matrix to match with described color motif.In order to eliminate colour cast, can revise the color conversion matrix of obtaining by the color motif based on definite in S120 in S130, so that the color of image more approaches the true colors of reference object.
As example, describedly based on described color motif, revise described color conversion matrix to match and can comprise with described color motif: based on described color motif, determine tone color corresponding with this color motif in described color conversion matrix; Conversion coefficient based in color conversion matrix described in tone color correct is to match with described color motif.
Take the above-mentioned color conversion matrix for rgb space as example, when described color motif is warm tones, can determine that tone color corresponding with this color motif in described color conversion matrix is red, increase in described color conversion matrix for red conversion coefficient; When described color motif is green, can determine that tone color corresponding with this color motif in described color conversion matrix is green, increase in color conversion matrix for green conversion coefficient; When described color motif is purple, can determine that tone color corresponding with this color motif in described color conversion matrix is red and blue, increase in described color conversion matrix for red and blue conversion coefficient; When described color motif is white, may determine that tone color corresponding with this color motif in described color conversion matrix is red, green and blue, increase in described color conversion matrix for red, green and blue conversion coefficient, i.e. all conversion coefficients; When described color motif is black, may determine that tone color corresponding with this color motif in described color conversion matrix is red, green and blue, reduce in described color conversion matrix for red, green and blue conversion coefficient.That is to say, the conversion coefficient in the described color conversion matrix of described correction can comprise can be used in red conversion coefficient described in increasing or reducing, for green conversion coefficient with at least one of blue conversion coefficient.
In addition, the conversion coefficient based in color conversion matrix described in tone color correct with the process matching with described color motif in, the tone color that will revise for each, can revise its each conversion coefficient to match with described color motif with equal proportion.This is useful especially when described raw image data being carried out to the linear transformation matrix of linear transformation in obtained color conversion matrix because its make the side-play amount of color and its brightness proportional.For example, conversion coefficient Rr, Rg, Rb for red can be multiplied by identical coefficient 1.05,1.08 etc.
The correction of described color conversion matrix is described, to disclose more fully embodiments of the invention below in conjunction with Fig. 2.Fig. 2 the has been indicative icon flow chart of the operation of the correction color conversion matrix in the image processing method of example embodiment according to the present invention.
As shown in Figure 2, described based on described color motif revise described color conversion matrix with described color motif match (S140) can comprise: based on described color motif, determine tone color (S141) corresponding with this color motif in described color conversion matrix; Determine whether the conversion coefficient corresponding with described tone color meets predetermined condition (S142); When the conversion coefficient corresponding with described tone color meets predetermined condition (being in S142), revise the conversion coefficient except the conversion coefficient corresponding with described tone color in described color conversion matrix, with described color motif match (step 143); When the conversion coefficient corresponding with described tone color do not meet predetermined condition (in S142 no), revise the conversion coefficient corresponding with described tone color in described color conversion matrix, to match with described color motif.That is to say, above-mentioned based on described color motif, revise described color conversion matrix with the operation matching with described color motif in, can comprise described S142 and S143 or comprise described S142 and S144.
Predetermined condition in S142 can be for example that for example, conversion coefficient for certain color (red) has reached maximum.When having reached maximum, the conversion coefficient for red (met described predetermined condition), can not continue increases for red conversion coefficient, S143 can reduce for green conversion coefficient and for blue conversion coefficient at least one (, conversion coefficient in described color conversion matrix except the conversion coefficient corresponding with described redness), to reduce red occupied ratio.When the conversion coefficient for red has reached maximum, (do not meet described predetermined condition), in S144, can increase for red conversion coefficient.In addition, the predetermined condition in S142 can be also that conversion coefficient for certain color has reached default upper limit threshold or lower threshold etc.
While revising in S143 or S144, the tone color that will revise for each, also can revise its each conversion coefficient to match with described color motif with equal proportion.This is useful especially when described raw image data being carried out to the linear transformation matrix of linear transformation in obtained color conversion matrix equally.
In S150, utilize revised color conversion matrix to change described raw image data, and obtain the destination image data that more approaches true colors.With raw image data, be original RGB data instance, described original RGB data can be multiplied by the rgb image data that color conversion matrix in revised rgb space obtains standard.When raw image data is original cmyk data, described original cmyk data can be multiplied by the CMYK view data that color conversion matrix in revised CMYK space obtains standard.In addition, utilize revised color conversion matrix conversion raw image data and after obtaining destination image data, if needed, can also carry out space matrix conversion to this destination image data, thereby destination image data is converted to another image space from existing image space, thereby obtain the view data in this another image space, to show or to print on display in printer.Such as the rgb image data of standard being converted to YCbCr view data, YUV view data or XYZ view data etc.
In the technical scheme of the above-mentioned image processing method of the embodiment of the present invention, by determining the color motif of the image of catching and revising color conversion matrix based on described color motif, thereby can effectively improve the colour cast phenomenon in shooting picture.
Fig. 3 the has been indicative icon block diagram of the image processing apparatus 300 of example embodiment according to the present invention.The electronic equipment that this image processing apparatus 300 is applied to is such as being mobile phone, personal digital assistant, computer etc., and the image unit wherein having such as camera is caught image.This image processing method 100, for the image of catching by described image unit is processed, with the aberration in removal of images, thereby obtains the image that its color more approaches the true colors of subject.This image processing apparatus 300 can be included in described electronic equipment and as its part, or is connected to described electronic equipment.
This image processing apparatus 300 can comprise: acquiring unit 310, for utilizing image unit to catch image, and obtains the raw image data corresponding with this image, and obtains and described raw image data can be converted to the color conversion matrix of destination image data; Keynote determining unit 320, for determining the color motif of caught image based on described raw image data; Amending unit 330, for revising described color conversion matrix to match with described color motif based on described color motif; Converting unit 340, for utilizing revised color conversion matrix to change described raw image data.
Described acquiring unit 310 can be used for realizing S110 and the S130 describing in conjunction with Fig. 1.
When the image unit in electronic equipment is activated, image unit becomes light electric charge and converts digital signal to, thereby described acquiring unit 310 can obtain the raw image data corresponding with the image of subject.For example, at described image unit, be charge coupled device (CCD, charge coupled deice) in situation, light enters the camera lens in charge coupled device, then experience RGB primary colors color separation (being colour filter), light source after colour filter is converted to electronic signal by sensitization, i.e. raw image data.As previously mentioned, this raw image data can be original RGB data, original cmyk data etc.
Described acquiring unit 310 can also obtain and described raw image data can be converted to the color conversion matrix of destination image data.This color conversion matrix can take technology existing or that occur in the future to calculate, and sends described acquiring unit 310 to, and concrete obtain manner does not form the restriction to the embodiment of the present invention.For example, a color data storehouse can be set up in advance, by the target color lump output valve in the output valve of each color lump of captured image and described color data storehouse is carried out to comparing, just described color conversion matrix can be released.Color conversion matrix in rgb space 3 * 3 matrixes typically as shown in formula (1) above.The size of the coefficient of each color is corresponding with the brightness of respective color.The original RGB data of each image in image become the rgb image data of standard after the conversion through described formula (1).The color conversion matrix of obtaining can be for described raw image data being carried out to the linear transformation matrix of linear transformation, also can being for described raw image data being carried out to the non-linear conversion matrix of non-linear conversion.In practice, can select as required.
In existing technology, described raw image data is multiplied by color conversion matrix, thereby raw image data is converted to target image space, to show on display or to print in printer.With described raw image data correspondingly, described destination image data is such as being rgb image data, CMYK view data etc.In the technical scheme of the embodiment of the present invention, to obtain by keynote determining unit 320 as described below and amending unit 330 color conversion matrix of correction, and in converting unit 340, utilize revised color conversion matrix to change described raw image data.
Described keynote determining unit 320 is determined the color motif of the image of catching based on described raw image data.This color motif indicates caught image and presents warm tones or cool tone or indicate the main color in caught image, etc.When adjusting described raw image data, need to know the true colors of captured image.The determined color motif of described keynote determining unit 320 can generally indicate this true colors.
For example, when raw image data, show it is caught image while being off-the-air picture, the color motif that can determine described image is warm tones, in follow-up processing, can increase the red component in image; When raw image data, show it is that caught image is on meadow time, the color motif that can determine described image is green, in follow-up processing, can increase green component.
As example, described keynote determining unit can be determined the color motif of the image of catching as follows: determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature; Described environmental information is combined and determines described color motif with colouring information in image.Particularly, can utilize thermometer to obtain the temperature of shooting environmental, utilize microphone etc. to obtain the acoustic information in shooting environmental.If can determine it is indoor shooting environmental according to described environmental information and in conjunction with the raw image data of described image, the color motif that can determine caught image is warm tones.Certainly, iff just determining it is indoor shooting environmental based on described raw image data, can omit the described operation of determining the environmental information in described image.
Described amending unit 330 can be revised described color conversion matrix to match with described color motif based on described color motif.Take the above-mentioned color conversion matrix for rgb space as example, when described color motif is warm tones, can determine that tone color corresponding with this color motif in described color conversion matrix is red, increase in described color conversion matrix for red conversion coefficient; When described color motif is purple, can determine that tone color corresponding with this color motif in described color conversion matrix is red and blue, increase in described color conversion matrix for red and blue conversion coefficient; When described color motif is black, may determine that tone color corresponding with this color motif in described color conversion matrix is red, green and blue, reduce in described color conversion matrix for red, green and blue conversion coefficient.That is to say, described in described amending unit 330 can increase or reduce, can be used in red conversion coefficient, for green conversion coefficient with at least one of blue conversion coefficient.
In addition, the tone color that will revise for each, described amending unit 330 can be revised its each conversion coefficient to match with described color motif with equal proportion.This is useful especially when described raw image data being carried out to the linear transformation matrix of linear transformation in obtained color conversion matrix because its make the side-play amount of color and its brightness proportional.For example, described amending unit 330 can be by the conversion coefficient R for red r, R g, R bbe multiplied by identical coefficient 0.98,1.05,1.08 etc.
Below in conjunction with Fig. 4, described amending unit 330 is described, to disclose more fully embodiments of the invention.Fig. 4 the has been indicative icon block diagram of the correcting part in the image processing apparatus of example embodiment 330 according to the present invention.
As shown in Figure 4, described amending unit 330 can comprise: color corresponding component 331, for the tone color of determining that based on described color motif described color conversion matrix is corresponding with this color motif; Determining means 332, for determining whether the conversion coefficient of described tone color meets predetermined condition; Correcting part 333, when described determining means 332 determines that the conversion coefficient of described tone color meets predetermined condition, revise in described color conversion matrix the conversion coefficient except the conversion coefficient of described tone color to match with described color motif, when described determining means 332 determines that the conversion coefficient of described tone color does not meet predetermined condition, the conversion coefficient for described tone color in the described color conversion matrix of described correcting part 333 correction is to match with described color motif.
Described predetermined condition can be for example that for example, conversion coefficient for certain color (red) has reached maximum.When having reached maximum, the conversion coefficient for red (met described predetermined condition), can not continue increases for red conversion coefficient, correcting part 333 can reduce for green conversion coefficient and for blue conversion coefficient at least one (, conversion coefficient in described color conversion matrix except the conversion coefficient corresponding with described redness), to reduce red occupied ratio.When the conversion coefficient for red has reached maximum, (do not meet described predetermined condition), correcting part 333 can increase for red conversion coefficient.In addition, described predetermined condition can be also that conversion coefficient for certain color has reached default upper limit threshold or lower threshold etc.
Described determining means 333 can be omitted, thereby in color corresponding component 332 is determined described color conversion matrix based on described color motif after the tone color corresponding with this color motif, the conversion coefficient that described correcting part 333 can be based in color conversion matrix described in tone color correct is to match with described color motif.
Described converting unit 340 utilizes revised color conversion matrix to change described raw image data, and obtains the destination image data that more approaches true colors.With raw image data, be original RGB data instance, described original RGB data can be multiplied by the rgb image data that color conversion matrix in revised rgb space obtains standard.In addition, utilizing revised color conversion matrix conversion raw image data after obtaining destination image data, if needed, can also carry out space matrix conversion to this destination image data, thereby destination image data is converted to another image space from existing image space, thereby obtains the view data in this another image space.Such as the rgb image data of standard being converted to YCbCr view data, YUV view data or XYZ view data etc.
In the technical scheme of the above-mentioned image processing apparatus of the embodiment of the present invention, by determining the color motif of the image of catching and revising color conversion matrix based on described color motif, thereby can effectively improve the colour cast phenomenon in shooting picture.
Above-described image processing apparatus can be applicable to any electronic equipment, and the electronic equipment that correspondingly comprises this adjusting device is also in the open scope in the embodiment of the present invention.Fig. 5 the has been indicative icon block diagram of the electronic equipment 500 of example embodiment according to the present invention.As shown in Figure 5, this electronic equipment 500 can comprise: image unit 510; Image processing apparatus 520, it can be the image processing apparatus in conjunction with Fig. 3 and Fig. 4 description.
In the technical scheme of the electronic equipment of the embodiment of the present invention, by determining the color motif of the image of catching and revising color conversion matrix based on described color motif, can effectively improve the colour cast phenomenon in shooting picture equally.
In addition, according to the present invention, the image processing apparatus of each embodiment can comprise: memory, for program code stored; Processor, for carrying out described program code to realize the image processing apparatus method in conjunction with Fig. 1 and Fig. 2 description.
Memory can comprise at least one in read-only memory and random access memory, and provides instruction and data to processor.A part for memory can also comprise non-volatile row random access memory (NVRAM).
Processor can be general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC) (ASIC), ready-made programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic device, discrete hardware components.General processor can be the processor of microprocessor or any routine etc.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the device of foregoing description, unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
Those of ordinary skills can recognize, unit and the step of each example of describing in conjunction with embodiment disclosed herein, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can specifically should be used for realizing described function with distinct methods to each, but this realization should not thought and exceeds scope of the present invention.
In the several embodiment that provide in the application, should be understood that disclosed method and apparatus can be realized by another way.For example, apparatus embodiments described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.

Claims (15)

1. an image processing method, is applied to comprise the electronic equipment of image unit, and this image processing method comprises:
Utilize image unit to catch image, and obtain the raw image data corresponding with this image;
Based on described raw image data, determine the color motif of the image of catching;
Obtain and described raw image data can be converted to the color conversion matrix of destination image data;
Based on described color motif, revise described color conversion matrix to match with described color motif;
Utilize revised color conversion matrix to change described raw image data.
2. according to the image processing method of claim 1, wherein, the described color motif based on the definite image of catching of described raw image data comprises:
Determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature;
Described environmental information is combined and determines described color motif with colouring information in image.
3. according to the image processing method of claim 1, wherein, describedly based on described color motif, revise described color conversion matrix to match and to comprise with described color motif:
Based on described color motif, determine tone color corresponding with this color motif in described color conversion matrix;
Conversion coefficient based in color conversion matrix described in tone color correct is to match with described color motif.
4. according to the image processing method of claim 3, wherein, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and to comprise with described color motif:
Determine whether the conversion coefficient corresponding with described tone color meets predetermined condition;
When the conversion coefficient corresponding with described tone color meets predetermined condition, revise the conversion coefficient except the conversion coefficient corresponding with described tone color in described color conversion matrix, to match with described color motif.
5. according to the image processing method of claim 4, wherein, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and to comprise with described color motif:
When the conversion coefficient corresponding with described tone color do not meet predetermined condition, revise the conversion coefficient corresponding with described tone color in described color conversion matrix, to match with described color motif.
6. according to the image processing method of claim 3, wherein, the described conversion coefficient based in color conversion matrix described in tone color correct is to match and to comprise with described color motif:
The tone color that will revise for each, revises its each conversion coefficient to match with described color motif with equal proportion.
7. according to the image processing method of claim 1, wherein, the color conversion matrix of obtaining is for described raw image data being carried out to the linear transformation matrix of linear transformation.
8. an image processing apparatus, is applied to comprise the electronic equipment of image unit, and this image processing apparatus comprises:
Acquiring unit, for utilizing image unit to catch image, and obtains the raw image data corresponding with this image, and obtains and described raw image data can be converted to the color conversion matrix of destination image data;
Keynote determining unit, for determining the color motif of caught image based on described raw image data;
Amending unit, for revising described color conversion matrix to match with described color motif based on described color motif;
Converting unit, for utilizing revised color conversion matrix to change described raw image data.
9. image processing apparatus according to Claim 8, wherein, described keynote determining unit is determined the color motif of the image of catching as follows:
Determine the environmental information in described image, this environmental information comprises the sound in described image, at least one in temperature;
Described environmental information is combined and determines described color motif with colouring information in image.
10. image processing apparatus according to Claim 8, wherein, described amending unit comprises:
Color corresponding component, for the tone color of determining that based on described color motif described color conversion matrix is corresponding with this color motif;
Correcting part, for the conversion coefficient based on color conversion matrix described in tone color correct to match with described color motif.
11. according to the image processing apparatus of claim 10, and wherein, described amending unit also comprises: determining means, and for determining whether the conversion coefficient of described tone color meets predetermined condition,
When described determining means determines that the conversion coefficient of described tone color meets predetermined condition, described in described correcting part correction in color conversion matrix the conversion coefficient except the conversion coefficient of described tone color to match with described color motif.
12. according to the image processing apparatus of claim 11, wherein, when described determining means determines that the conversion coefficient of described tone color does not meet predetermined condition, the conversion coefficient for described tone color described in described correcting part correction in color conversion matrix is to match with described color motif.
13. according to the image processing apparatus of claim 10, wherein, described correcting part is the conversion coefficient based in color conversion matrix described in tone color correct as follows: the tone color that will revise for each, with equal proportion, revise its each conversion coefficient to match with described color motif.
14. image processing apparatus according to Claim 8, wherein, the color conversion matrix that described acquiring unit obtains is for described raw image data being carried out to the linear transformation matrix of linear transformation.
15. 1 kinds of electronic equipments, comprising:
Image unit;
Image processing apparatus as described in any one in claim 8-14.
CN201310717185.3A 2013-12-23 2013-12-23 Image processing method, image processing apparatus and electronic equipment Active CN103647958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310717185.3A CN103647958B (en) 2013-12-23 2013-12-23 Image processing method, image processing apparatus and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310717185.3A CN103647958B (en) 2013-12-23 2013-12-23 Image processing method, image processing apparatus and electronic equipment

Publications (2)

Publication Number Publication Date
CN103647958A true CN103647958A (en) 2014-03-19
CN103647958B CN103647958B (en) 2016-07-06

Family

ID=50253102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310717185.3A Active CN103647958B (en) 2013-12-23 2013-12-23 Image processing method, image processing apparatus and electronic equipment

Country Status (1)

Country Link
CN (1) CN103647958B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018072270A1 (en) * 2016-10-17 2018-04-26 华为技术有限公司 Method and device for enhancing image display
CN108596828A (en) * 2018-04-18 2018-09-28 网易(杭州)网络有限公司 Image floodlight processing method and device, electronic equipment, storage medium
WO2019023968A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image color adjustment system and color adjustment method for smart terminal
CN112217989A (en) * 2020-09-25 2021-01-12 北京小米移动软件有限公司 Image display method and device
CN112752023A (en) * 2020-12-29 2021-05-04 深圳市天视通视觉有限公司 Image adjusting method and device, electronic equipment and storage medium
CN113096046A (en) * 2021-04-15 2021-07-09 北京有竹居网络技术有限公司 Image processing method and device
CN113706415A (en) * 2021-08-27 2021-11-26 北京瑞莱智慧科技有限公司 Training data generation method, countermeasure sample generation method, image color correction method and device
CN114512094A (en) * 2020-11-16 2022-05-17 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system
CN101463657A (en) * 2007-12-17 2009-06-24 贵阳铝镁设计研究院 Manufacturing method of industrial impounding reservoir

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101463657A (en) * 2007-12-17 2009-06-24 贵阳铝镁设计研究院 Manufacturing method of industrial impounding reservoir
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018072270A1 (en) * 2016-10-17 2018-04-26 华为技术有限公司 Method and device for enhancing image display
CN108701351B (en) * 2016-10-17 2022-03-29 华为技术有限公司 Image display enhancement method and device
CN108701351A (en) * 2016-10-17 2018-10-23 华为技术有限公司 A kind of image shows Enhancement Method and device
WO2019023968A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image color adjustment system and color adjustment method for smart terminal
CN108596828B (en) * 2018-04-18 2022-03-18 网易(杭州)网络有限公司 Image floodlight processing method and device, electronic equipment and storage medium
CN108596828A (en) * 2018-04-18 2018-09-28 网易(杭州)网络有限公司 Image floodlight processing method and device, electronic equipment, storage medium
CN112217989A (en) * 2020-09-25 2021-01-12 北京小米移动软件有限公司 Image display method and device
CN114512094A (en) * 2020-11-16 2022-05-17 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium
CN114512094B (en) * 2020-11-16 2023-03-24 华为技术有限公司 Screen color adjusting method, device, terminal and computer readable storage medium
CN112752023A (en) * 2020-12-29 2021-05-04 深圳市天视通视觉有限公司 Image adjusting method and device, electronic equipment and storage medium
CN112752023B (en) * 2020-12-29 2022-07-15 深圳市天视通视觉有限公司 Image adjusting method and device, electronic equipment and storage medium
CN113096046A (en) * 2021-04-15 2021-07-09 北京有竹居网络技术有限公司 Image processing method and device
CN113706415A (en) * 2021-08-27 2021-11-26 北京瑞莱智慧科技有限公司 Training data generation method, countermeasure sample generation method, image color correction method and device

Also Published As

Publication number Publication date
CN103647958B (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN103647958B (en) Image processing method, image processing apparatus and electronic equipment
US9300935B2 (en) Image processing apparatus capable of reducing differences of color characteristics between interchangeable lenses using white balance adjustment and control method thereof
US20140078247A1 (en) Image adjuster and image adjusting method and program
US7557837B2 (en) Image pickup apparatus and control method thereof
CN107197225A (en) Color digital camera white balance correcting based on chromatic adaptation model
JP6508890B2 (en) Image processing apparatus, control method therefor, and control program
CN103227928B (en) White balance adjusting method and device
CN101019416A (en) Imaging apparatus
CN104869380A (en) Image processing apparatus and image processing method
US8810681B2 (en) Image processing apparatus and image processing method
WO2019170007A1 (en) Image color adjustment method and device
JP2016006954A (en) Color correction parameter calculation method, color correction parameter calculation device and image output system
CN113676639B (en) Image processing method, processing device, electronic apparatus, and medium
CN101212693A (en) White balancing method and image adjusting device
US20160065925A1 (en) Color-mixture-ratio calculation device and method, and imaging device
JP7156302B2 (en) Image processing device, image processing method, program
US8687091B2 (en) Image capturing systems and methods utilizing customizable look management
US10096128B2 (en) Change degree deriving device, change degree deriving system, and non-transitory computer readable medium
US11805326B2 (en) Image processing apparatus, control method thereof, and storage medium
JP2007311895A (en) Imaging apparatus, image processor, image processing method and image processing program
JP6265625B2 (en) Image processing apparatus and image processing method
CN113271450B (en) White balance adjusting method, image processing device and image processing system
JP5675391B2 (en) Image processing device
US11716451B2 (en) Color correction method and color correction system
JP2005210484A (en) Imaging apparatus, color chart, and method and system for adjusting image

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant