CN107483909A - White balancing treatment method and device - Google Patents

White balancing treatment method and device Download PDF

Info

Publication number
CN107483909A
CN107483909A CN201710938146.4A CN201710938146A CN107483909A CN 107483909 A CN107483909 A CN 107483909A CN 201710938146 A CN201710938146 A CN 201710938146A CN 107483909 A CN107483909 A CN 107483909A
Authority
CN
China
Prior art keywords
white balance
mrow
image information
values
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710938146.4A
Other languages
Chinese (zh)
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.)
Luster LightTech Co Ltd
Original Assignee
Luster LightTech Co 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 Luster LightTech Co Ltd filed Critical Luster LightTech Co Ltd
Priority to CN201710938146.4A priority Critical patent/CN107483909A/en
Publication of CN107483909A publication Critical patent/CN107483909A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The application specific embodiment provides a kind of white balancing treatment method, and methods described includes obtaining demarcation area information, and the demarcation area information is the coordinate value of white portion in image information, wherein, system includes the storage demarcation area information;According to the coordinate value of demarcation area information, the white balance gains value of described image information is determined, the white balance gains value of described image information is according to the determination of the rgb value of white portion;By the white balance gains value of described image information, white balance processing is carried out to image information.The application specific embodiment demarcates region by determining in advance, and the numerical value in the demarcation region is stored, and so as to simplify algorithm principle, improves the precision of white balance algorithm effect, saves resource consumption.

Description

White balancing treatment method and device
Technical field
The application is related to technical field of image processing, more particularly to a kind of white balancing treatment method and device.
Background technology
Different light sources has different spectral components and distribution, and colour temperature is referred to as in colorimetry.One white object, Can be partially red under the light irradiation of low colour temperature, can be partially blue under the light irradiation of high color temperature.By caused by different-colour on image Aberration be corrected, make the white portion of image that really white, referred to as white balance be presented.
In the prior art, it is necessary to be carried out using white balance algorithm to the image information of collection white after image information is gathered Balance Treatment.And the cardinal principle of AWB algorithm is to be selected by white portion selection algorithm from image information at present Extracting waste region.The white balance gains value of RGB triple channels is calculated further according to the white portion of selection.Pass through the white of RGB triple channels Balancing gain value carries out white balance processing to the image information of collection.
But AWB algorithm mainly determines the white in image information (in or by various methods at present Ash) region.Because white portion is determined by algorithm, if white portion is chosen inaccurate, can cause final white flat The effect that weighs is inaccurate, influences image effect.
The content of the invention
The application specific embodiment provides a kind of white balancing treatment method and device, simplifies algorithm principle, improves white The precision of balanced algorithm effect, saves resource consumption.
In a first aspect, the application specific embodiment provides a kind of white balancing treatment method, methods described, which includes obtaining, demarcates Area information, the demarcation area information are the coordinate values of white portion in image information, wherein, system is included described in storage Demarcate area information;According to the coordinate value of demarcation area information, the white balance gains value of described image information, described image are determined The white balance gains value of information determines according to the rgb value of white portion;By the white balance gains value of described image information, to figure As information carries out white balance processing.
In a possible design, the coordinate value according to demarcation area information, the white of described image information is determined Balancing gain value, including:According to the coordinate value of demarcation area information, white balance gains computer capacity is determined, is wrapped in the system Include the white balance gains computer capacity pre-set;According to the rgb value of each pixel in white balance gains computer capacity, calculate RGB triple channel white balance gains values.
In a possible design, the rgb value according to each pixel in white balance gains computer capacity, calculate RGB triple channel white balance gains values, including:
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance The sum of the G values of each pixel in gain computer capacity, B_sum represent the B of each pixel in white balance gains computer capacity The sum of value, the W represent that white balance gains computer capacity (i, j) represents the coordinate value in white balance gains computer capacity;
G_Gain=1;
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents image information on G passages Yield value;B_Gain represents yield value of the image information in channel B.
In a possible design, the white balance gains value by described image information, image information is carried out White balance processing, including:By R passage white balance gains values, it is multiplied respectively with the R values of each pixel, obtains white balance processing The R values of each pixel in image information afterwards;By G passage white balance gains values, respectively with the G value phases of each pixel Multiply, obtain the G values of each pixel in the image information after white balance processing;By channel B white balance gains value, respectively with often The B values of individual pixel are multiplied, and obtain the B values of each pixel in the image information after white balance processing;At white balance R values, G values and the B values of image information after reason determine the image information after white balance processing.
In a possible design, described image information includes main image region and frame region, the demarcation region Coordinate value be located at the frame region of image information.
Second aspect, the application specific embodiment provide a kind of white balance processing equipment, including:Acquiring unit, gain meter Calculate unit and white balance processing unit;The acquiring unit, area information is demarcated for obtaining, the demarcation area information is figure As the coordinate value of white portion in information, wherein, system includes the storage demarcation area information;Gain calculating unit, use In the coordinate value according to demarcation area information, the white balance gains value of described image information is determined, the white of described image information is put down The yield value that weighs determines according to the rgb value of white portion;White balance processing unit, for being increased by the white balance of described image information Benefit value, white balance processing is carried out to image information.
In a possible design, gain calculating unit is used for the coordinate value according to demarcation area information, it is determined that described The white balance gains value of image information, including:According to the coordinate value of demarcation area information, white balance gains computer capacity is determined, The system includes the white balance gains computer capacity pre-set;According to each pixel in white balance gains computer capacity Rgb value, calculate RGB triple channel white balance gains values.
In a possible design, gain calculating unit is according to each pixel in white balance gains computer capacity Rgb value, RGB triple channel white balance gains values are calculated, including:
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance The sum of the G values of each pixel in gain computer capacity, B_sum represent the B of each pixel in white balance gains computer capacity The sum of value, the W represent that white balance gains computer capacity (i, j) represents the coordinate value in white balance gains computer capacity;
G_Gain=1;
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents image information on G passages Yield value;B_Gain represents yield value of the image information in channel B.
In a possible design, white balance processing unit is according to the white balance gains value of described image information, to figure As information progress white balance processing, including:By R passage white balance gains values, it is multiplied, obtains with the R values of each pixel respectively The R values of each pixel in image information after white balance processing;By G passage white balance gains values, respectively with each pixel The G values of point are multiplied, and obtain the G values of each pixel in the image information after white balance processing;By channel B white balance gains Value, is multiplied with the B values of each pixel respectively, obtains the B values of each pixel in the image information after white balance processing;Root R values, G values and the B values of image information after being handled according to white balance determine the image information after white balance processing.
In a possible design, described image information includes main image region and frame region, the demarcation region Coordinate value be located at the frame region of image information.
The application specific embodiment provides a kind of white balancing treatment method and device, by determining to demarcate region in advance, and The numerical value in the demarcation region is stored, so as to simplify algorithm principle, the precision of white balance algorithm effect is improved, saves Resource consumption is saved.
Brief description of the drawings
Fig. 1 is a kind of white balancing treatment method schematic flow sheet that the application specific embodiment provides;
Fig. 2 is the white balance gains computer capacity schematic diagram that the application specific embodiment provides;
Fig. 3 is a kind of white balance processing equipment structural representation that the application specific embodiment provides.
Embodiment
To make the purpose, technical scheme and advantage of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described corresponding accompanying drawing.Obviously, described embodiment is only the application one Section Example, rather than whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Go out under the premise of creative work the every other embodiment obtained, belong to the scope of the application protection.
Below in conjunction with accompanying drawing, the technical scheme that each embodiment of the application provides is described in detail.
Fig. 1 is a kind of white balancing treatment method schematic flow sheet that the application specific embodiment provides, as shown in figure 1, institute Method is stated applied in industrial detection.Methods described specifically includes:
S101, demarcation area information being obtained, the demarcation area information is the coordinate value of white portion in image information, its In, system includes the storage demarcation area information.
Method in the application specific embodiment is applied in print system.The print system is used for the printing of image. It is corresponding with the print system, in addition to detecting system, numeral letter of the detecting system for the image according to acquisition Breath, is detected to the image of printing.
In said system, because the digital information of the image acquired in detecting system is obtained by camera installation, from And the digital information of image for causing the image of printing to be obtained with camera installation is not quite identical.Therefore in the detection system of the application Unite also include between print system should embodiments herein method be used to carrying out the image information of industrial detection it is white EQUILIBRIUM CALCULATION FOR PROCESS.Image information is set to be reached unanimity as far as possible with the image printed.
White balance in the embodiment of the present application, which calculates, to be included, and is digitized processing to the image of industry printing, is printed The image information of image after brush.In the image printed by same batch, described image is completely the same.Therefore, the system exists Before carrying out white balance calculating to the image of the annotation, in addition to determine according to described image information the demarcation area of described image information Domain.The demarcation region is coordinate value of the white portion in image information in image information.The system also includes determining The demarcation region of described image information stored.
In another embodiment of the application, described image information includes main image region and frame region.The mark Determine the frame region that region is described image information.
In the above two embodiments, can be directly by manually selecting demarcation region and being stored demarcation region. The white portion of image information can also be determined by algorithm or is determined by algorithm any in the frame region of image information It is some demarcation region.
In the running of the white balance computational methods, the system obtains demarcation area information.The demarcation area Domain information is the coordinate value of white portion in image information.
S102, according to white portion information, determine the white balance gains value of described image information, described image information it is white Balancing gain value determines according to the rgb value of white portion.
In the specific embodiment of the application, the scope that storage calculates white balance gains is also included in the system.For example, It is determined that after demarcation area information, according to the rgb value of multiple pixels around demarcation area information, calculate and each lead in RGB threeways The white balance gains value in road.In the specific embodiment of the application, according to the RGB of multiple pixels in demarcation area information cycle Value, the white balance gains of RGB threeways are calculated, can be counted according to any number of pixel around demarcation area information Calculate.
Below, the white balance gains value that RGB triple channels are calculated with 9 pixels illustrates.Fig. 2 is that the application is specifically real The white balance gains computer capacity schematic diagram of example offer is provided.As shown in Fig. 2 shown white balance gains computer capacity can be Fig. 2A Into Fig. 2 E any one.Can certainly be other arbitrary forms outside the example shown in Fig. 2.
In the specific embodiment of the application, the white balance gains that RGB triple channels are calculated by 9 pixels are only this Shen A kind of distance please, and cannot be used for the restriction to the application.In the specific embodiment of the application, any pixel can be used The quantity of point calculates the white balance gains of RGB triple channels.
According to the rgb value of each pixel in white balance gains computer capacity, RGB triple channel white balance gains values are calculated, Including:
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance The sum of the G values of each pixel in gain computer capacity, B_sum represent the B of each pixel in white balance gains computer capacity The sum of value, the W represent that white balance gains computer capacity (i, j) represents the coordinate value in white balance gains computer capacity;
G_Gain=1;
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents image information on G passages Yield value;B_Gain represents yield value of the image information in channel B.
Below, by the GRB of 9 points described in Fig. 2 to specifically being calculated triple channel white balance gains.Its In, the R values of each point are respectively:A1, a2, a3, a4, a5, a6, a7, a8 and a9;The G values of each point are respectively:b1、b2、b3、 B4, b5, b6, b7, b8 and b9;The B values of each point are respectively:C1, c2, c3, c4, c5, c6, c7, c8 and c9.
Then,
R_sum=a1+a2+a3+a4+a5+a6+a7+a8+a9;
G_sum=b1+b2+b3+b4+b5+b6+b7+b8+b9;
B_sum=c1+c2+c3+c4+c5+c6+c7+c8+c9;
Then:
G_Gain=1;
S103, the white balance gains value by described image information, white balance processing is carried out to image information.
By R passage white balance gains values, the R values with each pixel in image information are multiplied respectively, obtain at white balance The R values of each pixel in image information after reason;By G passage white balance gains values, respectively with each picture in image information The G values of vegetarian refreshments are multiplied, and obtain the G values of each pixel in the image information after white balance processing;By channel B white balance gains Value, the B values with each pixel in image information are multiplied respectively, obtain each pixel in the image information after white balance processing The B values of point.R values, G values and the B values of image information after being handled according to white balance determine the image information after white balance processing.
R_out=R_in*R_Gain;
G_out=G_in*R_Gain;
B_out=B_in*R_Gain;
Wherein, R_in is the value of white balance before processing single pixel point R passages, and G_in is white balance before processing single pixel The value of point R passages;B_in is the value of white balance before processing single pixel point channel B.R_out is single pixel after white balance processing The value of point R passages;G_out is the value of single pixel point G passages after white balance processing;B_out is single picture after white balance processing The value of vegetarian refreshments channel B.The pixel numerical value of the image after white balance processing is made up of R_out, G_out and B_out.
Fig. 3 is a kind of white balance processing equipment structural representation that the application specific embodiment provides.As shown in figure 3, institute Stating white balance processing equipment includes acquiring unit 301, gain calculating unit 302 and white balance processing unit 303
The acquiring unit 301, area information is demarcated for obtaining, the demarcation area information is white in image information The coordinate value in region, wherein, system includes the storage demarcation area information.
Gain calculating unit 302, for the coordinate value according to demarcation area information, determine the white balance of described image information Yield value, the white balance gains value of described image information determine according to the rgb value of white portion.
White balance processing unit 303, for the white balance gains value by described image information, image information is carried out white Balance Treatment.
In a possible design, gain calculating unit 302 is used for the coordinate value according to demarcation area information, determines institute The white balance gains value of image information is stated, including:According to the coordinate value of demarcation area information, determine that white balance gains calculate model Enclose, the system includes the white balance gains computer capacity pre-set;According to each picture in white balance gains computer capacity The rgb value of vegetarian refreshments, calculate RGB triple channel white balance gains values.
In a possible design, gain calculating unit 302 is according to each pixel in white balance gains computer capacity Rgb value, calculate RGB triple channel white balance gains values, including:
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance The sum of the G values of each pixel in gain computer capacity, B_sum represent the B of each pixel in white balance gains computer capacity The sum of value, the W represent that white balance gains computer capacity (i, j) represents the coordinate value in white balance gains computer capacity;
G_Gain=1;
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents image information on G passages Yield value;B_Gain represents yield value of the image information in channel B.
In a possible design, white balance processing unit 303 is right according to the white balance gains value of described image information Image information carries out white balance processing, including:By R passage white balance gains values, it is multiplied, obtains with the R values of each pixel respectively The R values of each pixel in image information after to white balance processing;By G passage white balance gains values, respectively with each picture The G values of vegetarian refreshments are multiplied, and obtain the G values of each pixel in the image information after white balance processing;By channel B white balance gains Value, is multiplied with the B values of each pixel respectively, obtains the B values of each pixel in the image information after white balance processing;Root R values, G values and the B values of image information after being handled according to white balance determine the image information after white balance processing.
In a possible design, described image information includes main image region and frame region, the demarcation region Coordinate value be located at the frame region of image information.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
It should be only above embodiments herein, and be not limited to the application.Come for those skilled in the art Say, the application there can be various modifications and variations.All any modifications made within spirit herein and principle, equally replace Change, improve, should be included within the scope of claims hereof.

Claims (10)

1. a kind of white balancing treatment method, it is characterised in that methods described includes:
Demarcation area information is obtained, the demarcation area information is the coordinate value of white portion in image information, wherein, in system Including storing the demarcation area information;
According to the coordinate value of demarcation area information, determine the white balance gains value of described image information, described image information it is white Balancing gain value determines according to the rgb value of white portion;
By the white balance gains value of described image information, white balance processing is carried out to image information.
2. white balancing treatment method according to claim 1, it is characterised in that the coordinate according to demarcation area information Value, the white balance gains value of described image information is determined, including:
According to the coordinate value of demarcation area information, white balance gains computer capacity is determined, the system includes what is pre-set White balance gains computer capacity;
According to the rgb value of each pixel in white balance gains computer capacity, RGB triple channel white balance gains values are calculated.
3. white balancing treatment method according to claim 2, it is characterised in that described according to white balance gains computer capacity The rgb value of interior each pixel, calculates RGB triple channel white balance gains values, including:
<mrow> <mi>R</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>R</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
<mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>G</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
<mrow> <mi>B</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>B</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance gains The sum of the G values of each pixel in computer capacity, B_sum represent the B values of each pixel in white balance gains computer capacity With the coordinate value in W expression white balance gains computer capacities (i, j) the expression white balance gains computer capacity;
<mrow> <mi>R</mi> <mo>_</mo> <mi>G</mi> <mi>a</mi> <mi>i</mi> <mi>n</mi> <mo>=</mo> <mfrac> <mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> <mrow> <mi>R</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> </mfrac> <mo>;</mo> </mrow>
G_Gain=1;
<mrow> <mi>B</mi> <mo>_</mo> <mi>G</mi> <mi>a</mi> <mi>i</mi> <mi>n</mi> <mo>=</mo> <mfrac> <mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> <mrow> <mi>B</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> </mfrac> <mo>;</mo> </mrow>
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents increasing of the image information on G passages Benefit value;B_Gain represents yield value of the image information in channel B.
4. according to the white balancing treatment method described in claim any one of 1-3, it is characterised in that described to be believed by described image The white balance gains value of breath, white balance processing is carried out to image information, including:
By R passage white balance gains values, it is multiplied respectively with the R values of each pixel, obtains the image information after white balance processing In each pixel R values;
By G passage white balance gains values, it is multiplied respectively with the G values of each pixel, obtains the image information after white balance processing In each pixel G values;
By channel B white balance gains value, it is multiplied respectively with the B values of each pixel, obtains the image information after white balance processing In each pixel B values;
R values, G values and the B values of image information after being handled according to white balance determine the image information after white balance processing.
5. white balancing treatment method according to claim 1, it is characterised in that described image information includes main image region And frame region, the coordinate value in the demarcation region are located at the frame region of image information.
A kind of 6. white balance processing equipment, it is characterised in that including:
Acquiring unit, area information is demarcated for obtaining, the demarcation area information is the coordinate of white portion in image information Value, wherein, system includes the storage demarcation area information;
Gain calculating unit, for the coordinate value according to demarcation area information, the white balance gains value of described image information is determined, The white balance gains value of described image information determines according to the rgb value of white portion;
White balance processing unit, for the white balance gains value by described image information, image information is carried out at white balance Reason.
7. white balance processing equipment according to claim 6, it is characterised in that gain calculating unit is used for according to demarcation area The coordinate value of domain information, the white balance gains value of described image information is determined, including:
According to the coordinate value of demarcation area information, white balance gains computer capacity is determined, the system includes what is pre-set White balance gains computer capacity;
According to the rgb value of each pixel in white balance gains computer capacity, RGB triple channel white balance gains values are calculated.
8. the white balance processing equipment stated according to claim 7, it is characterised in that gain calculating unit is according to white balance gains meter The rgb value of each pixel in the range of calculation, RGB triple channel white balance gains values are calculated, including:
<mrow> <mi>R</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>R</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
<mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>G</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
<mrow> <mi>B</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> <mo>=</mo> <munder> <mo>&amp;Sigma;</mo> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> <mo>&amp;Element;</mo> <mi>w</mi> </mrow> </munder> <mi>B</mi> <mrow> <mo>(</mo> <mi>i</mi> <mo>,</mo> <mi>j</mi> <mo>)</mo> </mrow> <mo>;</mo> </mrow>
Wherein, R_sum represents the sum of the R values of each pixel in white balance gains computer capacity, and G_sum represents white balance gains The sum of the G values of each pixel in computer capacity, B_sum represent the B values of each pixel in white balance gains computer capacity With the coordinate value in W expression white balance gains computer capacities (i, j) the expression white balance gains computer capacity;
<mrow> <mi>R</mi> <mo>_</mo> <mi>G</mi> <mi>a</mi> <mi>i</mi> <mi>n</mi> <mo>=</mo> <mfrac> <mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> <mrow> <mi>R</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> </mfrac> <mo>;</mo> </mrow>
G_Gain=1;
<mrow> <mi>B</mi> <mo>_</mo> <mi>G</mi> <mi>a</mi> <mi>i</mi> <mi>n</mi> <mo>=</mo> <mfrac> <mrow> <mi>G</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> <mrow> <mi>B</mi> <mo>_</mo> <mi>s</mi> <mi>u</mi> <mi>m</mi> </mrow> </mfrac> <mo>;</mo> </mrow>
Wherein, R_Gain represents yield value of the image information on R passages;G_Gain represents increasing of the image information on G passages Benefit value;B_Gain represents yield value of the image information in channel B.
9. according to the white balance processing equipment described in claim any one of 1-3, it is characterised in that white balance processing unit according to The white balance gains value of described image information, white balance processing is carried out to image information, including:
By R passage white balance gains values, it is multiplied respectively with the R values of each pixel, obtains the image information after white balance processing In each pixel R values;
By G passage white balance gains values, it is multiplied respectively with the G values of each pixel, obtains the image information after white balance processing In each pixel G values;
By channel B white balance gains value, it is multiplied respectively with the B values of each pixel, obtains the image information after white balance processing In each pixel B values;
R values, G values and the B values of image information after being handled according to white balance determine the image information after white balance processing.
10. white balance processing equipment according to claim 6, it is characterised in that described image information includes master image area Domain and frame region, the coordinate value in the demarcation region are located at the frame region of image information.
CN201710938146.4A 2017-10-11 2017-10-11 White balancing treatment method and device Pending CN107483909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710938146.4A CN107483909A (en) 2017-10-11 2017-10-11 White balancing treatment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710938146.4A CN107483909A (en) 2017-10-11 2017-10-11 White balancing treatment method and device

Publications (1)

Publication Number Publication Date
CN107483909A true CN107483909A (en) 2017-12-15

Family

ID=60606267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710938146.4A Pending CN107483909A (en) 2017-10-11 2017-10-11 White balancing treatment method and device

Country Status (1)

Country Link
CN (1) CN107483909A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259587A (en) * 2021-04-14 2021-08-13 格科微电子(上海)有限公司 Image acquisition equipment and quick start method thereof, storage medium and terminal
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227623A (en) * 2008-01-31 2008-07-23 炬力集成电路设计有限公司 White balance adjustment method, system and camera
CN103297789A (en) * 2013-05-20 2013-09-11 周宇 White balance correcting method and white balance correcting device
CN104702941A (en) * 2013-12-09 2015-06-10 展讯通信(上海)有限公司 White-dot area indicating and judging method
CN105472365A (en) * 2015-12-30 2016-04-06 浙江宇视科技有限公司 Automatic white balance method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227623A (en) * 2008-01-31 2008-07-23 炬力集成电路设计有限公司 White balance adjustment method, system and camera
CN103297789A (en) * 2013-05-20 2013-09-11 周宇 White balance correcting method and white balance correcting device
CN104702941A (en) * 2013-12-09 2015-06-10 展讯通信(上海)有限公司 White-dot area indicating and judging method
CN105472365A (en) * 2015-12-30 2016-04-06 浙江宇视科技有限公司 Automatic white balance method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259587A (en) * 2021-04-14 2021-08-13 格科微电子(上海)有限公司 Image acquisition equipment and quick start method thereof, storage medium and terminal
CN113259587B (en) * 2021-04-14 2024-02-09 格科微电子(上海)有限公司 Image acquisition equipment and quick starting method, storage medium and terminal thereof
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium

Similar Documents

Publication Publication Date Title
JP2018523195A5 (en)
CN113792159A (en) Knowledge graph data fusion method and system
CN106897205A (en) A kind of test data generating method and device
CN109472832B (en) Color scheme generation method and device and intelligent robot
CN109784227B (en) image detection and identification method and device
CN104657468A (en) Fast video classification method based on images and texts
CN106873925A (en) The display methods and device of label text
CN111142863B (en) Page generation method and device
CN110245469A (en) Watermark generation method, watermark analytic method, device and the storage medium of webpage
CN109580004A (en) A kind of temperature checking method and device
CN106599940A (en) Picture character identification method and apparatus thereof
CN106657192A (en) Method used for presenting service calling information and equipment thereof
CN107483909A (en) White balancing treatment method and device
CN108959515A (en) Original data guard method, medium, device and calculating equipment
CN111028186B (en) Image enhancement method and device
WO2022148391A1 (en) Model training method and apparatus, data detection method and apparatus, and device and medium
WO2021169386A1 (en) Graph data processing method, apparatus and device, and medium
CN112383554B (en) Interface flow abnormity detection method and device, terminal equipment and storage medium
JP2018010435A (en) Sales prediction device, sales prediction method and program
CN105551011B (en) A kind of setting method and device of dominant hue
US20180137548A1 (en) Self-adaptive electronic bill implementation method and system
CN106445513A (en) Similarity calculation method based on mobile application interface element
CN109753157A (en) The gestural control method and device of display screen
CN112100400A (en) Node recommendation method and device based on knowledge graph
CN107766087A (en) Image processing method, method for displaying user interface and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215

RJ01 Rejection of invention patent application after publication