WO2019076027A1 - White balance information synchronization method and device, and computer readable medium - Google Patents

White balance information synchronization method and device, and computer readable medium Download PDF

Info

Publication number
WO2019076027A1
WO2019076027A1 PCT/CN2018/085735 CN2018085735W WO2019076027A1 WO 2019076027 A1 WO2019076027 A1 WO 2019076027A1 CN 2018085735 W CN2018085735 W CN 2018085735W WO 2019076027 A1 WO2019076027 A1 WO 2019076027A1
Authority
WO
WIPO (PCT)
Prior art keywords
coordinate
point
coordinate point
white balance
image
Prior art date
Application number
PCT/CN2018/085735
Other languages
French (fr)
Chinese (zh)
Inventor
左坤隆
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2019076027A1 publication Critical patent/WO2019076027A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • H04N23/13Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths with multiple sensors

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a white balance information synchronization method, apparatus, and computer readable medium.
  • AVB Automatic White Balance
  • the AWB algorithm determines the light source of the current scene based on the content of the image, and corrects the color of the image according to the characteristics of the light source so that the white object appears white.
  • the currently adopted scheme is to perform white balance processing on images taken by multiple cameras.
  • the images captured by multiple cameras are subjected to white balance processing, and the colors of the obtained images may be different, which directly affects the image effect after stitching. Therefore, it is necessary to solve the problem of synchronization of white balance information between different cameras.
  • the embodiment of the invention provides a white balance information synchronization method, which can quickly solve the synchronization problem of white balance information between different cameras, with low computational complexity and high precision.
  • an embodiment of the present invention provides a white balance information synchronization method, where the method includes:
  • the first image is an image acquired by a first camera
  • the second image is an image captured by a second camera
  • the first reference coordinate point is the first a camera at N coordinate points corresponding to the target coordinate system;
  • the second coordinate point Determining a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determining a white balance gain of the second image according to the second coordinate point;
  • the second coordinate The point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the second camera in the target coordinate system.
  • the white balance gain of the first image can be accurately mapped to the white balance gain of the second image, and the white balance information can be quickly realized. Synchronization; simple calculation and high precision.
  • the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference points The reference combination corresponds to the N white balance gains corresponding to the second camera.
  • the first reference coordinate point is N coordinate points corresponding to the N white balance gains of the N reference combinations in the target coordinate system; the second reference coordinate points are the N reference points The N white balance gains corresponding to the second camera are combined at N coordinate points corresponding to the target coordinate system.
  • the first reference coordinate point and the second reference coordinate point correspond to the same reference combination, and the second coordinate point can be accurately determined, thereby determining the white balance gain of the second image.
  • the first coordinate point is located at a closed area of the first reference coordinate point corresponding to the target coordinate system, and the N is greater than or equal to 3.
  • the first reference coordinate point includes the first coordinate point in a closed region corresponding to the target coordinate system.
  • the closed area corresponding to the target coordinate system is a closed area composed of a connection line of each coordinate point in the first reference coordinate point.
  • the first reference coordinate point may be understood as N coordinate points adjacent to the first coordinate point; each coordinate point in the first reference coordinate point is closer to the first coordinate point, and the first A reference coordinate point can be accurately mapped to the first coordinate point.
  • the embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and can improve the accuracy of white balance information synchronization.
  • the N is 3;
  • the first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
  • the second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
  • the first reference coordinate point and the second reference coordinate point are all three vertices of a triangle in the Delaunay triangulation; it can be ensured that the first reference coordinate point and the second reference coordinate point are both unique.
  • the first reference coordinate point and the second reference coordinate point each include three coordinate points, and the calculation complexity is low, and the white balance gain of the second image can be accurately performed.
  • the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set is combined with the M reference sets.
  • the M is greater than or equal to the N;
  • the corresponding light source and/or color block between any two of the M reference combinations is different.
  • the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target serial numbers, and the M target serial numbers and One-to-one correspondence of M reference combinations;
  • the method further includes: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
  • the second reference coordinate point can be quickly determined, and the operation is simple.
  • the determining the white balance gain of the first image in the target coordinate system corresponding to the first coordinate point and the first reference coordinate point includes:
  • the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  • the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, which is simple to implement.
  • the method before the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
  • the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
  • the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point includes:
  • V0 CA
  • V1 BA
  • the C, the B, and the A are respectively three coordinates included in the first reference coordinate point.
  • the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
  • the second coordinate point can be calculated quickly and accurately, and the computational complexity is low.
  • the pixel points of the first image, the pixel points of the second image, and the white balance gain all adopt three color channels; the corresponding value of the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is a ratio of the third color channel to the second color channel.
  • the first color channel may be an R channel
  • the second color channel may be a G channel
  • the third channel may be a B channel.
  • Each coordinate point in the target coordinate system corresponds to a white balance gain.
  • the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized.
  • the embodiment of the present invention provides a white balance information synchronization device, where the white balance information synchronization device can include:
  • An acquiring unit configured to acquire a first image and a second image; the first image is an image captured by a first camera, and the second image is an image captured by a second camera;
  • the acquiring unit is further configured to obtain a white balance gain of the first image
  • a determining unit configured to determine a first coordinate point corresponding to a white coordinate gain of the first image and a first reference coordinate point; the first reference coordinate point is a target coordinate of the first camera at the target Corresponding N coordinate points;
  • the determining unit is further configured to determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine white of the second image according to the second coordinate point Balanced gain; the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is a correspondence of the second camera in the target coordinate system N coordinate points.
  • the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference points The reference combination corresponds to the N white balance gains corresponding to the second camera.
  • the first coordinate point is located at a closed area of the first reference coordinate point corresponding to the target coordinate system, and the N is greater than or equal to 3.
  • the N is 3;
  • the first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
  • the second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
  • the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set is combined with the M reference sets.
  • the M is greater than or equal to the N;
  • the corresponding light source and/or color block between any two of the M reference combinations is different.
  • the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target serial numbers, and the M target serial numbers and One-to-one correspondence of M reference combinations;
  • the determining unit is further configured to determine three target serial numbers corresponding to the first reference coordinate point;
  • the acquiring unit is further configured to acquire three coordinate points corresponding to the three target serial numbers from the second point set to obtain the second reference coordinate point.
  • the determining unit is specifically configured to determine that the white balance gain of the first image is in the first coordinate point corresponding to the target coordinate system; determining the first Delaine triangle The three vertices of the first triangle in the net are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  • the determining unit is further configured to determine that three vertices of the second triangle in the second Delauna network are the second reference coordinate point, and the second triangle
  • the three reference combinations corresponding to the three vertices are the same as the three reference combinations corresponding to the three vertices of the first triangle, and the reference of the first Delauna network and the second Delauna network The combination is the same.
  • the determining unit is further configured to calculate an intermediate parameter according to the following formula:
  • V0 CA
  • V1 BA
  • the C, the B, and the A are respectively three coordinates included in the first reference coordinate point.
  • the determining unit is further configured to calculate the second coordinate point according to the following formula:
  • the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
  • the pixel points of the first image, the pixel points of the second image, and the white balance gain all adopt three color channels; the corresponding value of the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is a ratio of the third color channel to the second color channel.
  • an embodiment of the present invention provides another white balance information synchronization apparatus, including a processor and a memory, wherein the processor and the memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes Program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processing The method of the first aspect described above is performed.
  • FIG. 1 is a schematic flow chart of a white balance information synchronization method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a white balance information synchronization apparatus according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a first Delauna network and a second Delauna network according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for synchronizing white balance information according to another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a white balance information synchronization method according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention.
  • An embodiment of the present invention provides a schematic flowchart of a white balance information synchronization method, as shown in FIG. 1 , including:
  • the first image is an image captured by a first camera
  • the second image is an image captured by a second camera
  • the first camera and the second camera are cameras in the same white balance information synchronization device.
  • the white balance information synchronization device may be a mobile phone, a tablet computer, a video camera, a camera, a notebook computer, and other imaging devices including at least two cameras.
  • the first image and the second image are images obtained by capturing the same scene at the same time by the first camera and the second camera, respectively.
  • the distance between the first camera and the second camera is very close, and it can be understood that the light source information corresponding to the first camera and the second camera is the same.
  • the first camera and the second camera are two cameras on the mobile phone. As shown in FIG. 2, two circular areas on the upper left side of the figure represent two cameras.
  • the white balance information synchronization device may calculate the white balance gain of the first image by using any white balance gain calculation method to obtain the white balance gain of the first image.
  • Embodiments of the present invention do not limit a method of calculating a white balance gain of the first image described above.
  • the white balance information synchronization device calculates the white balance gain of the first image by using the gray world method, and the specific calculation steps are as follows:
  • the first image contains N*M pixels, each pixel point corresponds to one coordinate point, and (x, y) represents a coordinate point of one pixel point in the first image.
  • the R color component, the G color component, and the B color component of the pixel point whose coordinate point is (x, y) in the first image are represented as Rsensor(x, y), Gsensor(x, y), and Bsensor(x, y, respectively. ), you can use the following formula to calculate the average of the R color components:
  • Ravg represents an average value of the R color components, that is, an average value of the color components of the respective pixel points R in the first image.
  • the average value Gavg of the G color component and the average value Bavg of the B color component can be calculated.
  • the AWB controller in the white balance information synchronization device may perform white balance processing on the first image to obtain a white balance gain of the first image.
  • the target coordinate system includes a first coordinate axis and a second coordinate axis, where the value corresponding to the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is The ratio of the three color channels to the second color channel described above.
  • the first color channel is an R channel
  • the second color channel is a G channel
  • the third color channel is a B channel.
  • the value corresponding to the first coordinate axis is R/G
  • the value corresponding to the second coordinate axis is B/G.
  • R/G is the ratio of the gain of the G channel to the gain of the R channel, that is, the ratio of the gain of the G color component to the gain of the R color component and the ratio of the average of the R color component to the average of the G color component;
  • B/G The ratio of the gain of the G channel to the gain of the B channel, that is, the ratio of the gain of the G color component to the gain of the B color component and the ratio of the average of the B color component to the average of the G color component.
  • the white balance gain of the first image may be expressed as the gain of the R channel: the gain of the G channel: the gain of the B channel, and the white balance gain of the first image is the first coordinate point corresponding to the target coordinate system (R/G , B / G), R / G is the gain of the G channel: the gain of the R channel, B / G is the gain of the G channel: the gain of the B channel.
  • R/G and B/G are usually calculated first, that is, the ratio of the average value of the R color components of each pixel in the image to the average value of the G color components and the average value of the color components of each pixel B in the image.
  • the white balance information synchronization device may calculate an average value Ravg of the color components of each pixel point R in the first image, an average value Gavg of the G color component, and an average value Bavg of the B color component; Calculate Bavg/Gavg to obtain B/G, calculate Ravg/Gavg to obtain R/G; determine the white balance gain of the first image according to the B/G and the R/G as G/R: 1: G/B, ie R Channel gain: G channel gain: B channel gain is G/R: 1: G/B. It can be understood that R/G and B/G have been determined before determining the white balance gain of the first image described above.
  • the white balance information synchronization device may acquire R/G and B/G corresponding to the white balance gain of the first image to obtain the first coordinate point.
  • the white balance gain of the first image is 2:1:2, that is, the gain of the R channel: the gain of the G channel: the gain of the B channel is 2:1:2; then the white balance gain of the first image corresponds to the target coordinate system.
  • the first coordinate point is (R/G, B/G), which is (0.5, 0.5).
  • the target coordinate system in the embodiment of the present invention includes but is not limited to the above coordinate system, and may be other coordinate systems.
  • the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized.
  • the white balance information synchronizing device may pre-store information of the first reference coordinates. Specifically, the white balance information synchronization device may pre-store the position information of each coordinate point included in the first reference coordinate and the white balance gain corresponding to each coordinate point.
  • the above N is an integer greater than or equal to 1.
  • the first reference coordinate point may be one coordinate point, two coordinate points, three coordinate points, four coordinate points, and the like corresponding to the target coordinate system of the first camera.
  • the first reference coordinate point corresponds to N white balance gains, and each of the coordinate points included in the first reference coordinate point corresponds to a white balance gain.
  • the white balance gain of the second image is a coordinate point corresponding to the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the target coordinate system of the second camera.
  • the white balance information synchronizing device may pre-store information of the second reference coordinates. Specifically, the white balance information synchronization device may prestore the position information of each coordinate point included in the second reference coordinate and the white balance gain corresponding to each coordinate point. The white balance information synchronizing device may pre-store the coordinate point corresponding to the target coordinate system of the first camera and the coordinate point corresponding to the second camera in the target coordinate system, wherein the first reference coordinate point is the target coordinate of the first camera And a part of the corresponding coordinate points, wherein the second reference coordinate point is a part of the coordinate points corresponding to the second camera in the target coordinate system. As shown in FIG.
  • each point in the left half is a coordinate point corresponding to the target coordinate system of the first camera, and the first reference coordinate point is a partial coordinate point in the left half of the figure; each point in the right half is the first
  • the two cameras are at coordinate points corresponding to the target coordinate system, and the second reference coordinate points are partial coordinate points in the right half of the figure.
  • the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; and the second reference coordinate point and the N reference combinations are combined with the N corresponding to the second camera.
  • the white balance gain corresponds.
  • the reference combination is a combination of a light source and a color patch.
  • the corresponding light source and/or color block between any two of the above N reference combinations is different.
  • the light source corresponding to a reference combination may be any one of a plurality of standard light sources such as D75, D65, D55, D50, CWF, TL84, U30, H, A; and the color block corresponding to one reference combination may be any Any color block in the standard color card can also be other color blocks.
  • one reference combination corresponds to one of the X-Rite standard color block cards under the D65 standard light source.
  • the light source and color block corresponding to the reference combination are not limited to the above examples; the above examples should not be construed as limiting the uniqueness of the embodiments of the present invention.
  • the white balance synchronization device may preset a correspondence between the N reference combinations and the first reference coordinate point, and each of the N reference combinations corresponds to one of the first reference coordinate points.
  • the white balance synchronization device may preset a correspondence between the N reference combinations and the second reference coordinate point, and each of the N reference combinations corresponds to one of the second reference coordinate points.
  • the white balance gain corresponding to the first camera in a reference combination can be understood as the white balance gain corresponding to the image obtained by the first camera capturing the color block corresponding to the reference combination under the light source corresponding to the reference combination.
  • the white balance gain corresponding to the second camera in a reference combination can be understood as the white balance gain corresponding to the image obtained by the second camera capturing the color block corresponding to the reference combination under the light source corresponding to the reference combination.
  • the white balance gain is 2:1:2
  • the first reference combination corresponds to the standard light source D65 and the color block;
  • the reference combination has a white balance gain of 2:1:2 corresponding to the first camera.
  • the X-Rite standard color card contains 24 color patches, each of which corresponds to a rectangular area in the standard color card. Assuming that the first camera shoots the X-Rite standard color card under five standard light sources, five images are obtained.
  • the X-Rite standard color card contains 24 color blocks, and 24 images can be determined for each of the obtained 5 images. region.
  • Each image area corresponds to a combination of a standard light source and a color block, that is, each image area corresponds to one reference combination.
  • an image area is an image area corresponding to the first color block in the image obtained by the first camera shooting the X-Rite standard color card under the D75 light source, the image area corresponds to the combination of D75 and the first color block.
  • the Gavg of each image area can be calculated using the formula (1).
  • Ravg of each image area and Bavg of each image area can be calculated.
  • an image region corresponding to a partial color block of the Q images may be determined, and an average value Ravg of the color components of each pixel point R in the image region corresponding to the partial color block, an average value Gagg of the G color component, and B are calculated.
  • the average value of the color components is Bavg.
  • the white balance gain corresponding to the image area is G/R: 1: G/B, ie R channel gain: G channel gain: B channel gain is G/R: 1: G/B.
  • Determining a white balance gain corresponding to the first camera in a reference combination is a white balance gain corresponding to the image area corresponding to the reference combination in the first camera.
  • the first camera captures 7 colors of the X-Rite standard color card under 7 standard light sources, and the X-Rite standard color card contains 24 color blocks, and each of the obtained 7 images can be determined 24 168 image areas, each image area corresponding to a combination of a standard light source and a color block, that is, a reference combination; calculating a white balance gain of each of the 168 image areas to obtain the 168 images
  • the area corresponds to 168 white balance gains of the first camera;
  • the white balance gain corresponding to the first camera in the reference camera is the white balance gain corresponding to the image area corresponding to the reference combination in the first camera.
  • the white balance gain corresponding to the first camera in each of the 168 reference combinations corresponding to the 7 standard light sources and the 24 color patches can be determined.
  • the white balance gain corresponding to the reference camera in the second camera can be determined.
  • the white balance gain corresponding to the first camera and the white balance gain corresponding to the second camera can be quickly determined.
  • the coordinate point corresponding to the white balance gain corresponding to the first camera in the target camera is the coordinate point corresponding to the first camera in the target coordinate system; the white balance gain corresponding to the second camera in the reference camera corresponds to the target coordinate system.
  • the coordinate point is the coordinate point corresponding to the second camera in the target coordinate system.
  • the N reference balances of the N reference combinations in the first camera are N coordinate points corresponding to the target coordinate system, and are the first reference coordinate points.
  • the N reference balances of the N reference combinations in the second camera are N coordinate points corresponding to the target coordinate system, and are the second reference coordinate points. That is, the first reference coordinate points may be determined by the N reference balances corresponding to the N first white balance gains of the first camera; the N white balance gains corresponding to the second camera by the N reference combinations may be The above second reference coordinate point is determined.
  • each light source The information corresponds to a reference combination, that is, a reference combination can represent a kind of light source information.
  • a reference combination The white balance gain corresponding to the second camera described above can be understood as the white balance gain corresponding to the image captured by the second camera under the light source information corresponding to the reference combination.
  • the white balance gain corresponding to the first camera in a reference combination can be understood as the white balance gain corresponding to the image captured by the first camera under the light source information corresponding to the reference combination.
  • the first coordinate point may be regarded as a white balance gain corresponding to the first color block of the first color block, and the second coordinate The point is the white balance gain corresponding to the first color block in the second camera.
  • the first coordinate point and the second coordinate point can be understood as the coordinate points corresponding to the first reference camera and the second camera respectively.
  • the first reference coordinate point and the second reference coordinate point are respectively coordinate points corresponding to the N reference combinations in the first camera and the second camera.
  • the first coordinate point corresponds to the first reference coordinate point;
  • the second reference coordinate point corresponds to the first reference coordinate point.
  • the mapping relationship between the first coordinate point and the first reference coordinate point is the same as or similar to the mapping relationship between the second coordinate point and the second reference coordinate point.
  • mapping relationship there is at least one mapping relationship between the first coordinate point and the first reference coordinate point; the first coordinate point can be calculated by using the at least one mapping relationship and the first reference coordinate point; A mapping relationship and the second reference coordinate point may calculate the second coordinate point, that is, the white balance gain of the second image is a coordinate point corresponding to the target coordinate system.
  • the specific mapping relationship and the method for determining the second coordinate point will be described in detail in the following embodiments.
  • the first coordinate point corresponding to the target coordinate system, the first reference coordinate point, and the second reference coordinate according to the white balance gain of the first image The point determines the white balance gain of the second image; the white balance gain of the second image can be accurately determined, and the computational complexity is low.
  • the embodiment of the present invention further provides a relationship between the first coordinate point and the first reference coordinate point: the first coordinate point is located in the closed region corresponding to the first reference coordinate point in the target coordinate system, and the N is greater than or equal to 3 .
  • the first reference coordinate point includes the first coordinate point in a closed region corresponding to the target coordinate system.
  • the closed area corresponding to the first reference coordinate point in the target coordinate system is a closed area composed of a line connecting the coordinate points in the first reference coordinate point.
  • the closed area is a minimum area in the target coordinate system that includes the first coordinate point, that is, a closed area with the smallest area.
  • the second reference coordinate is utilized according to the mapping relationship between the first coordinate point and the first reference coordinate point and the same or similar mapping relationship between the second coordinate point and the second reference coordinate point.
  • the point and target mapping relationship determines the second coordinate point
  • the target mapping relationship is a mapping relationship between the first coordinate point and the first reference coordinate point.
  • the first mapping relationship is a mapping relationship between the first coordinate point and the first reference coordinate point
  • the second mapping relationship is a mapping relationship between the second coordinate point and the second reference coordinate point.
  • the first reference coordinate point is closer to the first coordinate point. Therefore, the second coordinate point can be accurately determined by the first reference coordinate point described above.
  • the embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and the second coordinate point can be accurately determined, and the calculation is simple.
  • the embodiment of the present invention further provides a specific example of the first reference coordinate point and the second reference coordinate point: the above N is 3;
  • the first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera a set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first point set;
  • the second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the second camera A set of coordinate points corresponding to the target coordinate system; the second reference coordinate point is included in the second set of points.
  • the first Delaughan triangulation corresponding to the first point set may be that the coordinate point included in the first point set is a vertex in the first Delaunay triangulation; the second Delon triangulation and the second
  • the point set correspondingly may be that the coordinate points included in the second point set are the vertices in the second Delauna network.
  • the first coordinate point is unique in the three coordinate points corresponding to the first point set, that is, the first reference coordinate point is unique; and the second coordinate point is corresponding to the third point set.
  • the coordinate points are unique, that is, the second reference coordinate point described above is unique.
  • the left half is the first Delauna triangulation
  • the first coordinate point is located in the first triangle, that is, the gray triangle in the left half of the figure
  • the right half is the second Delonian triangle, right
  • the three vertices of the gray triangle in the half graph are the second reference coordinate points.
  • the triangular region including the first coordinate point in the first Delauna network may be determined; and the three vertices corresponding to the triangular region are determined as the first reference coordinate point.
  • the first reference coordinate point can be quickly determined by the first coordinate point described above, and the determined first reference coordinate point is unique.
  • the three coordinate points included in the first reference coordinate point can be accurately mapped to the first coordinate point, and the calculation is simple.
  • the first reference coordinate point and the second reference coordinate point each include three coordinate points, which can reduce the computational complexity.
  • the embodiment of the present invention further provides a specific example of the first point set and the second point set, where the first point set and the M reference combinations correspond to the M white balance gains corresponding to the first camera, and the foregoing
  • the second point set and the M reference combinations correspond to the M white balance gains corresponding to the second camera, and the M is greater than or equal to the above N;
  • the first point set includes the M coordinate balances corresponding to the M cameras corresponding to the M coordinate points corresponding to the target coordinate system; the second point set includes the M reference combinations in the second
  • the M white balance gains corresponding to the camera are M coordinate points corresponding to the target coordinate system.
  • the white balance synchronizing device may preset information of each coordinate point in the first point set and a triangulation relationship between the coordinate points in the first point set; or may preset preset coordinates included in the second point set The information of the points and the triangulation relationship between the coordinate points in the second point set above. According to the preset information, the white balance synchronization device can quickly determine the first reference coordinate point and the second reference coordinate point corresponding to the first coordinate point.
  • the coordinate points included in the first point set and the coordinate points included in the second point set may be one-to-one correspondence.
  • the first point set and the second point set correspond to the same reference combination; the second reference coordinate point corresponding to the first reference coordinate point may be accurately and quickly determined.
  • the embodiment of the present invention further provides a method for determining a second reference coordinate point, which is specifically as follows: the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to M Target numbers, the above M target numbers are in one-to-one correspondence with the above M reference combinations;
  • the method further includes: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
  • the three coordinate points corresponding to the three target numbers are acquired from the second point set to obtain the second reference coordinate point.
  • the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to the M reference combinations.
  • the M target numbers corresponding to the M reference combinations are in one-to-one correspondence, and the M target numbers corresponding to the M coordinate points included in the first point set and the M target points corresponding to the M coordinate points included in the second point set are respectively
  • the serial number is the same.
  • the first point set and the second point set each include 28 coordinate points, and the 28 target numbers corresponding to the 28 coordinate points included in the first point set correspond to the 28 coordinate points included in the second point set.
  • the 28 target numbers are all 1 to 28. Assuming that the three target numbers corresponding to the first reference coordinate point are 1, 3, and 5, it is determined that the coordinate point of the target number of the second point set is 1, 3, and 5 is the coordinate point corresponding to the second reference coordinate point.
  • the second reference coordinate point corresponding to the first reference coordinate point can be quickly determined, which is simple to implement.
  • the embodiment of the present invention further provides a method for determining a first reference coordinate point, which is specifically as follows: determining that the white balance gain of the first image in the first coordinate point and the first reference coordinate point corresponding to the target coordinate system include:
  • the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  • the determining that the three vertices of the first triangle in the first Delauna network are the first reference coordinate point may be a triangle region in which the first coordinate point is determined; determining three vertices corresponding to the triangular region is the foregoing First reference coordinate point.
  • the white balance information synchronization device may preset information of vertices corresponding to the respective triangle regions in the first Delauna network, that is, three vertices corresponding to each triangle region; or the first Delauna triangle may be preset Information about the coordinate points contained in each triangle area in the net.
  • the white balance information synchronizing device may determine the triangular region corresponding to the first coordinate point according to the position information of the first coordinate point, and further determine that the three vertices corresponding to the triangular region are the first reference coordinate point. Assuming that the first Delauna network includes 24 triangular regions, and the first coordinate point is in the third triangular region, it is determined that the three vertices corresponding to the third triangular region are the first reference coordinate points.
  • the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, and the implementation is simple.
  • the embodiment of the present invention further provides a method for determining a second reference coordinate point, which is specifically as follows: before the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the foregoing method Also includes:
  • the three vertices of the second triangle in the second Delauna network are the second reference coordinate points, and the three reference combinations corresponding to the three vertices of the second triangle correspond to the three vertices of the first triangle
  • the three reference combinations are the same, and the reference combinations corresponding to the first Delonian triangulation and the second Delaughan triangulation are the same.
  • the three reference combinations corresponding to the first reference coordinate point may be determined first; and then the corresponding three reference vertices in the second Delauna network are determined as the second reference coordinate point. It is assumed that each point in the second Delauna network corresponds to the first color block to the twentieth color block in each point in the first Delauna network, and the second reference coordinate point corresponds to the first color block and the second The color block and the fifth color block, the second reference coordinate point is the first color block, the second color block, and the three vertices corresponding to the fifth color block in the second Delauna network.
  • the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
  • the embodiment of the present invention further provides a method for determining a second coordinate point according to a first coordinate point, a first reference coordinate point, and a second reference coordinate point, which is specifically as follows: according to the first coordinate point, the first reference coordinate The point and the second reference coordinate point determine the second coordinate point including:
  • V0 CA
  • V1 BA
  • V2 PA
  • the P is the first coordinate point
  • the C, the B, and the A are respectively three coordinate points included in the first reference coordinate point
  • .* symbol indicates the multiplication of the corresponding elements between the vectors
  • the above u and the above v are intermediate parameters
  • the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' corresponds to the same reference combination as the A, and the B' corresponds to the same reference as the B.
  • the above C' corresponds to the same reference combination as the above C; the above x represents the coordinates of the first coordinate axis, the above y represents the coordinates of the second coordinate axis, and the second coordinate point is (Qx, Qy).
  • the above u and the above v are intermediate parameters calculated by the first coordinate point and the first reference coordinate point. It can be seen from the formula (8) and the formula (9) that the above u, the above v, and the above (1-u-v) can be understood as the weighting coefficients respectively corresponding to the three coordinate points included in the second reference coordinate point.
  • the implementation of the present invention may further determine the weighting coefficient corresponding to the second reference coordinate point by using other methods, that is, determining the weighting coefficient corresponding to the second reference coordinate point by using another algorithm by using the first reference coordinate point and the first coordinate point.
  • the calculation method is a triangular interpolation method, and the second coordinate point may be determined by other algorithms according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point.
  • the mapping relationship between the first coordinate point and the first reference coordinate point may be determined by using another algorithm to determine a mapping relationship between the second coordinate point and the second reference coordinate point, and further The second coordinate point is determined.
  • the above method for calculating the second coordinate point is only an example, and the above examples are not to be construed as limiting the uniqueness of the embodiments of the present application.
  • the number of coordinate points included in the first reference coordinate point and the number of coordinate points included in the second reference coordinate point are not limited to three, and may be four or two. It is assumed that the first reference coordinate point includes four coordinate points, and the four coordinate points correspond to four weighting coefficients; then the second reference coordinate point can obtain the second coordinate point by using the four weighting coefficients and the four coordinate points included therein.
  • the specific calculation formula is the same as formula (8) and formula (9).
  • the second coordinate point can be calculated quickly and accurately, and the computational complexity is low.
  • An embodiment of the present invention provides a schematic flowchart of another method for synchronizing white balance information, as shown in FIG. 4, including:
  • the first camera and the second camera of the white balance information synchronization device respectively acquire the first image and the second image;
  • the white balance information synchronization device may include a first camera, a first camera, and an image signal processor.
  • the image signal processor includes an AWB controller and a cache; the first camera and the second camera in the figure are in the same scene. Shooting, respectively obtaining a first image and a second image; the AWB controller performs white balance processing on the first image to obtain a white balance gain of the first image; and the buffer stores parameters required for performing white balance processing.
  • the white balance gain of the first image may be expressed as the gain of the R channel: the gain of the G channel: the gain of the B channel, and the white balance gain of the first image is the first coordinate point corresponding to the target coordinate system (R/G , B / G), R / G is the gain of the G channel: the gain of the R channel, B / G is the gain of the G channel: the gain of the B channel.
  • R/G and B/G are usually calculated first, that is, the ratio of the average value of the R color components of each pixel in the image to the average value of the G color components and the average value of the color components of each pixel B in the image.
  • the ratio of the average value of the G color component; recalculate the gain of the R channel: the gain of the G channel: the gain of the B channel, and the calculated (R/G, B/G) is the white balance gain corresponding to the target coordinate system.
  • the white balance information synchronization device may acquire R/G and B/G corresponding to the white balance gain of the first image to obtain the first coordinate point.
  • the white balance information synchronizing device may preset information of the target area.
  • the target area may be a closed area corresponding to the target coordinate system of the F coordinate points, and the F coordinate points are F reference sets, and the F white balance gains corresponding to the first camera are at the coordinate points corresponding to the target coordinate system. .
  • the white balance information synchronizing device may preset information of the F white reference gains corresponding to the first camera corresponding to the coordinate points corresponding to the target coordinate system, and the F reference combinations corresponding to the second camera.
  • the above F is an integer greater than 1.
  • the first coordinate point in the target area can be accurately mapped to the second coordinate point, that is, the coordinate point corresponding to the white balance gain of the second image.
  • the debugger can determine the target area through repeated experiments to ensure the accuracy of white balance information synchronization.
  • Embodiments of the present invention do not limit the manner in which the target area is determined. As shown in FIG. 5, the area corresponding to the broken line in the left half is the target area.
  • the first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera A set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first set of points.
  • the first coordinate point is located at a closed region corresponding to the target coordinate system in the first reference coordinate point.
  • the second coordinate point described above can be calculated using equations (11) and (12).
  • the target mode may be the same as the manner of determining the white balance gain of the first image; or may be another way of mapping the white balance gain of the first image to the white balance gain of the second image.
  • different methods are adaptively selected, and the white balance gain of the first image is mapped to the white balance gain of the second image; the accuracy of the white balance information synchronization is ensured.
  • An embodiment of the present invention provides a schematic flowchart of another method for synchronizing white balance information, as shown in FIG. 6, including:
  • the above target threshold may be set in advance by a value greater than zero. Before executing 601, 401-403 may be performed to obtain the first coordinate point described above.
  • the target reference coordinate point is a coordinate point that is closest to the first coordinate point among the H coordinate points, and the H coordinate points are H reference balances.
  • the H white balance gains corresponding to the first camera are in the target coordinate system.
  • the white balance information synchronizing device may preset information of the H white balance gains corresponding to the first camera corresponding to the coordinate points corresponding to the target coordinate system, and the H reference combinations corresponding to the second camera The H white balance gains information on the coordinate points corresponding to the target coordinate system.
  • the target reference combination is one of the H reference combinations, and the target reference coordinate point is a coordinate point corresponding to the H target gain of the target reference combination in the first camera.
  • the above H is an integer greater than one.
  • the above-mentioned G coordinate points are partial coordinate points among the above H coordinate points.
  • the above G is an integer smaller than the above H.
  • the weights corresponding to the four coordinate points are 0.4, 0.3, 0.2, and 01, respectively.
  • the G weights corresponding to the G coordinate points may be calculated by a method such as inverse distance weighted interpolation. Embodiments of the invention are not limited to the above methods.
  • the above G reference combinations are partial reference combinations among the above H reference combinations.
  • the G white balance gains corresponding to the G cameras in the second camera are in the G coordinate points corresponding to the target coordinate system; and the second coordinates are calculated according to the G coordinate points and the G weights. point.
  • the second coordinate point described above can be calculated using equations (8) and (9).
  • the white balance gain of the second image can be quickly determined, and the calculation is simple.
  • An embodiment of the present invention further provides a white balance information synchronization apparatus, the apparatus comprising means for performing the method described above.
  • FIG. 7 is a schematic block diagram of a white balance information synchronization apparatus according to an embodiment of the present invention.
  • the white balance information synchronizing apparatus of this embodiment includes an obtaining unit and a determining unit, and a detailed description of each unit is as follows.
  • the acquiring unit 701 is configured to acquire the first image and the second image; the first image is an image captured by the first camera, and the second image is an image captured by the second camera;
  • the obtaining unit 701 is further configured to obtain a white balance gain of the first image.
  • a determining unit 702 configured to determine a first coordinate point corresponding to the white balance gain of the first image in the target coordinate system and a first reference coordinate point; the first reference coordinate point is a correspondence between the first camera and the target coordinate system N coordinate points;
  • the determining unit 702 is further configured to determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine a white balance gain of the second image according to the second coordinate point;
  • the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the target coordinate system of the second camera.
  • the obtaining unit 701 may correspond to the function of acquiring the image captured by the first camera and the second camera and the function of acquiring other information by the image signal processor in FIG. 5; the determining unit 702 may correspond to the image in FIG. Image signal processor.
  • the white balance gain of the first image can be accurately mapped to the white balance gain of the second image, and the white balance information can be quickly realized. Synchronization; simple calculation and high precision.
  • the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference combinations are in the foregoing The N white balance gains corresponding to the second camera correspond.
  • the first reference coordinate point and the second reference coordinate point correspond to the same reference combination, and the second coordinate point can be accurately determined, thereby determining the white balance gain of the second image.
  • the first coordinate point is located at a closed area corresponding to the first reference coordinate point in the target coordinate system, and the N is greater than or equal to 3.
  • the embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and can improve the accuracy of white balance information synchronization.
  • N is 3;
  • the first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera a set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first point set;
  • the second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the second camera A set of coordinate points corresponding to the target coordinate system; the second reference coordinate point is included in the second set of points.
  • the first reference coordinate point and the second reference coordinate point are all three vertices of a triangle in the Delonian triangulation; it can be ensured that the first reference coordinate point and the second reference coordinate point are both unique.
  • the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set and the M reference combinations are in the second The corresponding white balance gains of the camera correspond to the above, M is greater than or equal to the above N;
  • the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target numbers
  • the M target numbers and the M references are One-to-one correspondence
  • the determining unit 702 is further configured to determine three target serial numbers corresponding to the first reference coordinate point;
  • the acquiring unit 701 is further configured to acquire three coordinate points corresponding to the three target numbers from the second point set to obtain the second reference coordinate point.
  • the second reference coordinate point can be quickly determined, and the operation is simple.
  • the determining unit 702 is specifically configured to determine that the white balance gain of the first image is in the first coordinate point corresponding to the target coordinate system; and determine that the first Delauna network is in the first
  • the three vertices of a triangle are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  • the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, and the implementation is simple.
  • the determining unit 702 is further configured to determine that three vertices of the second triangle in the second Delauna network are the second reference coordinate point, and three of the second triangles
  • the three reference combinations corresponding to the vertices are the same as the three reference combinations corresponding to the three vertices of the first triangle, and the reference combinations corresponding to the first Delauna network and the second Delauna network are the same.
  • the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
  • the determining unit 702 is further configured to calculate an intermediate parameter according to the following formula:
  • V0 CA
  • V1 BA
  • V2 PA
  • the P is the first coordinate point
  • the C, the B, and the A are respectively three coordinate points included in the first reference coordinate point
  • .* symbol indicates the multiplication of the corresponding elements between the vectors
  • the above u and the above v are intermediate parameters
  • the determining unit 702 is further configured to calculate the second coordinate point according to the following formula:
  • the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' corresponds to the same reference combination as the A, and the B' corresponds to the same reference as the B.
  • the above C' corresponds to the same reference combination as the above C; the above x represents the coordinates of the first coordinate axis, the above y represents the coordinates of the second coordinate axis, and the second coordinate point is (Qx, Qy).
  • the second coordinate point can be calculated quickly and accurately, and the calculation complexity is low.
  • the pixel of the first image, the pixel of the second image, and the white balance gain all use three color channels; the value corresponding to the first coordinate axis is the first color channel.
  • the ratio corresponding to the second color channel is a ratio of the third color channel to the second color channel.
  • the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized.
  • FIG. 8 is a white balance information synchronization apparatus according to an embodiment of the present disclosure.
  • the white balance information synchronization apparatus includes: a cache 801, a processor 802, and an input device 803.
  • the cache 801 may be included in the memory. It can also be integrated in the processor 802, and the parameter data is included in the cache 801; the executable code can be stored in the memory, and the processor 802 has the above-mentioned executable executable code or the hardware to implement the embodiment of the present application.
  • the functionality of the provided method The functions of the method in this embodiment are not described herein again.
  • the cache 801, the processor 802, and the input device 803 can be connected to each other through a bus.
  • the memory includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an erasable programmable read-only memory (Erasable Programmable Read). Only Memory (EPROM), or Compact Disc Read-Only Memory (CD-ROM), which can be used to store related instructions and data.
  • RAM random access memory
  • ROM read-only memory
  • EPROM erasable programmable read-only memory
  • CD-ROM Compact Disc Read-Only Memory
  • the input device 803 is used to acquire image data.
  • the processor 802 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • DSP digital signal processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • GPU Graphics Processing Unit
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the processor 801, the input device 803, and the cache 801, which are described in the embodiments of the present invention, may be implemented in the foregoing embodiments provided by the embodiments of the present invention, and may also be implemented in the embodiments of the present invention.
  • the implementation manner of the white balance information synchronization device will not be described here.
  • a computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, the first image is acquired. And the second image; the first image is an image acquired by the first camera, the second image is an image captured by the second camera; and the white balance gain of the first image is determined at a first coordinate point corresponding to the target coordinate system and a reference coordinate point; the first reference coordinate point is N coordinate points corresponding to the first camera in the target coordinate system; determining the second according to the first coordinate point, the first reference coordinate point and the second reference coordinate point a coordinate point, determining a white balance gain of the second image according to the second coordinate point; wherein the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is The second camera is located at N coordinate points corresponding to the target coordinate system.
  • the above computer readable storage medium may be an internal storage unit of the above-described apparatus of any of the foregoing embodiments, such as a hard disk or a memory of the device.
  • the computer readable storage medium may also be an external storage device of the above device, such as a plug-in hard disk equipped with the above device, a smart memory card (SMC), a Secure Digital (SD) card, a flash memory card. (Flash Card), etc.
  • the above computer readable storage medium may also include both an internal storage unit of the above device and an external storage device.
  • the computer readable storage medium described above is for storing the above computer program and other programs and data required by the above apparatus.
  • the computer readable storage medium described above can also be used to temporarily store data that has been output or is about to be output.
  • FIG. 9 is a schematic structural diagram of a terminal provided by the present application.
  • the terminal may be the white balance information synchronizing device in the foregoing embodiment.
  • terminal 200 can include a baseband chip 210, a memory 215 (one or more computer readable storage media), a radio frequency (RF) module 216, and a peripheral system 217. These components can communicate over one or more communication buses 214.
  • RF radio frequency
  • the peripheral system 217 is mainly used to implement the interaction function between the terminal 210 and the user/external environment, and mainly includes the input and output devices of the terminal 200.
  • the peripheral system 217 can include: a touch screen controller 218, a camera controller 219, an audio controller 220, and a sensor management module 221. Each controller may be coupled to a respective peripheral device such as touch screen 223, camera 224, audio circuit 225, and sensor 226. It should be noted that the peripheral system 217 may also include other I/O peripherals.
  • the baseband chip 210 can be integrated to include one or more processors 211, a clock module 222, and a power management module 213.
  • the clock module 222 integrated in the baseband chip 210 is primarily used to generate the clocks required for data transfer and timing control for the processor 211.
  • the power management module 213 integrated in the baseband chip 210 is mainly used to provide a stable, high-accuracy voltage for the processor 211, the radio frequency module 216, and the peripheral system.
  • a radio frequency (RF) module 216 is used to receive and transmit radio frequency signals, primarily integrating the receiver and transmitter of terminal 200.
  • a radio frequency (RF) module 216 communicates with the communication network and other communication devices via radio frequency signals.
  • the radio frequency (RF) module 216 can include, but is not limited to: an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc.
  • a radio frequency (RF) module 216 can be implemented on a separate chip.
  • Memory 215 is coupled to processor 211 for storing various software programs and/or sets of instructions.
  • memory 215 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices.
  • the memory 215 can store an operating system (hereinafter referred to as a system) such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX.
  • the memory 215 can also store a network communication program that can be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices.
  • the memory 215 can also store a user interface program, which can realistically display the content of the application through a graphical operation interface, and receive user control operations on the application through input controls such as menus, dialog boxes, and keys. .
  • the memory 215 can also store one or more applications. As shown in FIG. 9, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
  • social applications such as Facebook
  • image management applications such as photo albums
  • map applications such as Google Maps
  • browsers such as Safari, Google Chrome
  • processor 211 can be used to read and execute computer readable instructions. Specifically, the processor 211 can be used to call a program stored in the memory 215 and execute instructions included in the program.
  • terminal 200 is only an example provided by an embodiment of the present invention, and that the terminal 200 may have more or less components than the illustrated components, may combine two or more components, or may have components. Different configurations are implemented.

Abstract

Disclosed are a white balance information synchronization method and device, and a computer readable medium. The method comprises: obtaining a first image and a second image, the first image being an image acquired by a first camera and the second image being an image acquired by a second camera; determining a first coordinate point, in a target coordinate system, corresponding to a white balance gain of the first image, and first reference coordinate points, the first reference coordinate points being N coordinate points, in the target coordinate system, corresponding to the first camera; and determining a second coordinate point according to the first coordinate point, the first reference coordinate points, and second reference coordinate points, and determining a white balance gain of the second image according to the second coordinate point, the second coordinate point being a coordinate point, in the target coordinate system, corresponding to the white balance gain of the second image. Embodiments of the present invention can quickly implement the synchronization of white balance information, and feature simple computation and high precision.

Description

白平衡信息同步方法、装置及计算机可读介质White balance information synchronization method, device and computer readable medium 技术领域Technical field
本发明涉及图像处理技术领域,尤其涉及一种白平衡信息同步方法、装置及计算机可读介质。The present invention relates to the field of image processing technologies, and in particular, to a white balance information synchronization method, apparatus, and computer readable medium.
背景技术Background technique
为了获得更好的拍照体验,拍照装置上多摄像头的使用越来越多。由于同一拍照装置上的多个摄像头往往采用的是不同型号、甚至是不同厂家的传感器及镜头模组,这就导致不同摄像头在感光特性方面可能有明显差异。根据多摄像头的应用需求,多个摄像头之间需要进行拍照效果的同步。自动白平衡(Automatic white balance,AWB)的效果是否一致在很大程度上决定了多个摄像头拍摄的图像的颜色是否一致。因此,需要处理多摄像头自动白平衡的同步问题。AWB算法是根据图像的内容判断当前场景的光源,并根据光源特性修正图像色彩使白色物体看上去呈现白色。In order to get a better camera experience, more and more cameras are used on the camera device. Since multiple cameras on the same camera device often use sensors and lens modules of different models and even different manufacturers, this may result in significant differences in the photographic characteristics of different cameras. According to the application requirements of multiple cameras, it is necessary to synchronize the photographing effects between multiple cameras. Whether the effects of Automatic White Balance (AWB) are consistent largely determines whether the colors of images captured by multiple cameras are consistent. Therefore, there is a need to deal with the synchronization problem of multi-camera automatic white balance. The AWB algorithm determines the light source of the current scene based on the content of the image, and corrects the color of the image according to the characteristics of the light source so that the white object appears white.
当前采用的方案是对多个摄像头拍摄的图像分别进行白平衡处理。实际应用中,由于不同摄像头的镜头、感光芯片等器件存在差异,多个摄像头拍摄的图像各自经过白平衡处理后,得到的多个图像的色彩会存在差异,这直接影响拼接后的图像效果。因此,需要解决不同摄像头之间白平衡信息的同步问题。The currently adopted scheme is to perform white balance processing on images taken by multiple cameras. In practical applications, due to the difference in the lens, sensor chip and other devices of different cameras, the images captured by multiple cameras are subjected to white balance processing, and the colors of the obtained images may be different, which directly affects the image effect after stitching. Therefore, it is necessary to solve the problem of synchronization of white balance information between different cameras.
发明内容Summary of the invention
本发明实施例提供一种白平衡信息同步方法,可快速地解决不同摄像头之间白平衡信息的同步问题,计算复杂度低,精度高。The embodiment of the invention provides a white balance information synchronization method, which can quickly solve the synchronization problem of white balance information between different cameras, with low computational complexity and high precision.
第一方面,本发明实施例提供了一种白平衡信息同步方法,该方法包括:In a first aspect, an embodiment of the present invention provides a white balance information synchronization method, where the method includes:
获取第一图像和第二图像;所述第一图像为第一摄像头采集的图像,所述第二图像为第二摄像头采集的图像;Obtaining a first image and a second image; the first image is an image acquired by a first camera, and the second image is an image captured by a second camera;
获得所述第一图像的白平衡增益,并确定所述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;所述第一参考坐标点为所述第一摄像头在所述目标坐标系对应的N个坐标点;Obtaining a white balance gain of the first image, and determining a white coordinate gain of the first image in a first coordinate point corresponding to the target coordinate system and a first reference coordinate point; the first reference coordinate point is the first a camera at N coordinate points corresponding to the target coordinate system;
依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点,依据所述第二坐标点确定所述第二图像的白平衡增益;所述第二坐标点为所述第二图像的白平衡增益在所述目标坐标系对应的坐标点;所述第二参考坐标点为所述第二摄像头在所述目标坐标系对应的N个坐标点。Determining a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determining a white balance gain of the second image according to the second coordinate point; the second coordinate The point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the second camera in the target coordinate system.
本发明实施例通过将白平衡信息的同步问题转换为坐标点之间的映射问题,可以精确地将第一图像的白平衡增益映射为第二图像的白平衡增益,快速地实现白平衡信息的同步;计算简单,精度较高。In the embodiment of the present invention, by converting the synchronization problem of white balance information into a mapping problem between coordinate points, the white balance gain of the first image can be accurately mapped to the white balance gain of the second image, and the white balance information can be quickly realized. Synchronization; simple calculation and high precision.
在一种可选的实现方式中,所述第一参考坐标点与N个参考组合在所述第一摄像头对应的N个白平衡增益相对应;所述第二参考坐标点与所述N个参考组合在所述第二摄像头 对应的N个白平衡增益相对应。In an optional implementation manner, the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference points The reference combination corresponds to the N white balance gains corresponding to the second camera.
所述第一参考坐标点为所述N个参考组合在所述第一摄像头对应的N个白平衡增益在目标坐标系对应的N个坐标点;所述第二参考坐标点为所述N个参考组合在所述第二摄像头对应的N个白平衡增益在目标坐标系对应的N个坐标点。The first reference coordinate point is N coordinate points corresponding to the N white balance gains of the N reference combinations in the target coordinate system; the second reference coordinate points are the N reference points The N white balance gains corresponding to the second camera are combined at N coordinate points corresponding to the target coordinate system.
本发明实施例中,第一参考坐标点和第二参考坐标点对应相同的参考组合,可以准确地确定第二坐标点,进而确定第二图像的白平衡增益。In the embodiment of the present invention, the first reference coordinate point and the second reference coordinate point correspond to the same reference combination, and the second coordinate point can be accurately determined, thereby determining the white balance gain of the second image.
在一种可选的实现方式中,所述第一坐标点位于所述第一参考坐标点在所述目标坐标系对应的闭合区域,所述N大于或者等于3。In an optional implementation manner, the first coordinate point is located at a closed area of the first reference coordinate point corresponding to the target coordinate system, and the N is greater than or equal to 3.
可以理解,所述第一参考坐标点在所述目标坐标系对应的闭合区域包含所述第一坐标点。所述第一参考坐标点在所述目标坐标系对应的闭合区域为所述第一参考坐标点中各坐标点的连线所组成的闭合区域。所述第一参考坐标点可以理解为所述第一坐标点相邻的N个坐标点;所述第一参考坐标点中各坐标点与所述第一坐标点距离较近,利用所述第一参考坐标点可以准确地映射到所述第一坐标点。It can be understood that the first reference coordinate point includes the first coordinate point in a closed region corresponding to the target coordinate system. The closed area corresponding to the target coordinate system is a closed area composed of a connection line of each coordinate point in the first reference coordinate point. The first reference coordinate point may be understood as N coordinate points adjacent to the first coordinate point; each coordinate point in the first reference coordinate point is closer to the first coordinate point, and the first A reference coordinate point can be accurately mapped to the first coordinate point.
本发明实施例限定了第一坐标点和第一参考坐标点在目标坐标系的位置关系,可以提高白平衡信息同步的精度。The embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and can improve the accuracy of white balance information synchronization.
在一种可选的实现方式中,所述N为3;In an optional implementation manner, the N is 3;
所述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;所述第一德洛内三角网与第一点集相对应,所述第一点集为所述第一摄像头在所述目标坐标系对应的坐标点的集合;所述第一参考坐标点包含在所述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
所述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,所述第二德洛内三角网与第二点集相对应,所述第二点集为所述第二摄像头在所述目标坐标系对应的坐标点的集合;所述第二参考坐标点包含在所述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
本发明实施例中,第一参考坐标点和第二参考坐标点均为德洛内三角网中一个三角形的3个顶点;可以保证第一参考坐标点和第二参考坐标点均是唯一的。另外,第一参考坐标点和第二参考坐标点均包含3个坐标点,计算复杂度低,可以精确地第二图像的白平衡增益。In the embodiment of the present invention, the first reference coordinate point and the second reference coordinate point are all three vertices of a triangle in the Delaunay triangulation; it can be ensured that the first reference coordinate point and the second reference coordinate point are both unique. In addition, the first reference coordinate point and the second reference coordinate point each include three coordinate points, and the calculation complexity is low, and the white balance gain of the second image can be accurately performed.
在一种可选的实现方式中,所述第一点集与M个参考组合在所述第一摄像头对应的M个白平衡增益相对应,所述第二点集与所述M个参考组合在所述第二摄像头对应的M个白平衡增益相对应,所述M大于或等于所述N;In an optional implementation manner, the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set is combined with the M reference sets. Corresponding to the M white balance gains corresponding to the second camera, the M is greater than or equal to the N;
所述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the M reference combinations is different.
在一种可选的实现方式中,所述第一点集包含的M个坐标点和所述第二点集包含的M个坐标点均对应M个目标序号,所述M个目标序号与所述M个参考组合一一对应;In an optional implementation manner, the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target serial numbers, and the M target serial numbers and One-to-one correspondence of M reference combinations;
所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点之前,所述方法还包括:The method further includes: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
确定所述第一参考坐标点对应的3个目标序号;Determining three target serial numbers corresponding to the first reference coordinate point;
从所述第二点集中获取所述3个目标序号对应的3个坐标点,得到所述第二参考坐标点。Obtaining three coordinate points corresponding to the three target serial numbers from the second point set to obtain the second reference coordinate point.
通过执行上述操作,可以快速地确定第二参考坐标点,操作简单。By performing the above operation, the second reference coordinate point can be quickly determined, and the operation is simple.
在一种可选的实现方式中,所述确定所述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点包括:In an optional implementation manner, the determining the white balance gain of the first image in the target coordinate system corresponding to the first coordinate point and the first reference coordinate point includes:
确定所述第一图像的白平衡增益在目标坐标系对应的所述第一坐标点;Determining, that the white balance gain of the first image is at the first coordinate point corresponding to the target coordinate system;
确定所述第一德洛内三角网中第一三角形的3个顶点为所述第一参考坐标点,所述第一三角形在所述目标坐标系对应的区域包含所述第一坐标点。Determining that three vertices of the first triangle in the first Delauna network are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
通过执行上述操作,可以快速、准确地确定第一坐标点对应的第一参考坐标点,实现简单。By performing the above operations, the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, which is simple to implement.
在一种可选的实现方式中,所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点之前,所述方法还包括:In an optional implementation manner, before the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
确定所述第二德洛内三角网中第二三角形的3个顶点为所述第二参考坐标点,所述第二三角形的3个顶点对应的3个参考组合与所述第一三角形的3个顶点对应的3个参考组合相同,所述第一德洛内三角网和所述第二德洛内三角网对应的参考组合相同。Determining that three vertices of the second triangle in the second Delauna network are the second reference coordinate points, three reference combinations corresponding to three vertices of the second triangle, and three of the first triangles The three reference combinations corresponding to the vertices are the same, and the reference combinations corresponding to the first Delauna network and the second Delauna network are the same.
通过执行上述操作,可以快速、准确地确定第一参考坐标点对应的第二参考坐标点。By performing the above operation, the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
在一种可选的实现方式中,所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点包括:In an optional implementation manner, the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point includes:
依据如下公式计算中间参数:Calculate the intermediate parameters according to the following formula:
D00=sum(V0.*V0);D00=sum(V0.*V0);
D01=sum(V0.*V1);D01=sum(V0.*V1);
D02=sum(V0.*V2);D02=sum(V0.*V2);
D11=sum(V1.*V1);D11=sum(V1.*V1);
D12=sum(V1.*V2);D12=sum(V1.*V2);
u=(D11*D02-D01*D12)/(D00*D11-D01*D01);u=(D11*D02-D01*D12)/(D00*D11-D01*D01);
v=(D00*D12-D01*D02)/(D00*D11-D01*D01);v=(D00*D12-D01*D02)/(D00*D11-D01*D01);
其中,V0=C-A,V1=B-A,V2=P-A,所述P为所述第一坐标点,所述C、所述B、所述A分别为所述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;所述u和所述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinates included in the first reference coordinate point. Point; sum means summation, .* symbol means multiplication of corresponding elements between vectors; u and v are intermediate parameters;
依据如下公式计算所述第二坐标点:Calculating the second coordinate point according to the following formula:
Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;
Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;
其中,所述C’、所述B’、所述A’分别为所述第二参考坐标点包含的三个坐标点,所述A’与所述A对应相同的参考组合,所述B’与所述B对应相同的参考组合,所述C’与所述C对应相同的参考组合;所述.x表示第一坐标轴的坐标,所述.y表示第二坐标轴的坐标;所述第二坐标点为(Q.x,Q.y)。Wherein, the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
通过执行上述计算,可以快速、准确地计算出第二坐标点,计算复杂度较低。By performing the above calculation, the second coordinate point can be calculated quickly and accurately, and the computational complexity is low.
在一种可选的实现方式中,所述第一图像的像素点、所述第二图像的像素点以及所述白平衡增益均采用三个颜色通道;所述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,所述第二坐标轴对应的数值为第三颜色通道与所述第二颜色通道的比值。In an optional implementation manner, the pixel points of the first image, the pixel points of the second image, and the white balance gain all adopt three color channels; the corresponding value of the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is a ratio of the third color channel to the second color channel.
所述第一颜色通道可以是R通道,所述第二颜色通道可以是G通道,所述第三通道可 以是B通道。所述目标坐标系中的每个坐标点对应一个白平衡增益。The first color channel may be an R channel, the second color channel may be a G channel, and the third channel may be a B channel. Each coordinate point in the target coordinate system corresponds to a white balance gain.
本发明实施例中,目标坐标系为二维坐标系,且每个坐标点对应一个白平衡增益,将白平衡增益的映射问题转换为坐标点的映射问题,可以准确地实现白平衡信息的同步。In the embodiment of the present invention, the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized. .
第二方面,本发明实施例提供了一种白平衡信息同步装置,该白平衡信息同步装置可包括:In a second aspect, the embodiment of the present invention provides a white balance information synchronization device, where the white balance information synchronization device can include:
获取单元,用于获取第一图像和第二图像;所述第一图像为第一摄像头采集的图像,所述第二图像为第二摄像头采集的图像;An acquiring unit, configured to acquire a first image and a second image; the first image is an image captured by a first camera, and the second image is an image captured by a second camera;
所述获取单元,还用于获得所述第一图像的白平衡增益;The acquiring unit is further configured to obtain a white balance gain of the first image;
确定单元,用于确定所述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;所述第一参考坐标点为所述第一摄像头在所述目标坐标系对应的N个坐标点;a determining unit, configured to determine a first coordinate point corresponding to a white coordinate gain of the first image and a first reference coordinate point; the first reference coordinate point is a target coordinate of the first camera at the target Corresponding N coordinate points;
所述确定单元,还用于依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点,依据所述第二坐标点确定所述第二图像的白平衡增益;所述第二坐标点为所述第二图像的白平衡增益在所述目标坐标系对应的坐标点;所述第二参考坐标点为所述第二摄像头在所述目标坐标系对应的N个坐标点。The determining unit is further configured to determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine white of the second image according to the second coordinate point Balanced gain; the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is a correspondence of the second camera in the target coordinate system N coordinate points.
在一种可选的实现方式中,所述第一参考坐标点与N个参考组合在所述第一摄像头对应的N个白平衡增益相对应;所述第二参考坐标点与所述N个参考组合在所述第二摄像头对应的N个白平衡增益相对应。In an optional implementation manner, the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference points The reference combination corresponds to the N white balance gains corresponding to the second camera.
在一种可选的实现方式中,所述第一坐标点位于所述第一参考坐标点在所述目标坐标系对应的闭合区域,所述N大于或者等于3。In an optional implementation manner, the first coordinate point is located at a closed area of the first reference coordinate point corresponding to the target coordinate system, and the N is greater than or equal to 3.
在一种可选的实现方式中,所述N为3;In an optional implementation manner, the N is 3;
所述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;所述第一德洛内三角网与第一点集相对应,所述第一点集为所述第一摄像头在所述目标坐标系对应的坐标点的集合;所述第一参考坐标点包含在所述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
所述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,所述第二德洛内三角网与第二点集相对应,所述第二点集为所述第二摄像头在所述目标坐标系对应的坐标点的集合;所述第二参考坐标点包含在所述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
在一种可选的实现方式中,所述第一点集与M个参考组合在所述第一摄像头对应的M个白平衡增益相对应,所述第二点集与所述M个参考组合在所述第二摄像头对应的M个白平衡增益相对应,所述M大于或等于所述N;In an optional implementation manner, the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set is combined with the M reference sets. Corresponding to the M white balance gains corresponding to the second camera, the M is greater than or equal to the N;
所述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the M reference combinations is different.
在一种可选的实现方式中,所述第一点集包含的M个坐标点和所述第二点集包含的M个坐标点均对应M个目标序号,所述M个目标序号与所述M个参考组合一一对应;In an optional implementation manner, the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target serial numbers, and the M target serial numbers and One-to-one correspondence of M reference combinations;
所述确定单元,还用于确定所述第一参考坐标点对应的3个目标序号;The determining unit is further configured to determine three target serial numbers corresponding to the first reference coordinate point;
所述获取单元,还用于从所述第二点集中获取所述3个目标序号对应的3个坐标点,得到所述第二参考坐标点。The acquiring unit is further configured to acquire three coordinate points corresponding to the three target serial numbers from the second point set to obtain the second reference coordinate point.
在一种可选的实现方式中,所述确定单元,具体用于确定所述第一图像的白平衡增益在目标坐标系对应的所述第一坐标点;确定所述第一德洛内三角网中第一三角形的3个顶 点为所述第一参考坐标点,所述第一三角形在所述目标坐标系对应的区域包含所述第一坐标点。In an optional implementation manner, the determining unit is specifically configured to determine that the white balance gain of the first image is in the first coordinate point corresponding to the target coordinate system; determining the first Delaine triangle The three vertices of the first triangle in the net are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
在一种可选的实现方式中,所述确定单元,还用于确定所述第二德洛内三角网中第二三角形的3个顶点为所述第二参考坐标点,所述第二三角形的3个顶点对应的3个参考组合与所述第一三角形的3个顶点对应的3个参考组合相同,所述第一德洛内三角网和所述第二德洛内三角网对应的参考组合相同。In an optional implementation, the determining unit is further configured to determine that three vertices of the second triangle in the second Delauna network are the second reference coordinate point, and the second triangle The three reference combinations corresponding to the three vertices are the same as the three reference combinations corresponding to the three vertices of the first triangle, and the reference of the first Delauna network and the second Delauna network The combination is the same.
在一种可选的实现方式中,所述确定单元,还用于依据如下公式计算中间参数:In an optional implementation manner, the determining unit is further configured to calculate an intermediate parameter according to the following formula:
D00=sum(V0.*V0);D00=sum(V0.*V0);
D01=sum(V0.*V1);D01=sum(V0.*V1);
D02=sum(V0.*V2);D02=sum(V0.*V2);
D11=sum(V1.*V1);D11=sum(V1.*V1);
D12=sum(V1.*V2);D12=sum(V1.*V2);
u=(D11*D02-D01*D12)/(D00*D11-D01*D01);u=(D11*D02-D01*D12)/(D00*D11-D01*D01);
v=(D00*D12-D01*D02)/(D00*D11-D01*D01);v=(D00*D12-D01*D02)/(D00*D11-D01*D01);
其中,V0=C-A,V1=B-A,V2=P-A,所述P为所述第一坐标点,所述C、所述B、所述A分别为所述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;所述u和所述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinates included in the first reference coordinate point. Point; sum means summation, .* symbol means multiplication of corresponding elements between vectors; u and v are intermediate parameters;
所述确定单元,还用于依据如下公式计算所述第二坐标点:The determining unit is further configured to calculate the second coordinate point according to the following formula:
Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;
Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;
其中,所述C’、所述B’、所述A’分别为所述第二参考坐标点包含的三个坐标点,所述A’与所述A对应相同的参考组合,所述B’与所述B对应相同的参考组合,所述C’与所述C对应相同的参考组合;所述.x表示第一坐标轴的坐标,所述.y表示第二坐标轴的坐标;所述第二坐标点为(Q.x,Q.y)。Wherein, the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
在一种可选的实现方式中,所述第一图像的像素点、所述第二图像的像素点以及所述白平衡增益均采用三个颜色通道;所述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,所述第二坐标轴对应的数值为第三颜色通道与所述第二颜色通道的比值。In an optional implementation manner, the pixel points of the first image, the pixel points of the second image, and the white balance gain all adopt three color channels; the corresponding value of the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is a ratio of the third color channel to the second color channel.
第三方面,本发明实施例提供了另一种白平衡信息同步装置,包括处理器和存储器,所述处理器和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行上述第一方面的方法。In a third aspect, an embodiment of the present invention provides another white balance information synchronization apparatus, including a processor and a memory, wherein the processor and the memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes Program instructions, the processor being configured to invoke the program instructions to perform the method of the first aspect above.
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述第一方面的方法。In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where the computer storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processing The method of the first aspect described above is performed.
附图说明DRAWINGS
下面将对本申请实施例中所需要使用的附图进行说明。The drawings that need to be used in the embodiments of the present application will be described below.
图1是本发明实施例提供的一种白平衡信息同步方法的示意流程图;1 is a schematic flow chart of a white balance information synchronization method according to an embodiment of the present invention;
图2是本发明实施例提供的一种白平衡信息同步装置的结构示意图;2 is a schematic structural diagram of a white balance information synchronization apparatus according to an embodiment of the present invention;
图3是本发明实施例提供的一种第一德洛内三角网和第二德洛内三角网的示意图;3 is a schematic diagram of a first Delauna network and a second Delauna network according to an embodiment of the present invention;
图4是本发明另一实施例提供的一种白平衡信息同步方法的示意流程图;FIG. 4 is a schematic flowchart of a method for synchronizing white balance information according to another embodiment of the present invention; FIG.
图5是本发明另一实施例提供的一种白平衡信息同步装置的结构示意图;FIG. 5 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention; FIG.
图6是本发明另一实施例提供的一种白平衡信息同步方法的示意流程图;FIG. 6 is a schematic flowchart of a white balance information synchronization method according to another embodiment of the present invention; FIG.
图7是本发明另一实施例提供的一种白平衡信息同步装置的结构示意图;FIG. 7 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention; FIG.
图8是本发明另一实施例提供的一种白平衡信息同步装置的结构示意图;FIG. 8 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention; FIG.
图9是本发明另一实施例提供的一种白平衡信息同步装置的结构示意图。FIG. 9 is a schematic structural diagram of a white balance information synchronization apparatus according to another embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种白平衡信息同步方法的示意流程图,如图1所示,,包括:An embodiment of the present invention provides a schematic flowchart of a white balance information synchronization method, as shown in FIG. 1 , including:
101、获取第一图像和第二图像;上述第一图像为第一摄像头采集的图像,上述第二图像为第二摄像头采集的图像;101. Acquire a first image and a second image; the first image is an image captured by a first camera, and the second image is an image captured by a second camera;
上述第一摄像头和上述第二摄像头为同一个白平衡信息同步装置中的摄像头。上述白平衡信息同步装置可以是手机、平板电脑、摄像机、相机、笔记本电脑以及其他包含至少两个摄像头的拍摄装置。上述第一图像和上述第二图像分别为上述第一摄像头和上述第二摄像头在同一时刻拍摄同一场景得到的图像。上述第一摄像头和上述第二摄像头之间的距离很近,可以理解上述第一摄像头和上述第二摄像头对应的光源信息相同。举例来说,第一摄像头和第二摄像头为手机上的两个摄像头,如图2所示,图中左上方的两个圆形区域表示两个摄像头。The first camera and the second camera are cameras in the same white balance information synchronization device. The white balance information synchronization device may be a mobile phone, a tablet computer, a video camera, a camera, a notebook computer, and other imaging devices including at least two cameras. The first image and the second image are images obtained by capturing the same scene at the same time by the first camera and the second camera, respectively. The distance between the first camera and the second camera is very close, and it can be understood that the light source information corresponding to the first camera and the second camera is the same. For example, the first camera and the second camera are two cameras on the mobile phone. As shown in FIG. 2, two circular areas on the upper left side of the figure represent two cameras.
102、获得上述第一图像的白平衡增益,并确定上述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;上述第一参考坐标点为上述第一摄像头在上述目标坐标系对应的N个坐标点;102. Obtain a white balance gain of the first image, and determine a white coordinate gain of the first image in a first coordinate point corresponding to the target coordinate system and a first reference coordinate point; the first reference coordinate point is the first camera. N coordinate points corresponding to the above target coordinate system;
当前,常用的白平衡增益计算方法有灰色世界法、完美反射法、白点法、白区域法等。本发明实施例中,上述白平衡信息同步装置可以利用任一种白平衡增益计算方法计算上述第一图像的白平衡增益,获得上述第一图像的白平衡增益。本发明实施例不限定计算上述第一图像的白平衡增益的方法。举例来说,白平衡信息同步装置采用灰色世界法计算第一图像的白平衡增益,具体计算步骤如下:Currently, commonly used white balance gain calculation methods include gray world method, perfect reflection method, white point method, white area method and the like. In the embodiment of the present invention, the white balance information synchronization device may calculate the white balance gain of the first image by using any white balance gain calculation method to obtain the white balance gain of the first image. Embodiments of the present invention do not limit a method of calculating a white balance gain of the first image described above. For example, the white balance information synchronization device calculates the white balance gain of the first image by using the gray world method, and the specific calculation steps are as follows:
1)计算第一图像中各像素点R(红色)颜色分量的平均值、G(绿色)颜色分量的平均值以及B(绿色)颜色分量的平均值;1) calculating an average value of color components of each pixel point R (red) in the first image, an average value of G (green) color components, and an average value of B (green) color components;
假定第一图像包含N*M个像素点,每个像素点对应一个坐标点,(x,y)代表该第一图像中一个像素点的坐标点。该第一图像中坐标点为(x,y)的像素点的R颜色分量、G颜色分量和B颜色分量分别表示为Rsensor(x,y)、Gsensor(x,y)以及Bsensor(x,y),则可以采用如下公式计算R颜色分量的平均值:It is assumed that the first image contains N*M pixels, each pixel point corresponds to one coordinate point, and (x, y) represents a coordinate point of one pixel point in the first image. The R color component, the G color component, and the B color component of the pixel point whose coordinate point is (x, y) in the first image are represented as Rsensor(x, y), Gsensor(x, y), and Bsensor(x, y, respectively. ), you can use the following formula to calculate the average of the R color components:
Figure PCTCN2018085735-appb-000001
Figure PCTCN2018085735-appb-000001
其中,Ravg表示R颜色分量的平均值,即上述第一图像中各像素点R颜色分量的平均值。同理,可以计算得到G颜色分量的平均值Gavg和B颜色分量的平均值Bavg。Wherein, Ravg represents an average value of the R color components, that is, an average value of the color components of the respective pixel points R in the first image. Similarly, the average value Gavg of the G color component and the average value Bavg of the B color component can be calculated.
2)计算R颜色分量的增益和B颜色分量的增益,计算公式如下:2) Calculate the gain of the R color component and the gain of the B color component, and calculate the formula as follows:
Figure PCTCN2018085735-appb-000002
Figure PCTCN2018085735-appb-000002
Figure PCTCN2018085735-appb-000003
Figure PCTCN2018085735-appb-000003
其中,α为R颜色分量的增益,β为B颜色分量的增益。G颜色分量的增益为1。上述第一图像的白平衡增益可以表示为R颜色分量的增益:G颜色分量的增益:B颜色分量的增益,即α:1:β。本发明实施例中,上述白平衡信息同步装置中的AWB控制器可以对上述第一图像进行白平衡处理,得到上述第一图像的白平衡增益。Where α is the gain of the R color component and β is the gain of the B color component. The gain of the G color component is 1. The white balance gain of the first image described above can be expressed as the gain of the R color component: the gain of the G color component: the gain of the B color component, that is, α:1:β. In the embodiment of the present invention, the AWB controller in the white balance information synchronization device may perform white balance processing on the first image to obtain a white balance gain of the first image.
可选的,上述目标坐标系包含第一坐标轴和第二坐标轴,上述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,上述第二坐标轴对应的数值为第三颜色通道与上述第二颜色通道的比值。上述第一颜色通道为R通道,上述第二颜色通道为G通道,上述第三颜色通道为B通道。上述第一坐标轴对应的数值为R/G,上述第二坐标轴对应的数值为B/G。R/G为G通道的增益与R通道的增益的比值,即G颜色分量的增益与R颜色分量的增益的比值以及R颜色分量的平均值与G颜色分量的平均值的比值;B/G为G通道的增益与B通道的增益的比值,即G颜色分量的增益与B颜色分量的增益的比值以及B颜色分量的平均值与G颜色分量的平均值的比值。上述第一图像的白平衡增益可以表示为R通道的增益:G通道的增益:B通道的增益,上述第一图像的白平衡增益在上述目标坐标系对应的第一坐标点为(R/G,B/G),R/G为G通道的增益:R通道的增益,B/G为G通道的增益:B通道的增益。在实际应用中,通常先计算R/G和B/G,即图像中各像素点R颜色分量的平均值与G颜色分量的平均值的比值以及图像中各像素点B颜色分量的平均值与G颜色分量的平均值的比值;再计算R通道的增益:G通道的增益:B通道的增益,计算得到的(R/G,B/G)即为白平衡增益在目标坐标系对应的第一坐标点。举例来说,白平衡信息同步装置在获取第一图像后,可以计算该第一图像中各像素点R颜色分量的平均值Ravg、G颜色分量的平均值Gavg以及B颜色分量的平均值Bavg;计算Bavg/Gavg得到B/G,计算Ravg/Gavg得到R/G;根据该B/G和该R/G确定该第一图像的白平衡增益为G/R:1:G/B,即R通道增益:G通道增益:B通道增益为G/R:1:G/B。可以理解,在确定上述第一图像的白平衡增益之前,已确定R/G和B/G。上述白平衡信息同步装置在确定上述第一图像的白平衡增益后,可以获取上述第一图像的白平衡增益对应的R/G和B/G,得到上述第一坐标点。假定第一图像的白平衡增益为2:1:2,即R通道的增益:G通道的增益:B通道的增益为2:1:2;则第一图像的白平衡增益在目标坐标系对应的第一坐标点为(R/G,B/G),即(0.5,0.5)。本发明实施例中的目标坐标系包含但不限于上述坐标系,也可以是其他的坐标系。Optionally, the target coordinate system includes a first coordinate axis and a second coordinate axis, where the value corresponding to the first coordinate axis is a ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is The ratio of the three color channels to the second color channel described above. The first color channel is an R channel, the second color channel is a G channel, and the third color channel is a B channel. The value corresponding to the first coordinate axis is R/G, and the value corresponding to the second coordinate axis is B/G. R/G is the ratio of the gain of the G channel to the gain of the R channel, that is, the ratio of the gain of the G color component to the gain of the R color component and the ratio of the average of the R color component to the average of the G color component; B/G The ratio of the gain of the G channel to the gain of the B channel, that is, the ratio of the gain of the G color component to the gain of the B color component and the ratio of the average of the B color component to the average of the G color component. The white balance gain of the first image may be expressed as the gain of the R channel: the gain of the G channel: the gain of the B channel, and the white balance gain of the first image is the first coordinate point corresponding to the target coordinate system (R/G , B / G), R / G is the gain of the G channel: the gain of the R channel, B / G is the gain of the G channel: the gain of the B channel. In practical applications, R/G and B/G are usually calculated first, that is, the ratio of the average value of the R color components of each pixel in the image to the average value of the G color components and the average value of the color components of each pixel B in the image. The ratio of the average value of the G color component; recalculate the gain of the R channel: the gain of the G channel: the gain of the B channel, and the calculated (R/G, B/G) is the white balance gain corresponding to the target coordinate system. A coordinate point. For example, after acquiring the first image, the white balance information synchronization device may calculate an average value Ravg of the color components of each pixel point R in the first image, an average value Gavg of the G color component, and an average value Bavg of the B color component; Calculate Bavg/Gavg to obtain B/G, calculate Ravg/Gavg to obtain R/G; determine the white balance gain of the first image according to the B/G and the R/G as G/R: 1: G/B, ie R Channel gain: G channel gain: B channel gain is G/R: 1: G/B. It can be understood that R/G and B/G have been determined before determining the white balance gain of the first image described above. After determining the white balance gain of the first image, the white balance information synchronization device may acquire R/G and B/G corresponding to the white balance gain of the first image to obtain the first coordinate point. Assume that the white balance gain of the first image is 2:1:2, that is, the gain of the R channel: the gain of the G channel: the gain of the B channel is 2:1:2; then the white balance gain of the first image corresponds to the target coordinate system. The first coordinate point is (R/G, B/G), which is (0.5, 0.5). The target coordinate system in the embodiment of the present invention includes but is not limited to the above coordinate system, and may be other coordinate systems.
本发明实施例中,目标坐标系为二维坐标系,且每个坐标点对应一个白平衡增益,将白平衡增益的映射问题转换为坐标点的映射问题,可以准确地实现白平衡信息的同步。In the embodiment of the present invention, the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized. .
上述白平衡信息同步装置可以预存有上述第一参考坐标的信息。具体的,上述白平衡信息同步装置可以预存有上述第一参考坐标包含的各坐标点的位置信息以及各坐标点对应的白平衡增益。上述N为大于或者等于1的整数。上述第一参考坐标点可以为上述第一摄像头在上述目标坐标系对应的1个坐标点、2个坐标点、3个坐标点、4个坐标点等。上述 第一参考坐标点对应N个白平衡增益,上述第一参考坐标点包含的每个坐标点对应一个白平衡增益。The white balance information synchronizing device may pre-store information of the first reference coordinates. Specifically, the white balance information synchronization device may pre-store the position information of each coordinate point included in the first reference coordinate and the white balance gain corresponding to each coordinate point. The above N is an integer greater than or equal to 1. The first reference coordinate point may be one coordinate point, two coordinate points, three coordinate points, four coordinate points, and the like corresponding to the target coordinate system of the first camera. The first reference coordinate point corresponds to N white balance gains, and each of the coordinate points included in the first reference coordinate point corresponds to a white balance gain.
103、依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点,依据上述第二坐标点确定上述第二图像的白平衡增益;上述第二坐标点为上述第二图像的白平衡增益在上述目标坐标系对应的坐标点;上述第二参考坐标点为上述第二摄像头在上述目标坐标系对应的N个坐标点。103. Determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine a white balance gain of the second image according to the second coordinate point; the second coordinate point is the foregoing The white balance gain of the second image is a coordinate point corresponding to the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the target coordinate system of the second camera.
上述白平衡信息同步装置可以预存有上述第二参考坐标的信息。具体的,上述白平衡信息同步装置可以预存有上述第二参考坐标包含的各坐标点的位置信息以及各坐标点对应的白平衡增益。上述白平衡信息同步装置可以预存上述第一摄像头在目标坐标系对应的坐标点以及上述第二摄像头在目标坐标系对应的坐标点,其中,上述第一参考坐标点为上述第一摄像头在目标坐标系对应的坐标点中的一部分,上述第二参考坐标点为上述第二摄像头在目标坐标系对应的坐标点中的一部分。如图3所示,左半图中的各点为第一摄像头在目标坐标系对应的坐标点,第一参考坐标点为左半图中的部分坐标点;右半图中的各点为第二摄像头在目标坐标系对应的坐标点,第二参考坐标点为右半图中的部分坐标点。可选的,上述第一参考坐标点与N个参考组合在上述第一摄像头对应的N个白平衡增益相对应;上述第二参考坐标点与上述N个参考组合在上述第二摄像头对应的N个白平衡增益相对应。The white balance information synchronizing device may pre-store information of the second reference coordinates. Specifically, the white balance information synchronization device may prestore the position information of each coordinate point included in the second reference coordinate and the white balance gain corresponding to each coordinate point. The white balance information synchronizing device may pre-store the coordinate point corresponding to the target coordinate system of the first camera and the coordinate point corresponding to the second camera in the target coordinate system, wherein the first reference coordinate point is the target coordinate of the first camera And a part of the corresponding coordinate points, wherein the second reference coordinate point is a part of the coordinate points corresponding to the second camera in the target coordinate system. As shown in FIG. 3, each point in the left half is a coordinate point corresponding to the target coordinate system of the first camera, and the first reference coordinate point is a partial coordinate point in the left half of the figure; each point in the right half is the first The two cameras are at coordinate points corresponding to the target coordinate system, and the second reference coordinate points are partial coordinate points in the right half of the figure. Optionally, the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; and the second reference coordinate point and the N reference combinations are combined with the N corresponding to the second camera. The white balance gain corresponds.
参考组合为光源和色块的组合。上述N个参考组合中任意两个参考组合之间对应的光源和/或色块不同。举例来说,一个参考组合对应的光源可以为D75、D65、D55、D50、CWF、TL84、U30、H、A等多种标准光源中的任意一种;一个参考组合对应的色块可以为任意标准色卡中的任一色块,也可以是其他色块。例如,一个参考组合对应D65标准光源下爱色丽标准色块卡中的一个色块。参考组合对应的光源和色块不仅限于以上举例;以上举例不应理解为对本发明实施例的唯一性限定。The reference combination is a combination of a light source and a color patch. The corresponding light source and/or color block between any two of the above N reference combinations is different. For example, the light source corresponding to a reference combination may be any one of a plurality of standard light sources such as D75, D65, D55, D50, CWF, TL84, U30, H, A; and the color block corresponding to one reference combination may be any Any color block in the standard color card can also be other color blocks. For example, one reference combination corresponds to one of the X-Rite standard color block cards under the D65 standard light source. The light source and color block corresponding to the reference combination are not limited to the above examples; the above examples should not be construed as limiting the uniqueness of the embodiments of the present invention.
上述白平衡同步装置可以预置有上述N个参考组合与上述第一参考坐标点的对应关系,上述N个参考组合中的每个参考组合对应上述第一参考坐标点中的一个坐标点。上述白平衡同步装置可以预置有上述N个参考组合与上述第二参考坐标点的对应关系,上述N个参考组合中的每个参考组合对应上述第二参考坐标点中的一个坐标点。一个参考组合在上述第一摄像头对应的白平衡增益可以理解为上述第一摄像头在该参考组合对应的光源下拍摄该参考组合对应的色块得到的图像所对应的白平衡增益。同理,一个参考组合在上述第二摄像头对应的白平衡增益可以理解为上述第二摄像头在该参考组合对应的光源下拍摄该参考组合对应的色块得到的图像所对应的白平衡增益。假定第一摄像头在标准光源D65下拍摄某个色块得到的图像进行白平衡处理得到的白平衡增益为2:1:2,第一参考组合对应标准光源D65和该色块;则该第一参考组合在第一摄像头对应的白平衡增益为2:1:2。本发明实施例提供了一种确定参考组合在第一摄像头对应的白平衡增益的具体举例:The white balance synchronization device may preset a correspondence between the N reference combinations and the first reference coordinate point, and each of the N reference combinations corresponds to one of the first reference coordinate points. The white balance synchronization device may preset a correspondence between the N reference combinations and the second reference coordinate point, and each of the N reference combinations corresponds to one of the second reference coordinate points. The white balance gain corresponding to the first camera in a reference combination can be understood as the white balance gain corresponding to the image obtained by the first camera capturing the color block corresponding to the reference combination under the light source corresponding to the reference combination. Similarly, the white balance gain corresponding to the second camera in a reference combination can be understood as the white balance gain corresponding to the image obtained by the second camera capturing the color block corresponding to the reference combination under the light source corresponding to the reference combination. Assuming that the image obtained by the first camera shooting a certain color block under the standard light source D65 performs white balance processing, the white balance gain is 2:1:2, and the first reference combination corresponds to the standard light source D65 and the color block; The reference combination has a white balance gain of 2:1:2 corresponding to the first camera. An embodiment of the present invention provides a specific example of determining a white balance gain corresponding to a reference combination in a first camera:
1)利用第一摄像头在D75、D65、D55、D50、CWF、TL84、U30、H、A等标准光源下拍摄爱色丽标准色卡,得到Q个图像;1) Using the first camera to shoot the X-Rite standard color card under standard light sources such as D75, D65, D55, D50, CWF, TL84, U30, H, A, etc., to obtain Q images;
通常,爱色丽标准色卡中包含24个色块,每个色块对应该爱色丽标准色卡中的一个矩形区域。假定第一摄像头在5个标准光源下拍摄爱色丽标准色卡,则得到5个图像。Typically, the X-Rite standard color card contains 24 color patches, each of which corresponds to a rectangular area in the standard color card. Assuming that the first camera shoots the X-Rite standard color card under five standard light sources, five images are obtained.
2)确定上述Q个图像中每个色块对应的图像区域,并计算每个图像区域中各像素点R颜色分量的平均值Ravg、G颜色分量的平均值Gavg以及B颜色分量的平均值Bavg;2) determining an image region corresponding to each of the Q images, and calculating an average value Ravg of the R component of each pixel in each image region, an average value Gavg of the G color component, and an average value Bavg of the B color component ;
假定第一摄像头在5个标准光源下拍摄爱色丽标准色卡得到5个图像,该爱色丽标准色卡包含24个色块,则得到的5个图像中每个图像可以确定24个图像区域。每个图像区域对应一个标准光源和色块的组合,即每个图像区域对应一个参考组合。假定某个图像区域为第一摄像头在D75光源下拍摄爱色丽标准色卡得到的图像中第一色块对应的图像区域,则该图像区域对应D75和第一色块的组合。可以利用公式(1)计算每个图像区域的Gavg。同理,可以计算得到每个图像区域的Ravg和每个图像区域的Bavg。Suppose the first camera shoots 5 colors of the X-Rite standard color card under 5 standard light sources. The X-Rite standard color card contains 24 color blocks, and 24 images can be determined for each of the obtained 5 images. region. Each image area corresponds to a combination of a standard light source and a color block, that is, each image area corresponds to one reference combination. Assuming that an image area is an image area corresponding to the first color block in the image obtained by the first camera shooting the X-Rite standard color card under the D75 light source, the image area corresponds to the combination of D75 and the first color block. The Gavg of each image area can be calculated using the formula (1). Similarly, Ravg of each image area and Bavg of each image area can be calculated.
可选的,可以确定上述Q个图像中部分色块对应的图像区域,并计算上述部分色块对应的图像区域中各像素点R颜色分量的平均值Ravg、G颜色分量的平均值Gavg以及B颜色分量的平均值Bavg。Optionally, an image region corresponding to a partial color block of the Q images may be determined, and an average value Ravg of the color components of each pixel point R in the image region corresponding to the partial color block, an average value Gagg of the G color component, and B are calculated. The average value of the color components is Bavg.
3)计算每个图像区域的Bavg/Gavg得到每个图像区域对应的B/G,计算每个图像区域的Ravg/Gavg得到每个图像区域对应的R/G;确定每个图像区域在上述第一摄像头对应的白平衡增益;3) Calculate Bavg/Gavg of each image area to obtain B/G corresponding to each image area, calculate Ravg/Gavg of each image area to obtain R/G corresponding to each image area; determine each image area in the above a white balance gain corresponding to a camera;
假定一个图像区域对应R/G和B/G,则该图像区域对应的白平衡增益为G/R:1:G/B,即R通道增益:G通道增益:B通道增益为G/R:1:G/B。Assuming an image area corresponds to R/G and B/G, the white balance gain corresponding to the image area is G/R: 1: G/B, ie R channel gain: G channel gain: B channel gain is G/R: 1: G/B.
4)确定一个参考组合在第一摄像头对应的白平衡增益为该参考组合对应的图像区域在第一摄像头对应的白平衡增益。4) Determining a white balance gain corresponding to the first camera in a reference combination is a white balance gain corresponding to the image area corresponding to the reference combination in the first camera.
举例来说,第一摄像头在7个标准光源下拍摄爱色丽标准色卡得到7个图像,该爱色丽标准色卡包含24个色块,得到的7个图像中每个图像可以确定24个图像区域,可以确定168个图像区域,每个图像区域对应一个标准光源和色块的组合,即参考组合;计算该168个图像区域中每个图像区域的白平衡增益,得到该168个图像区域在第一摄像头对应的168个白平衡增益;一个参考组合在第一摄像头对应的白平衡增益为该参考组合对应的图像区域在第一摄像头对应的白平衡增益。这样可以确定该7个标准光源和该24个色块对应的168个参考组合中每个参考组合在第一摄像头对应的白平衡增益。同理,可以确定参考组合在第二摄像头对应的白平衡增益。For example, the first camera captures 7 colors of the X-Rite standard color card under 7 standard light sources, and the X-Rite standard color card contains 24 color blocks, and each of the obtained 7 images can be determined 24 168 image areas, each image area corresponding to a combination of a standard light source and a color block, that is, a reference combination; calculating a white balance gain of each of the 168 image areas to obtain the 168 images The area corresponds to 168 white balance gains of the first camera; the white balance gain corresponding to the first camera in the reference camera is the white balance gain corresponding to the image area corresponding to the reference combination in the first camera. In this way, the white balance gain corresponding to the first camera in each of the 168 reference combinations corresponding to the 7 standard light sources and the 24 color patches can be determined. Similarly, the white balance gain corresponding to the reference camera in the second camera can be determined.
通过上述方式可以快速地确定参考组合在第一摄像头对应的白平衡增益以及在第二摄像头对应的白平衡增益。参考组合在第一摄像头对应的白平衡增益在目标坐标系对应的坐标点为上述第一摄像头在目标坐标系对应的坐标点;参考组合在上述第二摄像头对应的白平衡增益在目标坐标系对应的坐标点为上述第二摄像头在目标坐标系对应的坐标点。上述N个参考组合在上述第一摄像头对应的N个白平衡增益在目标坐标系对应的N个坐标点为上述第一参考坐标点。上述N个参考组合在上述第二摄像头对应的N个白平衡增益在目标坐标系对应的N个坐标点为上述第二参考坐标点。也就是说,通过上述N个参考组合在上述第一摄像头对应的N个白平衡增益可以确定上述第一参考坐标点;通过上述N个参考组合在上述第二摄像头对应的N个白平衡增益可以确定上述第二参考坐标点。In the above manner, the white balance gain corresponding to the first camera and the white balance gain corresponding to the second camera can be quickly determined. The coordinate point corresponding to the white balance gain corresponding to the first camera in the target camera is the coordinate point corresponding to the first camera in the target coordinate system; the white balance gain corresponding to the second camera in the reference camera corresponds to the target coordinate system. The coordinate point is the coordinate point corresponding to the second camera in the target coordinate system. The N reference balances of the N reference combinations in the first camera are N coordinate points corresponding to the target coordinate system, and are the first reference coordinate points. The N reference balances of the N reference combinations in the second camera are N coordinate points corresponding to the target coordinate system, and are the second reference coordinate points. That is, the first reference coordinate points may be determined by the N reference balances corresponding to the N first white balance gains of the first camera; the N white balance gains corresponding to the second camera by the N reference combinations may be The above second reference coordinate point is determined.
由于上述第一摄像头和上述第二摄像头拍摄的是同一场景,且上述第一摄像头和上述第二摄像头处于同一区域,可以理解上述第一图像和上述第二图像对应的光源信息相同;每个光源信息对应一个参考组合,即一个参考组合可以表示一种光源信息。一个参考组合 在上述第二摄像头对应的白平衡增益可以理解为上述第二摄像头在该参考组合对应的光源信息下拍摄的图像所对应的白平衡增益。同理,一个参考组合在上述第一摄像头对应的白平衡增益可以理解为上述第一摄像头在该参考组合对应的光源信息下拍摄的图像所对应的白平衡增益。假定上述第一图像和上述第二图像对应的光源信息与第一色块相对应,可以认为上述第一坐标点为上述第一色块在上述第一摄像头对应的白平衡增益,上述第二坐标点为上述第一色块在上述第二摄像头对应的白平衡增益。Since the first camera and the second camera capture the same scene, and the first camera and the second camera are in the same area, it can be understood that the light source information corresponding to the first image and the second image is the same; each light source The information corresponds to a reference combination, that is, a reference combination can represent a kind of light source information. A reference combination The white balance gain corresponding to the second camera described above can be understood as the white balance gain corresponding to the image captured by the second camera under the light source information corresponding to the reference combination. Similarly, the white balance gain corresponding to the first camera in a reference combination can be understood as the white balance gain corresponding to the image captured by the first camera under the light source information corresponding to the reference combination. Assuming that the light source information corresponding to the first image and the second image corresponds to the first color block, the first coordinate point may be regarded as a white balance gain corresponding to the first color block of the first color block, and the second coordinate The point is the white balance gain corresponding to the first color block in the second camera.
上述第一坐标点和上述第二坐标点可以理解为同一个参考组合分别在上述第一摄像头和上述第二摄像头对应的坐标点。上述第一参考坐标点和上述第二参考坐标点分别为上述N个参考组合在上述第一摄像头和上述第二摄像头对应的坐标点。上述第一坐标点与上述第一参考坐标点相对应;上述第二参考坐标点与上述第一参考坐标点相对应。上述第一坐标点和上述第一参考坐标点之间的映射关系与上述第二坐标点和上述第二参考坐标点之间的映射关系相同或者相似。可以理解,上述第一坐标点和上述第一参考坐标点之间存在至少一种映射关系;利用上述至少一种映射关系和上述第一参考坐标点可以计算得到上述第一坐标点;利用上述至少一种映射关系和上述第二参考坐标点可以计算得到上述第二坐标点,即上述第二图像的白平衡增益在上述目标坐标系对应的坐标点。具体的映射关系以及确定上述第二坐标点的方法后续实施例将会有详细的说明。The first coordinate point and the second coordinate point can be understood as the coordinate points corresponding to the first reference camera and the second camera respectively. The first reference coordinate point and the second reference coordinate point are respectively coordinate points corresponding to the N reference combinations in the first camera and the second camera. The first coordinate point corresponds to the first reference coordinate point; the second reference coordinate point corresponds to the first reference coordinate point. The mapping relationship between the first coordinate point and the first reference coordinate point is the same as or similar to the mapping relationship between the second coordinate point and the second reference coordinate point. It can be understood that there is at least one mapping relationship between the first coordinate point and the first reference coordinate point; the first coordinate point can be calculated by using the at least one mapping relationship and the first reference coordinate point; A mapping relationship and the second reference coordinate point may calculate the second coordinate point, that is, the white balance gain of the second image is a coordinate point corresponding to the target coordinate system. The specific mapping relationship and the method for determining the second coordinate point will be described in detail in the following embodiments.
本发明实施例中,在获得上述第一图像的白平衡增益后,依据上述第一图像的白平衡增益在目标坐标系对应的第一坐标点、上述第一参考坐标点和上述第二参考坐标点确定上述第二图像的白平衡增益;可以准确地确定第二图像的白平衡增益,计算复杂度较低。In the embodiment of the present invention, after obtaining the white balance gain of the first image, the first coordinate point corresponding to the target coordinate system, the first reference coordinate point, and the second reference coordinate according to the white balance gain of the first image The point determines the white balance gain of the second image; the white balance gain of the second image can be accurately determined, and the computational complexity is low.
本发明实施例还提供了第一坐标点和第一参考坐标点之间的关系:上述第一坐标点位于上述第一参考坐标点在上述目标坐标系对应的闭合区域,上述N大于或者等于3。The embodiment of the present invention further provides a relationship between the first coordinate point and the first reference coordinate point: the first coordinate point is located in the closed region corresponding to the first reference coordinate point in the target coordinate system, and the N is greater than or equal to 3 .
上述第一参考坐标点在上述目标坐标系对应的闭合区域包含上述第一坐标点。上述第一参考坐标点在上述目标坐标系对应的闭合区域为上述第一参考坐标点中各坐标点的连线所组成的闭合区域。可选的,上述闭合区域为上述目标坐标系中包含上述第一坐标点的最小区域,即面积最小的闭合区域。本发明实施例中,依据第一坐标点和第一参考坐标点之间的映射关系与第二坐标点和第二参考坐标点之间的映射关系相同或相似的特点,利用上述第二参考坐标点和目标映射关系确定上述第二坐标点,上述目标映射关系为上述第一坐标点与上述第一参考坐标点之间的映射关系。可以理解,上述第一参考坐标点中各坐标点与上述第一坐标点越接近,第一映射关系与第二映射关系越相似,得到的上述第二坐标点越精确,上述第一映射关系为上述第一坐标点与上述第一参考坐标点之间的映射关系,上述第二映射关系为上述第二坐标点与上述第二参考坐标点之间的映射关系。上述第一参考坐标点与上述第一坐标点距离较近。因此,通过上述第一参考坐标点可以准确地确定第二坐标点。The first reference coordinate point includes the first coordinate point in a closed region corresponding to the target coordinate system. The closed area corresponding to the first reference coordinate point in the target coordinate system is a closed area composed of a line connecting the coordinate points in the first reference coordinate point. Optionally, the closed area is a minimum area in the target coordinate system that includes the first coordinate point, that is, a closed area with the smallest area. In the embodiment of the present invention, the second reference coordinate is utilized according to the mapping relationship between the first coordinate point and the first reference coordinate point and the same or similar mapping relationship between the second coordinate point and the second reference coordinate point. The point and target mapping relationship determines the second coordinate point, and the target mapping relationship is a mapping relationship between the first coordinate point and the first reference coordinate point. It can be understood that the closer the coordinate points in the first reference coordinate point are to the first coordinate point, the more similar the first mapping relationship is to the second mapping relationship, and the more accurate the obtained second coordinate point is, the first mapping relationship is a mapping relationship between the first coordinate point and the first reference coordinate point, wherein the second mapping relationship is a mapping relationship between the second coordinate point and the second reference coordinate point. The first reference coordinate point is closer to the first coordinate point. Therefore, the second coordinate point can be accurately determined by the first reference coordinate point described above.
本发明实施例限定了第一坐标点和第一参考坐标点在目标坐标系中的位置关系,可以准确地确定第二坐标点,计算简单。The embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and the second coordinate point can be accurately determined, and the calculation is simple.
本发明实施例还提供了第一参考坐标点和第二参考坐标点的具体举例:上述N为3;The embodiment of the present invention further provides a specific example of the first reference coordinate point and the second reference coordinate point: the above N is 3;
上述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;上述第一德洛内三角网与第一点集相对应,上述第一点集为上述第一摄像头在上述目标坐标系对应的坐标 点的集合;上述第一参考坐标点包含在上述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera a set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first point set;
上述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,上述第二德洛内三角网与第二点集相对应,上述第二点集为上述第二摄像头在上述目标坐标系对应的坐标点的集合;上述第二参考坐标点包含在上述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the second camera A set of coordinate points corresponding to the target coordinate system; the second reference coordinate point is included in the second set of points.
上述第一点集包含的坐标点之间存在三角剖分关系;上述第二点集包含的坐标点之间存在三角剖分关系。上述第一德洛内三角网与第一点集相对应可以是上述第一点集包含的坐标点为上述第一德洛内三角网中的顶点;上述第二德洛内三角网与第二点集相对应可以是上述第二点集包含的坐标点为上述第二德洛内三角网中的顶点。可以理解,上述第一坐标点在上述第一点集中对应的3个坐标点是唯一的,即上述第一参考坐标点是唯一的;上述第二坐标点在上述第二点集中对应的3个坐标点是唯一的,即上述第二参考坐标点是唯一的。如图3所示,左半图为第一德洛内三角网,第一坐标点位于第一三角形中,即左半图中的灰色三角形;右半图为第二德洛内三角网,右半图中的灰色三角形的3个顶点为第二参考坐标点。There is a triangulation relationship between coordinate points included in the first point set; and a triangulation relationship exists between the coordinate points included in the second point set. The first Delaughan triangulation corresponding to the first point set may be that the coordinate point included in the first point set is a vertex in the first Delaunay triangulation; the second Delon triangulation and the second The point set correspondingly may be that the coordinate points included in the second point set are the vertices in the second Delauna network. It can be understood that the first coordinate point is unique in the three coordinate points corresponding to the first point set, that is, the first reference coordinate point is unique; and the second coordinate point is corresponding to the third point set. The coordinate points are unique, that is, the second reference coordinate point described above is unique. As shown in Fig. 3, the left half is the first Delauna triangulation, the first coordinate point is located in the first triangle, that is, the gray triangle in the left half of the figure; the right half is the second Delonian triangle, right The three vertices of the gray triangle in the half graph are the second reference coordinate points.
本发明实施例中,可以确定上述第一德洛内三角网中包含上述第一坐标点的三角形区域;确定该三角形区域对应的3个顶点为上述第一参考坐标点。In the embodiment of the present invention, the triangular region including the first coordinate point in the first Delauna network may be determined; and the three vertices corresponding to the triangular region are determined as the first reference coordinate point.
可以理解,通过上述第一坐标点可以快速地确定第一参考坐标点,且确定的上述第一参考坐标点是唯一的。上述第一参考坐标点包含的3个坐标点可以准确地映射为上述第一坐标点,计算简单。It can be understood that the first reference coordinate point can be quickly determined by the first coordinate point described above, and the determined first reference coordinate point is unique. The three coordinate points included in the first reference coordinate point can be accurately mapped to the first coordinate point, and the calculation is simple.
本发明实施例中,第一参考坐标点和第二参考坐标点均包含3个坐标点,可以降低计算的复杂度。In the embodiment of the present invention, the first reference coordinate point and the second reference coordinate point each include three coordinate points, which can reduce the computational complexity.
本发明实施例还提供了一种第一点集和第二点集的具体举例,如下:上述第一点集与M个参考组合在上述第一摄像头对应的M个白平衡增益相对应,上述第二点集与上述M个参考组合在上述第二摄像头对应的M个白平衡增益相对应,上述M大于或等于上述N;The embodiment of the present invention further provides a specific example of the first point set and the second point set, where the first point set and the M reference combinations correspond to the M white balance gains corresponding to the first camera, and the foregoing The second point set and the M reference combinations correspond to the M white balance gains corresponding to the second camera, and the M is greater than or equal to the above N;
上述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the above M reference combinations is different.
上述第一点集包含上述M个参考组合在上述第一摄像头对应的M个白平衡增益在上述目标坐标系对应的M个坐标点;上述第二点集包含上述M个参考组合在上述第二摄像头对应的M个白平衡增益在上述目标坐标系对应的M个坐标点。上述白平衡同步装置可以预置有上述第一点集中各坐标点的信息以及上述第一点集中各坐标点之间的三角剖分关系;也可以预置有上述第二点集包含的各坐标点的信息以及上述第二点集中各坐标点之间的三角剖分关系。依据上述预置的信息上述白平衡同步装置可以快速地确定第一坐标点对应的第一参考坐标点以及第二参考坐标点。The first point set includes the M coordinate balances corresponding to the M cameras corresponding to the M coordinate points corresponding to the target coordinate system; the second point set includes the M reference combinations in the second The M white balance gains corresponding to the camera are M coordinate points corresponding to the target coordinate system. The white balance synchronizing device may preset information of each coordinate point in the first point set and a triangulation relationship between the coordinate points in the first point set; or may preset preset coordinates included in the second point set The information of the points and the triangulation relationship between the coordinate points in the second point set above. According to the preset information, the white balance synchronization device can quickly determine the first reference coordinate point and the second reference coordinate point corresponding to the first coordinate point.
可以理解,上述第一点集包含的坐标点和上述第二点集包含的坐标点可以是一一对应的。本发明实施例中,第一点集和第二点集对应相同的参考组合;可以准确、快速地确定第一参考坐标点对应的第二参考坐标点。It can be understood that the coordinate points included in the first point set and the coordinate points included in the second point set may be one-to-one correspondence. In the embodiment of the present invention, the first point set and the second point set correspond to the same reference combination; the second reference coordinate point corresponding to the first reference coordinate point may be accurately and quickly determined.
进一步地,本发明实施例还提供了一种确定第二参考坐标点的方法,具体如下:上述第一点集包含的M个坐标点和上述第二点集包含的M个坐标点均对应M个目标序号,上述M个目标序号与上述M个参考组合一一对应;Further, the embodiment of the present invention further provides a method for determining a second reference coordinate point, which is specifically as follows: the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to M Target numbers, the above M target numbers are in one-to-one correspondence with the above M reference combinations;
上述依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点之 前,上述方法还包括:The method further includes: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
确定上述第一参考坐标点对应的3个目标序号;Determining three target serial numbers corresponding to the first reference coordinate point;
从上述第二点集中获取上述3个目标序号对应的3个坐标点,得到上述第二参考坐标点。The three coordinate points corresponding to the three target numbers are acquired from the second point set to obtain the second reference coordinate point.
可以理解,上述第一点集包含的M个坐标点和上述第二点集包含的M个坐标点均对应上述M个参考组合。由于上述M个目标序号与上述M个参考组合一一对应,上述第一点集包含的M个坐标点对应的M个目标序号和上述第二点集包含的M个坐标点对应的M个目标序号相同。举例来说,第一点集和第二点集均包含28个坐标点,该第一点集包含的28个坐标点对应的28个目标序号与该第二点集包含的28个坐标点对应的28个目标序号均为1到28。假定第一参考坐标点对应的3个目标序号为1、3、5,则确定第二点集中目标序号为1、3、5的坐标点为第二参考坐标点对应的坐标点。It can be understood that the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to the M reference combinations. The M target numbers corresponding to the M reference combinations are in one-to-one correspondence, and the M target numbers corresponding to the M coordinate points included in the first point set and the M target points corresponding to the M coordinate points included in the second point set are respectively The serial number is the same. For example, the first point set and the second point set each include 28 coordinate points, and the 28 target numbers corresponding to the 28 coordinate points included in the first point set correspond to the 28 coordinate points included in the second point set. The 28 target numbers are all 1 to 28. Assuming that the three target numbers corresponding to the first reference coordinate point are 1, 3, and 5, it is determined that the coordinate point of the target number of the second point set is 1, 3, and 5 is the coordinate point corresponding to the second reference coordinate point.
本发明实施例中,可以快速地确定第一参考坐标点对应的第二参考坐标点,实现简单。In the embodiment of the present invention, the second reference coordinate point corresponding to the first reference coordinate point can be quickly determined, which is simple to implement.
本发明实施例还提供了一种确定第一参考坐标点的方法,具体如下:上述确定上述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点包括:The embodiment of the present invention further provides a method for determining a first reference coordinate point, which is specifically as follows: determining that the white balance gain of the first image in the first coordinate point and the first reference coordinate point corresponding to the target coordinate system include:
确定上述第一图像的白平衡增益在目标坐标系对应的上述第一坐标点;Determining, that the white balance gain of the first image is at the first coordinate point corresponding to the target coordinate system;
确定上述第一德洛内三角网中第一三角形的3个顶点为上述第一参考坐标点,上述第一三角形在上述目标坐标系对应的区域包含上述第一坐标点。Determining that the three vertices of the first triangle in the first Delauna network are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
上述确定上述第一德洛内三角网中第一三角形的3个顶点为上述第一参考坐标点可以是确定上述第一坐标点所处的三角形区域;确定上述三角形区域对应的3个顶点为上述第一参考坐标点。白平衡信息同步装置可以预置有上述第一德洛内三角网中各个三角形区域对应的顶点的信息,即每个三角形区域对应的3个顶点;也可以预置有上述第一德洛内三角网中各个三角形区域所包含的坐标点的信息。上述白平衡信息同步装置可以根据上述第一坐标点的位置信息确定上述第一坐标点对应的三角形区域,进而确定该三角形区域对应的3个顶点为上述第一参考坐标点。假定第一德洛内三角网包含24个三角形区域,第一坐标点处于第3个三角形区域,则确定该第3个三角形区域对应的3个顶点为第一参考坐标点。The determining that the three vertices of the first triangle in the first Delauna network are the first reference coordinate point may be a triangle region in which the first coordinate point is determined; determining three vertices corresponding to the triangular region is the foregoing First reference coordinate point. The white balance information synchronization device may preset information of vertices corresponding to the respective triangle regions in the first Delauna network, that is, three vertices corresponding to each triangle region; or the first Delauna triangle may be preset Information about the coordinate points contained in each triangle area in the net. The white balance information synchronizing device may determine the triangular region corresponding to the first coordinate point according to the position information of the first coordinate point, and further determine that the three vertices corresponding to the triangular region are the first reference coordinate point. Assuming that the first Delauna network includes 24 triangular regions, and the first coordinate point is in the third triangular region, it is determined that the three vertices corresponding to the third triangular region are the first reference coordinate points.
本发明实施例中,可以快速、准确地确定第一坐标点对应的第一参考坐标点,实现简单。In the embodiment of the present invention, the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, and the implementation is simple.
本发明实施例还提供了一种确定第二参考坐标点的方法,具体如下:上述依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点之前,上述方法还包括:The embodiment of the present invention further provides a method for determining a second reference coordinate point, which is specifically as follows: before the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the foregoing method Also includes:
确定上述第二德洛内三角网中第二三角形的3个顶点为上述第二参考坐标点,上述第二三角形的3个顶点对应的3个参考组合与上述第一三角形的3个顶点对应的3个参考组合相同,上述第一德洛内三角网和上述第二德洛内三角网对应的参考组合相同。Determining that the three vertices of the second triangle in the second Delauna network are the second reference coordinate points, and the three reference combinations corresponding to the three vertices of the second triangle correspond to the three vertices of the first triangle The three reference combinations are the same, and the reference combinations corresponding to the first Delonian triangulation and the second Delaughan triangulation are the same.
具体的,可以先确定上述第一参考坐标点对应的3个参考组合;再确定这3个参考组合在上述第二德洛内三角网中对应的3个顶点为上述第二参考坐标点。假定第二德洛内三角网中的各点与第一德洛内三角网中的各点均对应第一色块到第二十色块,第二参考坐标点对应第一色块、第二色块以及第五色块,则第二参考坐标点为第二德洛内三角网中第一色块、第二色块以及第五色块对应的3个顶点。Specifically, the three reference combinations corresponding to the first reference coordinate point may be determined first; and then the corresponding three reference vertices in the second Delauna network are determined as the second reference coordinate point. It is assumed that each point in the second Delauna network corresponds to the first color block to the twentieth color block in each point in the first Delauna network, and the second reference coordinate point corresponds to the first color block and the second The color block and the fifth color block, the second reference coordinate point is the first color block, the second color block, and the three vertices corresponding to the fifth color block in the second Delauna network.
本发明实施例中,可以快速、准确地确定第一参考坐标点对应的第二参考坐标点。In the embodiment of the present invention, the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
本发明实施例还提供了一种依据第一坐标点、第一参考坐标点和第二参考坐标点确定第二坐标点的方法,具体如下:上述依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点包括:The embodiment of the present invention further provides a method for determining a second coordinate point according to a first coordinate point, a first reference coordinate point, and a second reference coordinate point, which is specifically as follows: according to the first coordinate point, the first reference coordinate The point and the second reference coordinate point determine the second coordinate point including:
依据如下公式计算中间参数:Calculate the intermediate parameters according to the following formula:
D00=sum(V0.*V0);(4)D00=sum(V0.*V0);(4)
D01=sum(V0.*V1);(5)D01=sum(V0.*V1);(5)
D02=sum(V0.*V2);(6)D02=sum(V0.*V2);(6)
D11=sum(V1.*V1);(7)D11=sum(V1.*V1);(7)
D12=sum(V1.*V2);(8)D12=sum(V1.*V2);(8)
u=(D11*D02-D01*D12)/(D00*D11-D01*D01);(9)u=(D11*D02-D01*D12)/(D00*D11-D01*D01);(9)
v=(D00*D12-D01*D02)/(D00*D11-D01*D01);(10)v=(D00*D12-D01*D02)/(D00*D11-D01*D01);(10)
其中,V0=C-A,V1=B-A,V2=P-A,上述P为上述第一坐标点,上述C、上述B、上述A分别为上述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;上述u和上述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinate points included in the first reference coordinate point; , .* symbol indicates the multiplication of the corresponding elements between the vectors; the above u and the above v are intermediate parameters;
依据如下公式计算上述第二坐标点:Calculate the above second coordinate point according to the following formula:
Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;(11)Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;(11)
Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;(12)Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;(12)
其中,上述C’、上述B’、上述A’分别为上述第二参考坐标点包含的三个坐标点,上述A’与上述A对应相同的参考组合,上述B’与上述B对应相同的参考组合,上述C’与上述C对应相同的参考组合;上述.x表示第一坐标轴的坐标,上述.y表示第二坐标轴的坐标;上述第二坐标点为(Q.x,Q.y)。The C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' corresponds to the same reference combination as the A, and the B' corresponds to the same reference as the B. In combination, the above C' corresponds to the same reference combination as the above C; the above x represents the coordinates of the first coordinate axis, the above y represents the coordinates of the second coordinate axis, and the second coordinate point is (Qx, Qy).
上述u和上述v为通过上述第一坐标点和上述第一参考坐标点计算得到的中间参数。从公式(8)和公式(9)可以看出,上述u、上述v以及上述(1-u-v)可以理解为上述第二参考坐标点包含的3个坐标点分别对应的加权系数。本发明实施还可以通过其他方式确定第二参考坐标点对应的加权系数,即利用第一参考坐标点和第一坐标点通过其他的算法确定第二参考坐标点对应的加权系数。上述计算方法为三角形插值方法,还可以通过其他算法依据上述第一坐标点、上述第一参考坐标点以及上述第二参考坐标点确定上述第二坐标点。本发明实施例中,还可以通过其他算法利用上述第一坐标点和上述第一参考坐标点之间的映射关系,确定上述第二坐标点和上述第二参考坐标点之间的映射关系,进而确定上述第二坐标点。上述计算第二坐标点的方法仅是一个举例,以上举例不应理解为对本申请实施例的唯一性限定。上述第一参考坐标点包含的坐标点的个数和上述第二参考坐标点包含的坐标点的个数不限于3个,也可以是4个、2个等。假定第一参考坐标点包含4个坐标点,这4个坐标点对应4个加权系数;则第二参考坐标点利用这4个加权系数以及其包含的4个坐标点可以得到第二坐标点,具体计算公式与公式(8)和公式(9)相同。The above u and the above v are intermediate parameters calculated by the first coordinate point and the first reference coordinate point. It can be seen from the formula (8) and the formula (9) that the above u, the above v, and the above (1-u-v) can be understood as the weighting coefficients respectively corresponding to the three coordinate points included in the second reference coordinate point. The implementation of the present invention may further determine the weighting coefficient corresponding to the second reference coordinate point by using other methods, that is, determining the weighting coefficient corresponding to the second reference coordinate point by using another algorithm by using the first reference coordinate point and the first coordinate point. The calculation method is a triangular interpolation method, and the second coordinate point may be determined by other algorithms according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point. In the embodiment of the present invention, the mapping relationship between the first coordinate point and the first reference coordinate point may be determined by using another algorithm to determine a mapping relationship between the second coordinate point and the second reference coordinate point, and further The second coordinate point is determined. The above method for calculating the second coordinate point is only an example, and the above examples are not to be construed as limiting the uniqueness of the embodiments of the present application. The number of coordinate points included in the first reference coordinate point and the number of coordinate points included in the second reference coordinate point are not limited to three, and may be four or two. It is assumed that the first reference coordinate point includes four coordinate points, and the four coordinate points correspond to four weighting coefficients; then the second reference coordinate point can obtain the second coordinate point by using the four weighting coefficients and the four coordinate points included therein. The specific calculation formula is the same as formula (8) and formula (9).
本发明实施中,可以快速、准确地计算出第二坐标点,计算复杂度较低。In the implementation of the invention, the second coordinate point can be calculated quickly and accurately, and the computational complexity is low.
本发明实施例提供了另一种白平衡信息同步方法的示意流程图,如图4所示,包括:An embodiment of the present invention provides a schematic flowchart of another method for synchronizing white balance information, as shown in FIG. 4, including:
401、白平衡信息同步装置的第一摄像头和第二摄像头分别采集第一图像和第二图像;401. The first camera and the second camera of the white balance information synchronization device respectively acquire the first image and the second image;
402、获取上述第一图像的白平衡增益;402. Obtain a white balance gain of the first image.
如图5所示,白平衡信息同步装置可以包含第一摄像头、第一摄像头以及图像信号处理器,图像信号处理器包含AWB控制器和缓存;图中的第一摄像头和第二摄像头对同一场景进行拍摄,分别得到第一图像和第二图像;AWB控制器对该第一图像进行白平衡处理,得到该第一图像的白平衡增益;上述缓存储存有进行白平衡处理所需的参数。As shown in FIG. 5, the white balance information synchronization device may include a first camera, a first camera, and an image signal processor. The image signal processor includes an AWB controller and a cache; the first camera and the second camera in the figure are in the same scene. Shooting, respectively obtaining a first image and a second image; the AWB controller performs white balance processing on the first image to obtain a white balance gain of the first image; and the buffer stores parameters required for performing white balance processing.
403、确定上述第一图像的白平衡增益在目标坐标系对应的第一坐标点;403. Determine a white balance gain of the first image in a first coordinate point corresponding to the target coordinate system;
上述第一图像的白平衡增益可以表示为R通道的增益:G通道的增益:B通道的增益,上述第一图像的白平衡增益在上述目标坐标系对应的第一坐标点为(R/G,B/G),R/G为G通道的增益:R通道的增益,B/G为G通道的增益:B通道的增益。在实际应用中,通常先计算R/G和B/G,即图像中各像素点R颜色分量的平均值与G颜色分量的平均值的比值以及图像中各像素点B颜色分量的平均值与G颜色分量的平均值的比值;再计算R通道的增益:G通道的增益:B通道的增益,计算得到的(R/G,B/G)即为白平衡增益在目标坐标系对应的第一坐标点。上述白平衡信息同步装置在确定上述第一图像的白平衡增益后,可以获取上述第一图像的白平衡增益对应的R/G和B/G,得到上述第一坐标点。The white balance gain of the first image may be expressed as the gain of the R channel: the gain of the G channel: the gain of the B channel, and the white balance gain of the first image is the first coordinate point corresponding to the target coordinate system (R/G , B / G), R / G is the gain of the G channel: the gain of the R channel, B / G is the gain of the G channel: the gain of the B channel. In practical applications, R/G and B/G are usually calculated first, that is, the ratio of the average value of the R color components of each pixel in the image to the average value of the G color components and the average value of the color components of each pixel B in the image. The ratio of the average value of the G color component; recalculate the gain of the R channel: the gain of the G channel: the gain of the B channel, and the calculated (R/G, B/G) is the white balance gain corresponding to the target coordinate system. A coordinate point. After determining the white balance gain of the first image, the white balance information synchronization device may acquire R/G and B/G corresponding to the white balance gain of the first image to obtain the first coordinate point.
404、判断上述第一坐标点是否位于上述目标坐标系中的目标区域;404. Determine whether the first coordinate point is located in a target area in the target coordinate system.
若是,执行405;若否,执行411。上述白平衡信息同步装置可以预置有上述目标区域的信息。上述目标区域可以为F个坐标点在上述目标坐标系对应的闭合区域,上述F个坐标点为F个参考组合在上述第一摄像头对应的F个白平衡增益在上述目标坐标系对应的坐标点。上述白平衡信息同步装置可以预置有上述F个参考组合在上述第一摄像头对应的F个白平衡增益在上述目标坐标系对应的坐标点的信息以及上述F个参考组合在上述第二摄像头对应的F个白平衡增益在上述目标坐标系对应的坐标点的信息。上述F为大于1的整数。可以理解,处于上述目标区域的第一坐标点可以准确地映射为第二坐标点,即第二图像的白平衡增益对应的坐标点。通过该步骤可以保证白平衡信息同步的精度。在实际应用中,具体需要选择哪些坐标点构建上述目标区域需要调试人员根据实际情况确定。具体的,调试人员可以经过反复实验确定上述目标区域,以保证白平衡信息同步的精度。本发明实施例不限定目标区域的确定方式。如图5所示,左半图中的虚线对应的区域为目标区域。If yes, execute 405; if no, execute 411. The white balance information synchronizing device may preset information of the target area. The target area may be a closed area corresponding to the target coordinate system of the F coordinate points, and the F coordinate points are F reference sets, and the F white balance gains corresponding to the first camera are at the coordinate points corresponding to the target coordinate system. . The white balance information synchronizing device may preset information of the F white reference gains corresponding to the first camera corresponding to the coordinate points corresponding to the target coordinate system, and the F reference combinations corresponding to the second camera. The information of the F white balance gains at the coordinate points corresponding to the above-mentioned target coordinate system. The above F is an integer greater than 1. It can be understood that the first coordinate point in the target area can be accurately mapped to the second coordinate point, that is, the coordinate point corresponding to the white balance gain of the second image. Through this step, the accuracy of white balance information synchronization can be ensured. In practical applications, the specific coordinate points that need to be selected to construct the above target area need to be determined by the commissioning personnel according to the actual situation. Specifically, the debugger can determine the target area through repeated experiments to ensure the accuracy of white balance information synchronization. Embodiments of the present invention do not limit the manner in which the target area is determined. As shown in FIG. 5, the area corresponding to the broken line in the left half is the target area.
405、确定上述第一坐标点对应的第一参考坐标点;405. Determine a first reference coordinate point corresponding to the first coordinate point.
上述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;上述第一德洛内三角网与第一点集相对应,上述第一点集为上述第一摄像头在上述目标坐标系对应的坐标点的集合;上述第一参考坐标点包含在上述第一点集内。上述第一坐标点位于上述第一参考坐标点在上述目标坐标系对应的闭合区域。The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera A set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first set of points. The first coordinate point is located at a closed region corresponding to the target coordinate system in the first reference coordinate point.
406、依据上述第一坐标点和上述第一参考坐标点计算中间参数;406. Calculate an intermediate parameter according to the first coordinate point and the first reference coordinate point.
具体的,可以利用公式(4)-(10)计算上述中间参数。Specifically, the above intermediate parameters can be calculated using equations (4)-(10).
407、确定上述第一参考坐标点对应的第二参考坐标点;407. Determine a second reference coordinate point corresponding to the first reference coordinate point.
408、依据上述第二参考坐标点和上述中间参数确定第二坐标点;408. Determine a second coordinate point according to the second reference coordinate point and the intermediate parameter.
具体的,可以利用公式(11)和公式(12)计算上述第二坐标点。Specifically, the second coordinate point described above can be calculated using equations (11) and (12).
409、依据上述第二坐标点确定上述第二图像的白平衡增益;409. Determine a white balance gain of the second image according to the second coordinate point.
410、对上述第一图像和上述第二图像进行白平衡处理;410. Perform white balance processing on the first image and the second image.
411、采用目标方式确定上述第二图像的白平衡增益。411. Determine a white balance gain of the second image by using a target manner.
所述目标方式可以与确定上述第一图像的白平衡增益的方式相同;也可以是其他将上述第一图像的白平衡增益映射为上述第二图像的白平衡增益的方式。The target mode may be the same as the manner of determining the white balance gain of the first image; or may be another way of mapping the white balance gain of the first image to the white balance gain of the second image.
本发明实施例中,自适应地选择不同的方法,将第一图像的白平衡增益映射为第二图像的白平衡增益;保证白平衡信息同步的精度。In the embodiment of the present invention, different methods are adaptively selected, and the white balance gain of the first image is mapped to the white balance gain of the second image; the accuracy of the white balance information synchronization is ensured.
本发明实施例提供了另一种白平衡信息同步方法的示意流程图,如图6所示,包括:An embodiment of the present invention provides a schematic flowchart of another method for synchronizing white balance information, as shown in FIG. 6, including:
601、判断第一坐标点与目标参考坐标点之间的距离是否小于目标阈值;601. Determine whether a distance between the first coordinate point and the target reference coordinate point is less than a target threshold.
若是,执行602;若否,执行604。上述目标阈值可以预先设置的1个大于0的数值。在执行601之前,可以执行401-403得到上述第一坐标点。If yes, execute 602; if no, execute 604. The above target threshold may be set in advance by a value greater than zero. Before executing 601, 401-403 may be performed to obtain the first coordinate point described above.
上述目标参考坐标点为H个坐标点中与上述第一坐标点距离最近的坐标点,上述H个坐标点为H个参考组合在上述第一摄像头对应的H个白平衡增益在上述目标坐标系对应的坐标点。上述白平衡信息同步装置可以预置有上述H个参考组合在上述第一摄像头对应的H个白平衡增益在上述目标坐标系对应的坐标点的信息以及上述H个参考组合在上述第二摄像头对应的H个白平衡增益在上述目标坐标系对应的坐标点的信息。The target reference coordinate point is a coordinate point that is closest to the first coordinate point among the H coordinate points, and the H coordinate points are H reference balances. The H white balance gains corresponding to the first camera are in the target coordinate system. Corresponding coordinate points. The white balance information synchronizing device may preset information of the H white balance gains corresponding to the first camera corresponding to the coordinate points corresponding to the target coordinate system, and the H reference combinations corresponding to the second camera The H white balance gains information on the coordinate points corresponding to the target coordinate system.
602、确定上述目标参考坐标点对应的目标参考组合;602. Determine a target reference combination corresponding to the target reference coordinate point.
上述目标参考组合为上述H个参考组合中的一个参考组合,上述目标参考坐标点为上述目标参考组合在上述第一摄像头对应的H个白平衡增益在上述目标坐标系对应的坐标点。上述H为大于1的整数。The target reference combination is one of the H reference combinations, and the target reference coordinate point is a coordinate point corresponding to the H target gain of the target reference combination in the first camera. The above H is an integer greater than one.
603、确定上述目标参考组合在上述第二摄像头对应的白平衡增益为上述第二图像的白平衡增益;603. Determine a white balance gain corresponding to the second camera in the target reference combination as the white balance gain of the second image.
604、确定目标坐标系中与上述第一坐标点距离最近的G个坐标点;604. Determine G coordinate points in the target coordinate system that are closest to the first coordinate point.
上述G个坐标点为上述H个坐标点中的部分坐标点。上述G为小于上述H的整数。The above-mentioned G coordinate points are partial coordinate points among the above H coordinate points. The above G is an integer smaller than the above H.
605、计算上述G个坐标点对应的G个权重;605. Calculate G weights corresponding to the G coordinate points.
上述G个坐标点中的一个坐标点与上述第一坐标点的距离越近,该坐标点对应的权重越大。假定与第一坐标点距离最近的4个坐标点与该第一坐标点之前的距离分别为0.1、0.2、0.3、04,则这4个坐标点对应的权重分别为0.4、0.3、0.2、01。可以采用反距离加权插值法等方法计算上述G个坐标点对应的G个权重。本发明实施例不仅限于上述方法。The closer the coordinate point of the above G coordinate points is to the first coordinate point, the larger the weight corresponding to the coordinate point. Assuming that the distance between the four coordinate points closest to the first coordinate point and the distance before the first coordinate point are 0.1, 0.2, 0.3, and 04, respectively, the weights corresponding to the four coordinate points are 0.4, 0.3, 0.2, and 01, respectively. . The G weights corresponding to the G coordinate points may be calculated by a method such as inverse distance weighted interpolation. Embodiments of the invention are not limited to the above methods.
606、确定上述G个坐标点对应的G个参考组合;606. Determine G reference combinations corresponding to the G coordinate points.
上述G个参考组合为上述H个参考组合中的部分参考组合。The above G reference combinations are partial reference combinations among the above H reference combinations.
607、依据上述G个参考组合和上述G个权重计算第二坐标点;607. Calculate a second coordinate point according to the G reference combinations and the G weights.
具体的,可以确定上述G个参考组合在上述第二摄像头对应的G个白平衡增益在上述目标坐标系对应的G个坐标点;依据该G个坐标点和上述G个权重计算上述第二坐标点。可以采用公式(8)和公式(9)计算上述第二坐标点。Specifically, it may be determined that the G white balance gains corresponding to the G cameras in the second camera are in the G coordinate points corresponding to the target coordinate system; and the second coordinates are calculated according to the G coordinate points and the G weights. point. The second coordinate point described above can be calculated using equations (8) and (9).
608、依据上述第二坐标点确定上述第二图像的白平衡增益。608. Determine a white balance gain of the second image according to the second coordinate point.
本发明实施例中,可以快速地确定第二图像的白平衡增益,计算简单。In the embodiment of the invention, the white balance gain of the second image can be quickly determined, and the calculation is simple.
本发明实施例还提供一种白平衡信息同步装置,该装置包含用于执行前述任一项上述的方法的单元。具体地,参见图7,是本发明实施例提供的一种白平衡信息同步装置的示意框图。本实施例的白平衡信息同步装置包括:获取单元和确定单元,其中,各个单元的 详细描述如下。An embodiment of the present invention further provides a white balance information synchronization apparatus, the apparatus comprising means for performing the method described above. Specifically, referring to FIG. 7, is a schematic block diagram of a white balance information synchronization apparatus according to an embodiment of the present invention. The white balance information synchronizing apparatus of this embodiment includes an obtaining unit and a determining unit, and a detailed description of each unit is as follows.
获取单元701,用于获取第一图像和第二图像;上述第一图像为第一摄像头采集的图像,上述第二图像为第二摄像头采集的图像;The acquiring unit 701 is configured to acquire the first image and the second image; the first image is an image captured by the first camera, and the second image is an image captured by the second camera;
所述获取单元701,还用于获得上述第一图像的白平衡增益;The obtaining unit 701 is further configured to obtain a white balance gain of the first image.
确定单元702,用于确定上述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;上述第一参考坐标点为上述第一摄像头在上述目标坐标系对应的N个坐标点;a determining unit 702, configured to determine a first coordinate point corresponding to the white balance gain of the first image in the target coordinate system and a first reference coordinate point; the first reference coordinate point is a correspondence between the first camera and the target coordinate system N coordinate points;
上述确定单元702,还用于依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点,依据上述第二坐标点确定上述第二图像的白平衡增益;上述第二坐标点为上述第二图像的白平衡增益在上述目标坐标系对应的坐标点;上述第二参考坐标点为上述第二摄像头在上述目标坐标系对应的N个坐标点。The determining unit 702 is further configured to determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine a white balance gain of the second image according to the second coordinate point; The second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the target coordinate system of the second camera.
本实施例可以参考前述方法实施例,以及发明内容中关于方法实施例的介绍,在此不再一一赘述,在本实施例之后的装置实施例中,也可以一并参考方法实施例的内容。在本实施例中,获取单元701可以对应到图5中的图像信号处理器获取第一摄像头和第二摄像头拍摄的图像的功能以及获取其他信息的功能;确定单元702可以对应到图5中的图像信号处理器。For the embodiment, reference may be made to the foregoing method embodiments, and the description of the method embodiments in the content of the invention, which will not be further described herein. In the device embodiment after the embodiment, the content of the method embodiment may also be referred to. . In this embodiment, the obtaining unit 701 may correspond to the function of acquiring the image captured by the first camera and the second camera and the function of acquiring other information by the image signal processor in FIG. 5; the determining unit 702 may correspond to the image in FIG. Image signal processor.
本发明实施例通过将白平衡信息的同步问题转换为坐标点之间的映射问题,可以精确地将第一图像的白平衡增益映射为第二图像的白平衡增益,快速地实现白平衡信息的同步;计算简单,精度较高。In the embodiment of the present invention, by converting the synchronization problem of white balance information into a mapping problem between coordinate points, the white balance gain of the first image can be accurately mapped to the white balance gain of the second image, and the white balance information can be quickly realized. Synchronization; simple calculation and high precision.
在一种可选的实现方式中,上述第一参考坐标点与N个参考组合在上述第一摄像头对应的N个白平衡增益相对应;上述第二参考坐标点与上述N个参考组合在上述第二摄像头对应的N个白平衡增益相对应。In an optional implementation manner, the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the N reference combinations are in the foregoing The N white balance gains corresponding to the second camera correspond.
本发明实施例中,第一参考坐标点和第二参考坐标点对应相同的参考组合,可以准确地确定第二坐标点,进而确定第二图像的白平衡增益。In the embodiment of the present invention, the first reference coordinate point and the second reference coordinate point correspond to the same reference combination, and the second coordinate point can be accurately determined, thereby determining the white balance gain of the second image.
在一种可选的实现方式中,上述第一坐标点位于上述第一参考坐标点在上述目标坐标系对应的闭合区域,上述N大于或者等于3。In an optional implementation manner, the first coordinate point is located at a closed area corresponding to the first reference coordinate point in the target coordinate system, and the N is greater than or equal to 3.
本发明实施例限定了第一坐标点和第一参考坐标点在目标坐标系的位置关系,可以提高白平衡信息同步的精度。The embodiment of the invention defines the positional relationship between the first coordinate point and the first reference coordinate point in the target coordinate system, and can improve the accuracy of white balance information synchronization.
在一种可选的实现方式中,上述N为3;In an optional implementation manner, the above N is 3;
上述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;上述第一德洛内三角网与第一点集相对应,上述第一点集为上述第一摄像头在上述目标坐标系对应的坐标点的集合;上述第一参考坐标点包含在上述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first camera a set of coordinate points corresponding to the target coordinate system; the first reference coordinate point is included in the first point set;
上述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,上述第二德洛内三角网与第二点集相对应,上述第二点集为上述第二摄像头在上述目标坐标系对应的坐标点的集合;上述第二参考坐标点包含在上述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the second camera A set of coordinate points corresponding to the target coordinate system; the second reference coordinate point is included in the second set of points.
发明实施例中,第一参考坐标点和第二参考坐标点均为德洛内三角网中一个三角形的3个顶点;可以保证第一参考坐标点和第二参考坐标点均是唯一的。In the embodiment of the invention, the first reference coordinate point and the second reference coordinate point are all three vertices of a triangle in the Delonian triangulation; it can be ensured that the first reference coordinate point and the second reference coordinate point are both unique.
在一种可选的实现方式中,上述第一点集与M个参考组合在上述第一摄像头对应的M 个白平衡增益相对应,上述第二点集与上述M个参考组合在上述第二摄像头对应的M个白平衡增益相对应,上述M大于或等于上述N;In an optional implementation manner, the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set and the M reference combinations are in the second The corresponding white balance gains of the camera correspond to the above, M is greater than or equal to the above N;
上述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the above M reference combinations is different.
在一种可选的实现方式中,上述第一点集包含的M个坐标点和上述第二点集包含的M个坐标点均对应M个目标序号,上述M个目标序号与上述M个参考组合一一对应;In an optional implementation manner, the M coordinate points included in the first point set and the M coordinate points included in the second point set respectively correspond to M target numbers, and the M target numbers and the M references are One-to-one correspondence
上述确定单元702,还用于确定上述第一参考坐标点对应的3个目标序号;The determining unit 702 is further configured to determine three target serial numbers corresponding to the first reference coordinate point;
上述获取单元701,还用于从上述第二点集中获取上述3个目标序号对应的3个坐标点,得到上述第二参考坐标点。The acquiring unit 701 is further configured to acquire three coordinate points corresponding to the three target numbers from the second point set to obtain the second reference coordinate point.
本发明实施例中,可以快速地确定第二参考坐标点,操作简单。In the embodiment of the present invention, the second reference coordinate point can be quickly determined, and the operation is simple.
在一种可选的实现方式中,上述确定单元702,具体用于确定上述第一图像的白平衡增益在目标坐标系对应的上述第一坐标点;确定上述第一德洛内三角网中第一三角形的3个顶点为上述第一参考坐标点,上述第一三角形在上述目标坐标系对应的区域包含上述第一坐标点。In an optional implementation manner, the determining unit 702 is specifically configured to determine that the white balance gain of the first image is in the first coordinate point corresponding to the target coordinate system; and determine that the first Delauna network is in the first The three vertices of a triangle are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
本发明实施例中,可以快速、准确地确定第一坐标点对应的第一参考坐标点,实现简单。In the embodiment of the present invention, the first reference coordinate point corresponding to the first coordinate point can be quickly and accurately determined, and the implementation is simple.
在一种可选的实现方式中,上述确定单元702,还用于确定上述第二德洛内三角网中第二三角形的3个顶点为上述第二参考坐标点,上述第二三角形的3个顶点对应的3个参考组合与上述第一三角形的3个顶点对应的3个参考组合相同,上述第一德洛内三角网和上述第二德洛内三角网对应的参考组合相同。In an optional implementation manner, the determining unit 702 is further configured to determine that three vertices of the second triangle in the second Delauna network are the second reference coordinate point, and three of the second triangles The three reference combinations corresponding to the vertices are the same as the three reference combinations corresponding to the three vertices of the first triangle, and the reference combinations corresponding to the first Delauna network and the second Delauna network are the same.
本发明实施例中,可以快速、准确地确定第一参考坐标点对应的第二参考坐标点。In the embodiment of the present invention, the second reference coordinate point corresponding to the first reference coordinate point can be quickly and accurately determined.
在一种可选的实现方式中,上述确定单元702,还用于依据如下公式计算中间参数:In an optional implementation manner, the determining unit 702 is further configured to calculate an intermediate parameter according to the following formula:
D00=sum(V0.*V0);D00=sum(V0.*V0);
D01=sum(V0.*V1);D01=sum(V0.*V1);
D02=sum(V0.*V2);D02=sum(V0.*V2);
D11=sum(V1.*V1);D11=sum(V1.*V1);
D12=sum(V1.*V2);D12=sum(V1.*V2);
u=(D11*D02-D01*D12)/(D00*D11-D01*D01);u=(D11*D02-D01*D12)/(D00*D11-D01*D01);
v=(D00*D12-D01*D02)/(D00*D11-D01*D01);v=(D00*D12-D01*D02)/(D00*D11-D01*D01);
其中,V0=C-A,V1=B-A,V2=P-A,上述P为上述第一坐标点,上述C、上述B、上述A分别为上述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;上述u和上述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinate points included in the first reference coordinate point; , .* symbol indicates the multiplication of the corresponding elements between the vectors; the above u and the above v are intermediate parameters;
上述确定单元702,还用于依据如下公式计算上述第二坐标点:The determining unit 702 is further configured to calculate the second coordinate point according to the following formula:
Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;
Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;
其中,上述C’、上述B’、上述A’分别为上述第二参考坐标点包含的三个坐标点,上述A’与上述A对应相同的参考组合,上述B’与上述B对应相同的参考组合,上述C’与上述C对应相同的参考组合;上述.x表示第一坐标轴的坐标,上述.y表示第二坐标轴的坐标;上述第二坐标点为(Q.x,Q.y)。The C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' corresponds to the same reference combination as the A, and the B' corresponds to the same reference as the B. In combination, the above C' corresponds to the same reference combination as the above C; the above x represents the coordinates of the first coordinate axis, the above y represents the coordinates of the second coordinate axis, and the second coordinate point is (Qx, Qy).
本发明实施例中,可以快速、准确地计算出第二坐标点,计算复杂度较低。In the embodiment of the present invention, the second coordinate point can be calculated quickly and accurately, and the calculation complexity is low.
在一种可选的实现方式中,上述第一图像的像素点、上述第二图像的像素点以及上述白平衡增益均采用三个颜色通道;上述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,上述第二坐标轴对应的数值为第三颜色通道与上述第二颜色通道的比值。In an optional implementation, the pixel of the first image, the pixel of the second image, and the white balance gain all use three color channels; the value corresponding to the first coordinate axis is the first color channel. The ratio corresponding to the second color channel is a ratio of the third color channel to the second color channel.
本发明实施例中,目标坐标系为二维坐标系,且每个坐标点对应一个白平衡增益,将白平衡增益的映射问题转换为坐标点的映射问题,可以准确地实现白平衡信息的同步。In the embodiment of the present invention, the target coordinate system is a two-dimensional coordinate system, and each coordinate point corresponds to a white balance gain, and the mapping problem of the white balance gain is converted into a mapping problem of coordinate points, and the white balance information can be accurately synchronized. .
请参见图8,图8是本申请实施例提供的一种白平衡信息同步装置,该白平衡信息同步装置包括:缓存801、处理器802以及输入设备803;其中,缓存801可以包含在存储器中也可以集成在处理器802中,在缓存801内包含参数数据;在上述存储器中可以存储有可执行代码,上述处理器802具有读取上述执行可执行代码或者以硬件形式来实现本申请实施例提供的方法的功能。在本实施例中方法的功能在此不再赘述。缓存801、处理器802以及输入设备803可以通过总线相互连接。Referring to FIG. 8, FIG. 8 is a white balance information synchronization apparatus according to an embodiment of the present disclosure. The white balance information synchronization apparatus includes: a cache 801, a processor 802, and an input device 803. The cache 801 may be included in the memory. It can also be integrated in the processor 802, and the parameter data is included in the cache 801; the executable code can be stored in the memory, and the processor 802 has the above-mentioned executable executable code or the hardware to implement the embodiment of the present application. The functionality of the provided method. The functions of the method in this embodiment are not described herein again. The cache 801, the processor 802, and the input device 803 can be connected to each other through a bus.
如果缓存包含在存储器中,那么存储器包括但不限于是随机存储记忆体(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM),该存储器可以用于存储相关指令及数据。输入设备803用于采集图像数据。If the cache is included in the memory, the memory includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), and an erasable programmable read-only memory (Erasable Programmable Read). Only Memory (EPROM), or Compact Disc Read-Only Memory (CD-ROM), which can be used to store related instructions and data. The input device 803 is used to acquire image data.
应当理解,在本发明实施例中,上述处理器802可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等;还可以是图形处理器(Graphics Processing Unit,GPU)。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), and the processor may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. Graphics Processing Unit (GPU). The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
具体实现中,本发明实施例中所描述的处理器801、输入设备803、缓存801可执行本发明实施例提供的前述实施例中所描述的实现方式,也可执行本发明实施例所描述的白平衡信息同步装置的实现方式,在此不再赘述。In a specific implementation, the processor 801, the input device 803, and the cache 801, which are described in the embodiments of the present invention, may be implemented in the foregoing embodiments provided by the embodiments of the present invention, and may also be implemented in the embodiments of the present invention. The implementation manner of the white balance information synchronization device will not be described here.
在本发明的另一实施例中提供一种计算机可读存储介质,上述计算机可读存储介质存储有计算机程序,上述计算机程序包括程序指令,上述程序指令被处理器执行时实现:获取第一图像和第二图像;上述第一图像为第一摄像头采集的图像,上述第二图像为第二摄像头采集的图像;确定上述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;上述第一参考坐标点为上述第一摄像头在上述目标坐标系对应的N个坐标点;依据上述第一坐标点、上述第一参考坐标点和第二参考坐标点确定第二坐标点,依据上述第二坐标点确定上述第二图像的白平衡增益;上述第二坐标点为上述第二图像的白平衡增益在上述目标坐标系对应的坐标点;上述第二参考坐标点为上述第二摄像头在上述目标坐标系对应的N个坐标点。In another embodiment of the present invention, a computer readable storage medium is provided. The computer readable storage medium stores a computer program, where the computer program includes program instructions, and when the program instructions are executed by a processor, the first image is acquired. And the second image; the first image is an image acquired by the first camera, the second image is an image captured by the second camera; and the white balance gain of the first image is determined at a first coordinate point corresponding to the target coordinate system and a reference coordinate point; the first reference coordinate point is N coordinate points corresponding to the first camera in the target coordinate system; determining the second according to the first coordinate point, the first reference coordinate point and the second reference coordinate point a coordinate point, determining a white balance gain of the second image according to the second coordinate point; wherein the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is The second camera is located at N coordinate points corresponding to the target coordinate system.
上述计算机可读存储介质可以是前述任一实施例上述的装置的内部存储单元,例如装置的硬盘或内存。上述计算机可读存储介质也可以是上述装置的外部存储设备,例如上述装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,上述计算机可读存储介质还可以既包括上述装置的内部存储单元也包括外部存储设备。上述计算机可读存储介质用于存储上述计算机程序以及上述装置所需的其他程序和数据。上述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。The above computer readable storage medium may be an internal storage unit of the above-described apparatus of any of the foregoing embodiments, such as a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the above device, such as a plug-in hard disk equipped with the above device, a smart memory card (SMC), a Secure Digital (SD) card, a flash memory card. (Flash Card), etc. Further, the above computer readable storage medium may also include both an internal storage unit of the above device and an external storage device. The computer readable storage medium described above is for storing the above computer program and other programs and data required by the above apparatus. The computer readable storage medium described above can also be used to temporarily store data that has been output or is about to be output.
图9是本申请提供的一种终端的结构示意图。该终端可以是前述实施例中的白平衡信息同步装置。如图9所示,终端200可包括:基带芯片210、存储器215(一个或多个计算机可读存储介质)、射频(RF)模块216、外围系统217。这些部件可在一个或多个通信总线214上通信。FIG. 9 is a schematic structural diagram of a terminal provided by the present application. The terminal may be the white balance information synchronizing device in the foregoing embodiment. As shown in FIG. 9, terminal 200 can include a baseband chip 210, a memory 215 (one or more computer readable storage media), a radio frequency (RF) module 216, and a peripheral system 217. These components can communicate over one or more communication buses 214.
外围系统217主要用于实现终端210和用户/外部环境之间的交互功能,主要包括终端200的输入输出装置。具体实现中,外围系统217可包括:触摸屏控制器218、摄像头控制器219、音频控制器220以及传感器管理模块221。其中,各个控制器可与各自对应的外围设备(如触摸屏223、摄像头224、音频电路225以及传感器226)耦合。需要说明的,外围系统217还可以包括其他I/O外设。The peripheral system 217 is mainly used to implement the interaction function between the terminal 210 and the user/external environment, and mainly includes the input and output devices of the terminal 200. In a specific implementation, the peripheral system 217 can include: a touch screen controller 218, a camera controller 219, an audio controller 220, and a sensor management module 221. Each controller may be coupled to a respective peripheral device such as touch screen 223, camera 224, audio circuit 225, and sensor 226. It should be noted that the peripheral system 217 may also include other I/O peripherals.
基带芯片210可集成包括:一个或多个处理器211、时钟模块222以及电源管理模块213。集成于基带芯片210中的时钟模块222主要用于为处理器211产生数据传输和时序控制所需要的时钟。集成于基带芯片210中的电源管理模块213主要用于为处理器211、射频模块216以及外围系统提供稳定的、高精确度的电压。The baseband chip 210 can be integrated to include one or more processors 211, a clock module 222, and a power management module 213. The clock module 222 integrated in the baseband chip 210 is primarily used to generate the clocks required for data transfer and timing control for the processor 211. The power management module 213 integrated in the baseband chip 210 is mainly used to provide a stable, high-accuracy voltage for the processor 211, the radio frequency module 216, and the peripheral system.
射频(RF)模块216用于接收和发送射频信号,主要集成了终端200的接收器和发射器。射频(RF)模块216通过射频信号与通信网络和其他通信设备通信。具体实现中,射频(RF)模块216可包括但不限于:天线系统、RF收发器、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC芯片、SIM卡和存储介质等。在一些实施例中,可在单独的芯片上实现射频(RF)模块216。A radio frequency (RF) module 216 is used to receive and transmit radio frequency signals, primarily integrating the receiver and transmitter of terminal 200. A radio frequency (RF) module 216 communicates with the communication network and other communication devices via radio frequency signals. In a specific implementation, the radio frequency (RF) module 216 can include, but is not limited to: an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chip, a SIM card, and Storage media, etc. In some embodiments, a radio frequency (RF) module 216 can be implemented on a separate chip.
存储器215与处理器211耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器215可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器215可以存储操作系统(下述简称系统),例如ANDROID,IOS,WINDOWS,或者LINUX等嵌入式操作系统。存储器215还可以存储网络通信程序,该网络通信程序可用于与一个或多个附加设备,一个或多个终端设备,一个或多个网络设备进行通信。存储器215还可以存储用户接口程序,该用户接口程序可以通过图形化的操作界面将应用程序的内容形象逼真的显示出来,并通过菜单、对话框以及按键等输入控件接收用户对应用程序的控制操作。 Memory 215 is coupled to processor 211 for storing various software programs and/or sets of instructions. In particular implementations, memory 215 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid state storage devices. The memory 215 can store an operating system (hereinafter referred to as a system) such as an embedded operating system such as ANDROID, IOS, WINDOWS, or LINUX. The memory 215 can also store a network communication program that can be used to communicate with one or more additional devices, one or more terminal devices, one or more network devices. The memory 215 can also store a user interface program, which can realistically display the content of the application through a graphical operation interface, and receive user control operations on the application through input controls such as menus, dialog boxes, and keys. .
存储器215还可以存储一个或多个应用程序。如图9所示,这些应用程序可包括:社交应用程序(例如Facebook),图像管理应用程序(例如相册),地图类应用程序(例如谷歌地图),浏览器(例如Safari,Google Chrome)等等。The memory 215 can also store one or more applications. As shown in FIG. 9, these applications may include: social applications (such as Facebook), image management applications (such as photo albums), map applications (such as Google Maps), browsers (such as Safari, Google Chrome), etc. .
本申请中,处理器211可用于读取和执行计算机可读指令。具体的,处理器211可用于调用存储于存储器215中的程序,并执行该程序包含的指令。In the present application, processor 211 can be used to read and execute computer readable instructions. Specifically, the processor 211 can be used to call a program stored in the memory 215 and execute instructions included in the program.
应当理解,终端200仅为本发明实施例提供的一个例子,并且,终端200可具有比示出的部件更多或更少的部件,可以组合两个或更多个部件,或者可具有部件的不同配置实现。It should be understood that the terminal 200 is only an example provided by an embodiment of the present invention, and that the terminal 200 may have more or less components than the illustrated components, may combine two or more components, or may have components. Different configurations are implemented.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (22)

  1. 一种白平衡信息同步方法,其特征在于,包括:A white balance information synchronization method, comprising:
    获取第一图像和第二图像;所述第一图像为第一摄像头采集的图像,所述第二图像为第二摄像头采集的图像;Obtaining a first image and a second image; the first image is an image acquired by a first camera, and the second image is an image captured by a second camera;
    获得所述第一图像的白平衡增益,并确定所述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第一参考坐标点;所述第一参考坐标点为所述第一摄像头在所述目标坐标系对应的N个坐标点;Obtaining a white balance gain of the first image, and determining a white coordinate gain of the first image in a first coordinate point corresponding to the target coordinate system and a first reference coordinate point; the first reference coordinate point is the first a camera at N coordinate points corresponding to the target coordinate system;
    依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点,依据所述第二坐标点确定所述第二图像的白平衡增益;所述第二坐标点为所述第二图像的白平衡增益在所述目标坐标系对应的坐标点;所述第二参考坐标点为所述第二摄像头在所述目标坐标系对应的N个坐标点。Determining a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determining a white balance gain of the second image according to the second coordinate point; the second coordinate The point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is N coordinate points corresponding to the second camera in the target coordinate system.
  2. 根据权利要求1所述的方法,其特征在于,所述第一参考坐标点与N个参考组合在所述第一摄像头对应的N个白平衡增益相对应;所述第二参考坐标点与所述N个参考组合在所述第二摄像头对应的N个白平衡增益相对应,参考组合为光源和色块的组合。The method according to claim 1, wherein the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference coordinate point and the The N reference combinations correspond to N white balance gains corresponding to the second camera, and the reference combination is a combination of a light source and a color block.
  3. 根据权利要求2所述的方法,其特征在于,所述第一坐标点位于所述第一参考坐标点在所述目标坐标系对应的闭合区域,所述N大于或者等于3。The method according to claim 2, wherein the first coordinate point is located in a closed region of the first reference coordinate point corresponding to the target coordinate system, and the N is greater than or equal to 3.
  4. 根据权利要求1至3任意一项所述的方法,其特征在于,所述N为3;The method according to any one of claims 1 to 3, wherein the N is 3;
    所述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;所述第一德洛内三角网与第一点集相对应,所述第一点集为所述第一摄像头在所述目标坐标系对应的坐标点的集合;所述第一参考坐标点包含在所述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
    所述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,所述第二德洛内三角网与第二点集相对应,所述第二点集为所述第二摄像头在所述目标坐标系对应的坐标点的集合;所述第二参考坐标点包含在所述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
  5. 根据权利要求4所述的方法,其特征在于,The method of claim 4 wherein:
    所述第一点集与M个参考组合在所述第一摄像头对应的M个白平衡增益相对应,所述第二点集与所述M个参考组合在所述第二摄像头对应的M个白平衡增益相对应,所述M大于或等于所述N,参考组合为光源和色块的组合;The first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set and the M reference combinations are M corresponding to the second camera. Corresponding to a white balance gain, the M being greater than or equal to the N, and the reference combination being a combination of a light source and a color patch;
    所述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the M reference combinations is different.
  6. 根据权利要求5所述的方法,其特征在于,所述第一点集包含的M个坐标点和所述第二点集包含的M个坐标点均对应M个目标序号,所述M个目标序号与所述M个参考组合一一对应;The method according to claim 5, wherein the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to M target numbers, the M targets The serial number corresponds to the M reference combinations one by one;
    所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点之前,所述方法还包括:The method further includes: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further includes:
    确定所述第一参考坐标点对应的3个目标序号;Determining three target serial numbers corresponding to the first reference coordinate point;
    从所述第二点集中获取所述3个目标序号对应的3个坐标点,得到所述第二参考坐标点。Obtaining three coordinate points corresponding to the three target serial numbers from the second point set to obtain the second reference coordinate point.
  7. 根据权利要求4所述的方法,其特征在于,所述确定所述第一图像的白平衡增益在 目标坐标系对应的第一坐标点和第一参考坐标点包括:The method according to claim 4, wherein the determining the white balance gain of the first image in the target coordinate system corresponding to the first coordinate point and the first reference coordinate point comprises:
    确定所述第一图像的白平衡增益在目标坐标系对应的所述第一坐标点;Determining, that the white balance gain of the first image is at the first coordinate point corresponding to the target coordinate system;
    确定所述第一德洛内三角网中第一三角形的3个顶点为所述第一参考坐标点,所述第一三角形在所述目标坐标系对应的区域包含所述第一坐标点。Determining that three vertices of the first triangle in the first Delauna network are the first reference coordinate points, and the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  8. 根据权利要求4所述的方法,其特征在于,所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点之前,所述方法还包括:The method according to claim 4, wherein the method further comprises: before determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, the method further comprising:
    确定所述第二德洛内三角网中第二三角形的3个顶点为所述第二参考坐标点,所述第二三角形的3个顶点对应的3个参考组合与所述第一三角形的3个顶点对应的3个参考组合相同,所述第一德洛内三角网和所述第二德洛内三角网对应的参考组合相同。Determining that three vertices of the second triangle in the second Delauna network are the second reference coordinate points, three reference combinations corresponding to three vertices of the second triangle, and three of the first triangles The three reference combinations corresponding to the vertices are the same, and the reference combinations corresponding to the first Delauna network and the second Delauna network are the same.
  9. 根据权利要求4所述的方法,其特征在于,所述依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点包括:The method according to claim 4, wherein the determining the second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point comprises:
    依据如下公式计算中间参数:Calculate the intermediate parameters according to the following formula:
    D00=sum(V0.*V0);D00=sum(V0.*V0);
    D01=sum(V0.*V1);D01=sum(V0.*V1);
    D02=sum(V0.*V2);D02=sum(V0.*V2);
    D11=sum(V1.*V1);D11=sum(V1.*V1);
    D12=sum(V1.*V2);D12=sum(V1.*V2);
    u=(D11*D02-D01*D12)/(D00*D11-D01*D01);u=(D11*D02-D01*D12)/(D00*D11-D01*D01);
    v=(D00*D12-D01*D02)/(D00*D11-D01*D01);v=(D00*D12-D01*D02)/(D00*D11-D01*D01);
    其中,V0=C-A,V1=B-A,V2=P-A,所述P为所述第一坐标点,所述C、所述B、所述A分别为所述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;所述u和所述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinates included in the first reference coordinate point. Point; sum means summation, .* symbol means multiplication of corresponding elements between vectors; u and v are intermediate parameters;
    依据如下公式计算所述第二坐标点:Calculating the second coordinate point according to the following formula:
    Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;
    Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;
    其中,所述C’、所述B’、所述A’分别为所述第二参考坐标点包含的三个坐标点,所述A’与所述A对应相同的参考组合,所述B’与所述B对应相同的参考组合,所述C’与所述C对应相同的参考组合;所述.x表示第一坐标轴的坐标,所述.y表示第二坐标轴的坐标;所述第二坐标点为(Q.x,Q.y)。Wherein, the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
  10. 根据权利要求9所述的方法,其特征在于,所述第一图像的像素点、所述第二图像的像素点以及所述白平衡增益均采用三个颜色通道;所述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,所述第二坐标轴对应的数值为第三颜色通道与所述第二颜色通道的比值。The method according to claim 9, wherein the pixel points of the first image, the pixel points of the second image, and the white balance gain each adopt three color channels; the first coordinate axis corresponds to The value is the ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is the ratio of the third color channel to the second color channel.
  11. 一种白平衡信息同步装置,其特征在于,包括:A white balance information synchronization device, comprising:
    获取单元,用于获取第一图像和第二图像;所述第一图像为第一摄像头采集的图像,所述第二图像为第二摄像头采集的图像;An acquiring unit, configured to acquire a first image and a second image; the first image is an image captured by a first camera, and the second image is an image captured by a second camera;
    所述获取单元,还用于获得所述第一图像的白平衡增益;The acquiring unit is further configured to obtain a white balance gain of the first image;
    确定单元,用于确定所述第一图像的白平衡增益在目标坐标系对应的第一坐标点和第 一参考坐标点;所述第一参考坐标点为所述第一摄像头在所述目标坐标系对应的N个坐标点;a determining unit, configured to determine a first coordinate point corresponding to a white coordinate gain of the first image and a first reference coordinate point; the first reference coordinate point is a target coordinate of the first camera at the target Corresponding N coordinate points;
    所述确定单元,还用于依据所述第一坐标点、所述第一参考坐标点和第二参考坐标点确定第二坐标点,依据所述第二坐标点确定所述第二图像的白平衡增益;所述第二坐标点为所述第二图像的白平衡增益在所述目标坐标系对应的坐标点;所述第二参考坐标点为所述第二摄像头在所述目标坐标系对应的N个坐标点。The determining unit is further configured to determine a second coordinate point according to the first coordinate point, the first reference coordinate point, and the second reference coordinate point, and determine white of the second image according to the second coordinate point Balanced gain; the second coordinate point is a coordinate point corresponding to the white balance gain of the second image in the target coordinate system; and the second reference coordinate point is a correspondence of the second camera in the target coordinate system N coordinate points.
  12. 根据权利要求11所述的白平衡信息同步装置,其特征在于,所述第一参考坐标点与N个参考组合在所述第一摄像头对应的N个白平衡增益相对应;所述第二参考坐标点与所述N个参考组合在所述第二摄像头对应的N个白平衡增益相对应。The white balance information synchronization apparatus according to claim 11, wherein the first reference coordinate point and the N reference combinations correspond to N white balance gains corresponding to the first camera; the second reference The coordinate points correspond to the N reference balances corresponding to the N white balance gains of the second camera.
  13. 根据权利要求12所述的白平衡信息同步装置,其特征在于,所述第一坐标点位于所述第一参考坐标点在所述目标坐标系对应的闭合区域,所述N大于或者等于3。The white balance information synchronizing apparatus according to claim 12, wherein the first coordinate point is located at a closed area corresponding to the target coordinate system of the first reference coordinate point, and the N is greater than or equal to 3.
  14. 根据权利要求11至13任意一项所述的白平衡信息同步装置,其特征在于,所述N为3;The white balance information synchronization device according to any one of claims 11 to 13, wherein the N is 3;
    所述第一参考坐标点为第一德洛内三角网中一个三角形的3个顶点;所述第一德洛内三角网与第一点集相对应,所述第一点集为所述第一摄像头在所述目标坐标系对应的坐标点的集合;所述第一参考坐标点包含在所述第一点集内;The first reference coordinate point is three vertices of a triangle in the first Delauna network; the first Delauna network corresponds to the first point set, and the first point set is the first point set a set of coordinate points corresponding to a camera in the target coordinate system; the first reference coordinate point is included in the first point set;
    所述第二参考坐标点为第二德洛内三角网中一个三角形的3个顶点,所述第二德洛内三角网与第二点集相对应,所述第二点集为所述第二摄像头在所述目标坐标系对应的坐标点的集合;所述第二参考坐标点包含在所述第二点集内。The second reference coordinate point is three vertices of a triangle in the second Delauna network, the second Delauna network corresponds to the second point set, and the second point set is the a set of coordinate points corresponding to the target coordinate system of the two cameras; the second reference coordinate points being included in the second set of points.
  15. 根据权利要求14所述的白平衡信息同步装置,其特征在于,所述第一点集与M个参考组合在所述第一摄像头对应的M个白平衡增益相对应,所述第二点集与所述M个参考组合在所述第二摄像头对应的M个白平衡增益相对应,所述M大于或等于所述N;The white balance information synchronizing apparatus according to claim 14, wherein the first point set and the M reference combinations correspond to M white balance gains corresponding to the first camera, and the second point set Corresponding to the M white balance gains corresponding to the M cameras in the second reference combination, the M is greater than or equal to the N;
    所述M个参考组合中任意两个参考组合之间对应的光源和/或色块不同。The corresponding light source and/or color block between any two of the M reference combinations is different.
  16. 根据权利要求15所述的白平衡信息同步装置,其特征在于,所述第一点集包含的M个坐标点和所述第二点集包含的M个坐标点均对应M个目标序号,所述M个目标序号与所述M个参考组合一一对应;The white balance information synchronization device according to claim 15, wherein the M coordinate points included in the first point set and the M coordinate points included in the second point set correspond to M target numbers, The M target numbers are in one-to-one correspondence with the M reference combinations;
    所述确定单元,还用于确定所述第一参考坐标点对应的3个目标序号;The determining unit is further configured to determine three target serial numbers corresponding to the first reference coordinate point;
    所述获取单元,还用于从所述第二点集中获取所述3个目标序号对应的3个坐标点,得到所述第二参考坐标点。The acquiring unit is further configured to acquire three coordinate points corresponding to the three target serial numbers from the second point set to obtain the second reference coordinate point.
  17. 根据权利要求14所述的白平衡信息同步装置,其特征在于,A white balance information synchronizing apparatus according to claim 14, wherein
    所述确定单元,具体用于确定所述第一图像的白平衡增益在目标坐标系对应的所述第一坐标点;确定所述第一德洛内三角网中第一三角形的3个顶点为所述第一参考坐标点,所述第一三角形在所述目标坐标系对应的区域包含所述第一坐标点。The determining unit is specifically configured to determine that the white balance gain of the first image is in the first coordinate point corresponding to the target coordinate system; and determine that the three vertices of the first triangle in the first Delauna network are The first reference coordinate point, the first triangle includes the first coordinate point in a region corresponding to the target coordinate system.
  18. 根据权利要求14所述的白平衡信息同步装置,其特征在于,A white balance information synchronizing apparatus according to claim 14, wherein
    所述确定单元,还用于确定所述第二德洛内三角网中第二三角形的3个顶点为所述第二参考坐标点,所述第二三角形的3个顶点对应的3个参考组合与所述第一三角形的3个顶点对应的3个参考组合相同,所述第一德洛内三角网和所述第二德洛内三角网对应的参考组合相同。The determining unit is further configured to determine that three vertices of the second triangle in the second Delauna network are the second reference coordinate points, and three reference combinations corresponding to three vertices of the second triangle The three reference combinations corresponding to the three vertices of the first triangle are the same, and the reference combinations corresponding to the first Delauna network and the second Delauna network are the same.
  19. 根据权利要求14所述的白平衡信息同步装置,其特征在于,所述确定单元,还用于依据如下公式计算中间参数:The apparatus for synchronizing white balance information according to claim 14, wherein the determining unit is further configured to calculate an intermediate parameter according to the following formula:
    D00=sum(V0.*V0);D00=sum(V0.*V0);
    D01=sum(V0.*V1);D01=sum(V0.*V1);
    D02=sum(V0.*V2);D02=sum(V0.*V2);
    D11=sum(V1.*V1);D11=sum(V1.*V1);
    D12=sum(V1.*V2);D12=sum(V1.*V2);
    u=(D11*D02-D01*D12)/(D00*D11-D01*D01);u=(D11*D02-D01*D12)/(D00*D11-D01*D01);
    v=(D00*D12-D01*D02)/(D00*D11-D01*D01);v=(D00*D12-D01*D02)/(D00*D11-D01*D01);
    其中,V0=C-A,V1=B-A,V2=P-A,所述P为所述第一坐标点,所述C、所述B、所述A分别为所述第一参考坐标点包含的三个坐标点;sum表示求和,.*符号表示向量之间对应元素相乘;所述u和所述v均为中间参数;Wherein, V0=CA, V1=BA, V2=PA, the P is the first coordinate point, and the C, the B, and the A are respectively three coordinates included in the first reference coordinate point. Point; sum means summation, .* symbol means multiplication of corresponding elements between vectors; u and v are intermediate parameters;
    所述确定单元,还用于依据如下公式计算所述第二坐标点:The determining unit is further configured to calculate the second coordinate point according to the following formula:
    Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;Q.x=(1-u-v)*A’.x+u*B’.x+v*C’.x;
    Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;Q.y=(1-u-v)*A’.y+u*B’.y+v*C’.y;
    其中,所述C’、所述B’、所述A’分别为所述第二参考坐标点包含的三个坐标点,所述A’与所述A对应相同的参考组合,所述B’与所述B对应相同的参考组合,所述C’与所述C对应相同的参考组合;所述.x表示第一坐标轴的坐标,所述.y表示第二坐标轴的坐标;所述第二坐标点为(Q.x,Q.y)。Wherein, the C', the B', and the A' are respectively three coordinate points included in the second reference coordinate point, and the A' and the A correspond to the same reference combination, the B' Corresponding to the same reference combination as the B, the C' corresponding to the same reference combination; the .x represents the coordinates of the first coordinate axis, and the .y represents the coordinates of the second coordinate axis; The second coordinate point is (Qx, Qy).
  20. 根据权利要求19所述的白平衡信息同步装置,其特征在于,所述第一图像的像素点、所述第二图像的像素点以及所述白平衡增益均采用三个颜色通道;所述第一坐标轴对应的数值为第一颜色通道与第二颜色通道的比值,所述第二坐标轴对应的数值为第三颜色通道与所述第二颜色通道的比值。The white balance information synchronizing apparatus according to claim 19, wherein the pixel points of the first image, the pixel points of the second image, and the white balance gain each adopt three color channels; The value corresponding to one coordinate axis is the ratio of the first color channel to the second color channel, and the value corresponding to the second coordinate axis is the ratio of the third color channel to the second color channel.
  21. 一种白平衡信息同步装置,其特征在于,包括处理器和存储器,所述处理器和存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1-10任一项所述的方法。A white balance information synchronizing apparatus, comprising: a processor and a memory, wherein the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, the processor It is configured to invoke the program instructions to perform the method of any of claims 1-10.
  22. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-10任一项所述的方法。A computer readable storage medium, characterized in that the computer storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute as claimed in claim 1. The method of any of ten.
PCT/CN2018/085735 2017-10-17 2018-05-04 White balance information synchronization method and device, and computer readable medium WO2019076027A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710976216.5 2017-10-17
CN201710976216.5A CN109672871B (en) 2017-10-17 2017-10-17 White balance information synchronization method, white balance information synchronization device and computer readable medium

Publications (1)

Publication Number Publication Date
WO2019076027A1 true WO2019076027A1 (en) 2019-04-25

Family

ID=66142421

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085735 WO2019076027A1 (en) 2017-10-17 2018-05-04 White balance information synchronization method and device, and computer readable medium

Country Status (2)

Country Link
CN (1) CN109672871B (en)
WO (1) WO2019076027A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113994656B (en) * 2019-08-12 2023-11-14 Oppo广东移动通信有限公司 Control method, imaging module, electronic device, and computer-readable storage medium
CN111064963A (en) * 2019-11-11 2020-04-24 北京迈格威科技有限公司 Image data decoding method, device, computer equipment and storage medium
WO2021159414A1 (en) * 2020-02-13 2021-08-19 深圳元戎启行科技有限公司 White balance control method and apparatus, electronic device and computer-readable storage medium
CN113452981B (en) * 2020-03-24 2022-08-09 RealMe重庆移动通信有限公司 Image processing method, image processing device, electronic equipment and storage medium
WO2021223185A1 (en) * 2020-05-07 2021-11-11 深圳市大疆创新科技有限公司 Camera and alignment method and apparatus therefor, and gimbal
CN112702589A (en) * 2020-12-18 2021-04-23 Oppo(重庆)智能科技有限公司 White balance synchronization method and device, electronic equipment and storage medium
CN112689140B (en) * 2020-12-18 2023-04-07 Oppo(重庆)智能科技有限公司 White balance synchronization method and device, electronic equipment and storage medium
CN113766141B (en) * 2021-09-29 2023-06-16 维沃移动通信有限公司 Image information processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100149403A1 (en) * 2008-12-11 2010-06-17 Omnivision Technologies, Inc. Automatic white balancing using meter sensors
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device
CN105657392A (en) * 2015-04-30 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Image processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105872500A (en) * 2015-12-08 2016-08-17 乐视移动智能信息技术(北京)有限公司 Adjusting method and device for white balance of image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100149403A1 (en) * 2008-12-11 2010-06-17 Omnivision Technologies, Inc. Automatic white balancing using meter sensors
CN105657392A (en) * 2015-04-30 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Image processing method and electronic equipment
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device

Also Published As

Publication number Publication date
CN109672871A (en) 2019-04-23
CN109672871B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
WO2019076027A1 (en) White balance information synchronization method and device, and computer readable medium
US10412302B2 (en) Image processing apparatus, image processing method, and imaging system
JP2017520050A (en) Local adaptive histogram flattening
WO2022179108A1 (en) Projection correction method and apparatus, storage medium, and electronic device
CN109474780B (en) Method and device for image processing
CN109559349B (en) Method and device for calibration
CN111586300B (en) Color correction method, device and readable storage medium
KR101903619B1 (en) Structured stereo
US20170150126A1 (en) Photographing device and operating method of the same
US11282232B2 (en) Camera calibration using depth data
JP2015197745A (en) Image processing apparatus, imaging apparatus, image processing method, and program
WO2019164704A1 (en) Saturation management for luminance gains in image processing
US10733762B2 (en) Dynamically calibrating a depth sensor
KR20160036985A (en) image generation apparatus and method for generating 3D panorama image
CN114078165A (en) Calibration method of optical imaging module, distortion correction method and related equipment
CN110189269A (en) Antidote, device, terminal and storage medium for wide-angle lens 3D distortion
CN115375827A (en) Illumination estimation method and electronic equipment
CN111385461B (en) Panoramic shooting method and device, camera and mobile terminal
CN109785390B (en) Method and device for image correction
CN111383254A (en) Depth information acquisition method and system and terminal equipment
CN109785225B (en) Method and device for correcting image
CN115516494A (en) Method for generating image and electronic device thereof
JP2017103695A (en) Image processing apparatus, image processing method, and program of them
CN116249018B (en) Dynamic range compression method and device for image, electronic equipment and storage medium
US20230009413A1 (en) Analysis apparatus, communication system, non-transitory computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18868041

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18868041

Country of ref document: EP

Kind code of ref document: A1