CN113923445A - Light field camera calibration method and system under condition of shift axis imaging - Google Patents

Light field camera calibration method and system under condition of shift axis imaging Download PDF

Info

Publication number
CN113923445A
CN113923445A CN202111193310.6A CN202111193310A CN113923445A CN 113923445 A CN113923445 A CN 113923445A CN 202111193310 A CN202111193310 A CN 202111193310A CN 113923445 A CN113923445 A CN 113923445A
Authority
CN
China
Prior art keywords
center
microlens
light field
circle
white
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111193310.6A
Other languages
Chinese (zh)
Other versions
CN113923445B (en
Inventor
李维
曾飞
赵洲
施圣贤
欧阳华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Hunan Aviation Powerplant Research Institute AECC
Original Assignee
Shanghai Jiaotong University
Hunan Aviation Powerplant Research Institute AECC
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 Shanghai Jiaotong University, Hunan Aviation Powerplant Research Institute AECC filed Critical Shanghai Jiaotong University
Priority to CN202111193310.6A priority Critical patent/CN113923445B/en
Publication of CN113923445A publication Critical patent/CN113923445A/en
Application granted granted Critical
Publication of CN113923445B publication Critical patent/CN113923445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/24Measuring arrangements characterised by the use of optical techniques for measuring contours or curvatures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/042Calibration or calibration artifacts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a light field camera calibration method and a light field camera calibration system under a tilt-shift imaging condition, wherein the method comprises the following steps: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position; adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image; irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens; obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens; fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body; and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized. The invention can realize the calibration of the light field camera under the condition of tilt-shift imaging and meet the calibration requirement of a multi-light field camera system.

Description

Light field camera calibration method and system under condition of shift axis imaging
Technical Field
The invention relates to the technical field of three-dimensional topography measurement, in particular to a light field camera calibration method and a light field camera calibration system under a tilt-shift imaging condition.
Background
The three-dimensional topography measurement technology is a core technology in the field of machine vision and the field of measurement. Three-dimensional topography measurement refers to measuring three-dimensional information of the surface of an object. In recent years, the appearance of light field cameras provides a new solution for three-dimensional topography measurement. The biggest difference between the light field camera and the traditional two-dimensional camera is that a micro-lens array is added in front of a sensor of the light field camera, so that the propagation direction of light in the space can be recorded, and a special original light field image is formed. In the image processing process, whether the corresponding relation between the object point on the measured object and the pixel influenced by the object point in the space is accurately obtained or not influences the measurement precision to a great extent. In the prior art, the correspondence between an object point on a measured object and a pixel influenced by the object point is determined based on an ideal gaussian optical model.
However, in an actual measurement experiment, as shown in fig. 1, there is an error that cannot be ignored in calculation based on an ideal gaussian optical model due to distortion caused by a difference in shape and refractive index of an optical observation window from air, distortion caused by a main lens mounting error, and distortion caused by a difference in refractive index of a measurement medium from air. In addition, in actual measurement, a certain included angle is formed between the plane of the measured object and the installation plane of the camera, and especially for measuring objects with large bending degree, such as turbine blades, etc., a tilt lens is needed to make the focal plane coincide with the plane of the measured object.
At present, few people research the calibration of the light field camera using the shift lens, that is, the prior art does not disclose the calibration method of the light field camera under the condition of shift imaging.
Patent document CN111351446A (application number: CN202010024192.5) discloses a calibration method of an optical field camera for three-dimensional topography measurement, which calibrates calibration plates at different positions in space and corresponding optical field original images to obtain a corresponding relationship between an optical field parallax image and three-dimensional space information; shooting a plurality of defocusing soft light pure color calibration plates by using a light field camera to obtain a light field white image; calculating according to the white image of the light field camera to obtain a vignetting removing matrix; iterative calculation is carried out to obtain a light field camera microlens subpixel level central coordinate matrix; the method comprises the following steps that a light field camera shoots a plurality of dot calibration plates with known three-dimensional space positions and carries out vignetting removing treatment; the method can efficiently and accurately convert the light field parallax image into the three-dimensional space information without main lens distortion. But the invention is not accurate and efficient and is not suitable for shooting objects under the condition of tilt-shift imaging.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a light field camera calibration method and system under the condition of tilt-shift imaging.
The invention provides a light field camera calibration method under a shift imaging condition, which comprises the following steps:
step S1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
step S2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
step S3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
step S4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
step S5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
step S6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
Preferably, each white spot on the calibration plate illuminates one or more pixels, an exudate is imaged under each microlens covered by a circle of confusion, and the central position of the ith exudate is recorded as pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
Each exudate center in the central image of the microlens is the center of the microlens, and the ith exudate center, namely the central position of the ith microlens is marked as Cl(i)
Preferably, in step S4:
the method comprises the following specific steps:
step S4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
the light field camera is formed by that the micro lens array is positioned in front of the imaging sensor, and the distance between the micro lens array and the imaging sensor is one focal length f of the micro lenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Step S4.2: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to a formula IIiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein the central position of the ith white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Step S4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIi(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Step S4.4: black background based on shootingCalculating the ith white point O of the three-dimensional space calibration plate according to the formula three and fouri(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000031
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)I, j is left to n to obtain Ddf(i)
Preferably, in step S5:
the method comprises the following specific steps:
step S5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000041
The mapping model is as follows:
Figure BDA0003302044900000042
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000043
a mapping matrix is represented that is,
Figure BDA0003302044900000044
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
step S5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000045
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
step S5.3: establishing three-dimensional spatial calibrationPlate ith white point Oi(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000046
The model is as follows:
Figure BDA0003302044900000047
Figure BDA0003302044900000048
Figure BDA0003302044900000049
Figure BDA00033020449000000410
wherein Q isi(u, v) is the projection coordinate of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens array; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure BDA0003302044900000051
is a point on the circle of dispersion,
Figure BDA0003302044900000052
is another point on the dispersion circle and
Figure BDA0003302044900000053
and is symmetrical about the circle center of dispersion.
Preferably, in step S6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure BDA0003302044900000054
lower boundary formula:
Figure BDA0003302044900000055
Figure BDA0003302044900000056
the upper boundary of the region under the microlens which is affected, Cl(j)Is the j-th microlens center position, flIs one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi(u) is the convergent imaging point abscissa, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure BDA0003302044900000057
the lower boundary of the affected zone boundary under the microlens.
According to the invention, the light field camera calibration system used under the condition of shift-axis imaging comprises:
module M1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
module M2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
module M3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
module M4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
module M5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
module M6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
Preferably, each white spot on the calibration plate illuminates one or more pixels, an exudate is imaged under each microlens covered by a circle of confusion, and the central position of the ith exudate is recorded as pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
Each white spot center in the central image of the microlens is the center of each white spotThe center of the microlens, i.e. the center position of the ith microlens, is marked as Cl(i)
Preferably, in module M4:
the method comprises the following specific steps:
module M4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
a1, the light field camera is a microlens array in front of the imaging sensor and the distance between the microlens array and the imaging sensor is one focal length f of the microlenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Module M4.2: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to a formula IIiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein the central position of the ith white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Module M4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIi(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Module M4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formula three and four based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000071
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)I, j is left to n to obtain Ddf(i)
Preferably, in module M5:
the method comprises the following specific steps:
module M5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000072
The mapping model is as follows:
Figure BDA0003302044900000073
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000074
a mapping matrix is represented that is,
Figure BDA0003302044900000075
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
module M5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000081
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
module M5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000082
The model is as follows:
Figure BDA0003302044900000083
Figure BDA0003302044900000084
Figure BDA0003302044900000085
Figure BDA0003302044900000086
wherein Q isi(u, v) is the projection of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens arrayShadow coordinates; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure BDA0003302044900000087
is a point on the circle of dispersion,
Figure BDA0003302044900000088
is another point on the dispersion circle and
Figure BDA0003302044900000089
and is symmetrical about the circle center of dispersion.
Preferably, in module M6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure BDA0003302044900000091
lower boundary formula:
Figure BDA0003302044900000092
Figure BDA0003302044900000093
the upper boundary of the region under the microlens which is affected, Cl(j)Is the j-th microlens center position, flIs one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi(u) is the convergent imaging point abscissa, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure BDA0003302044900000094
the lower boundary of the affected zone boundary under the microlens.
Compared with the prior art, the invention has the following beneficial effects:
1. the method can accurately calculate all pixels illuminated by light rays emitted by a point light source in space under the condition of shift imaging, and the light field camera shoots the three-dimensional space calibration plate to observe the distortion caused by the refractive index and the shape of the window and the installation error of the main lens. Compared with the conventional calculation method, the method is more accurate and efficient and is more suitable for shooting the object under the condition of shift imaging.
2. The invention can provide a unified coordinate system for the multi-light field camera system, and meets the calibration requirement of the multi-light field camera system;
3. the invention can establish the corresponding relation between the space coordinate of an object point in the space and the pixel influenced by the object point.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a diagram of the optical distortion present in light field camera imaging that needs to be addressed under tilt-shift imaging conditions in accordance with the present invention;
FIG. 2 is a flow chart of an embodiment of the present invention;
FIG. 3 is a schematic view of the apparatus and calibration plate for calibration according to the present invention;
FIG. 4 is a light field image of a calibration plate white point of the present invention;
FIG. 5 is a projected image of the aperture center obtained by shooting a white background when the aperture size of the light field camera is adjusted to the minimum;
FIG. 6 shows the microlens center image obtained by the present invention when parallel light is applied to each light field camera with the main lens removed.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example 1:
the invention provides a light field camera calibration method under a shift imaging condition, which comprises the following steps:
step S1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
step S2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
step S3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
step S4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
step S5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
step S6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
Specifically, each white spot on the calibration plate can illuminate one or more pixels, an exudate is imaged under each microlens covered by a circle of confusion, and the central position of the ith exudate is recorded as pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
Each exudate center in the central image of the microlens is the center of the microlens, and the ith exudate center, namely the central position of the ith microlens is marked as Cl(i)
Specifically, in step S4:
the method comprises the following specific steps:
step S4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
a1 light field cameraThe micro lens array is arranged in front of the imaging sensor and the distance between the micro lens array and the imaging sensor is one focal length f of the micro lenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Step S4.2: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to a formula IIiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein the central position of the ith white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Step S4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIi(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Step S4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formula three and four based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000121
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)I, j is left to n to obtain Ddf(i)
Specifically, in step S5:
the method comprises the following specific steps:
step S5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000122
The mapping model is as follows:
Figure BDA0003302044900000123
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000124
a mapping matrix is represented that is,
Figure BDA0003302044900000125
by calibrating all white points O on the board as point light sourcesi(x, y, z) and correspondingCircle center coordinate C of dispersion circledf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
step S5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000126
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
step S5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000127
The model is as follows:
Figure BDA0003302044900000128
Figure BDA0003302044900000131
Figure BDA0003302044900000132
Figure BDA0003302044900000133
wherein Q isi(u, v) is the projection coordinate of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens array; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure BDA0003302044900000134
is a point on the circle of dispersion,
Figure BDA0003302044900000135
is another point on the dispersion circle and
Figure BDA0003302044900000136
and is symmetrical about the circle center of dispersion.
Specifically, in step S6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure BDA0003302044900000137
lower boundary formula:
Figure BDA0003302044900000138
Figure BDA0003302044900000139
the upper boundary of the region under the microlens which is affected, Cl(j)Is the j-th microlens center position, flIs one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi(u) is the convergent imaging point abscissa, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure BDA0003302044900000141
the lower boundary of the affected zone boundary under the microlens.
Example 2:
example 2 is a preferred example of example 1, and the present invention will be described in more detail.
The person skilled in the art may understand that the light field camera calibration method under the condition of tilt-shift imaging according to the present invention is a specific implementation of the light field camera calibration system under the condition of tilt-shift imaging, that is, the light field camera calibration system under the condition of tilt-shift imaging may be implemented by executing the flow of steps of the light field camera calibration method under the condition of tilt-shift imaging.
According to the invention, the light field camera calibration system used under the condition of shift-axis imaging comprises:
module M1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
module M2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
module M3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
module M4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
module M5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
module M6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
Specifically, each white spot on the calibration plate illuminates one or more pixels, and a white spot is imaged under each microlens covered by a circle of confusion, and the ith white spot is recordedThe central position is pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
Each exudate center in the central image of the microlens is the center of the microlens, and the ith exudate center, namely the central position of the ith microlens is marked as Cl(i)
Specifically, in module M4:
the method comprises the following specific steps:
module M4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
a1, the light field camera is a microlens array in front of the imaging sensor and the distance between the microlens array and the imaging sensor is one focal length f of the microlenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Module M4.2: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to a formula IIi(x, y, z) corresponding to a converging imaging point in the plane of the microlens arrayProjection coordinate Q ofi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein the central position of the ith white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Module M4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIiCircle center coordinates C of diffusion circle corresponding to (x, y, Z)df(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Module M4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formula three and four based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000151
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)I, j is left to n to obtain Ddf(i)
Specifically, in module M5:
the method comprises the following specific steps:
module M5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000161
The mapping model is as follows:
Figure BDA0003302044900000162
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000168
a mapping matrix is represented that is,
Figure BDA0003302044900000169
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
module M5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000163
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
module M5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000164
The model is as follows:
Figure BDA0003302044900000165
Figure BDA0003302044900000166
Figure BDA0003302044900000167
Figure BDA0003302044900000171
wherein Q isi(u, v) is the projection coordinate of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens array; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesi(x, y, z) corresponds to Cdf(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure BDA0003302044900000172
is a point on the circle of dispersion,
Figure BDA0003302044900000173
is another point on the dispersion circle and
Figure BDA0003302044900000174
and is symmetrical about the circle center of dispersion.
Specifically, in module M6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of circle in diffusiondf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)And calculating the influence of the white point at any three-dimensional space positionFinding white point O at any position in space after the micro-lens existsj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure BDA0003302044900000175
lower boundary formula:
Figure BDA0003302044900000176
Figure BDA0003302044900000177
the upper boundary of the region under the microlens which is affected, Cl(j)At the center of the jth microlens, fl is one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi (u) is the abscissa of the convergent imaging point, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure BDA0003302044900000178
the lower boundary of the affected zone boundary under the microlens.
Example 3:
example 3 is a preferred example of example 1, and the present invention will be described in more detail.
According to the light field camera calibration method used under the condition of shift-axis imaging, provided by the invention, the black matrix white point calibration plate is moved to different depth-of-field positions, and the following steps are executed at the different depth-of-field positions:
step 1: shooting a black-background white-point calibration plate by a single or a plurality of light field cameras to obtain light field images of white points at a plurality of known three-dimensional positions;
step 2: adjusting the aperture size of each light field camera to be minimum, and shooting a white background to obtain an aperture center projection image;
and step 3: removing lenses of the light field cameras, irradiating the light field cameras with parallel light, and shooting a white background to obtain a central image of the micro lens;
and 4, step 4: calculating to obtain the diameters and the center coordinates of diffusion circles of white points at different positions imaged in the light field camera according to the imaging rule of the light field camera by using the light field image of the white point at the known three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
and 5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
specifically, the light field camera calibration method for use under the condition of tilt-shift imaging further includes:
step 6: and finding all pixels influenced by white points at any positions in space according to the imaging rule of the light field camera and the mapping function, namely realizing the calibration of the light field camera under the condition of shift imaging.
Specifically, each white spot on the calibration plate in step 1 illuminates one or more pixels, an white spot is imaged under each microlens covered by a circle of confusion, and the central position of the ith white spot is recorded as pc(i)(ii) a Wherein the white dots on the calibration plate are arranged at equal intervals.
Specifically, the white background in step 2 is a white background with uniform light intensity, each exudate center in the projected image at the center of the aperture is an image projected by the aperture center under the microlens, and the ith exudate center is recorded as the projection position of the aperture center corresponding to the ith microlens, and is Ca(i)
Specifically, the center of each exudate in the central image of the microlens in step 3 is the center of the microlens, and the position of the ith exudate center, that is, the center of the ith microlens is recorded as Cl(i)
Specifically, step 4 specifically includes:
step 4.1: based on the photographed projected image of the center of the aperture and the image of the center of the microlens, the projection coordinates A (u, v) of the center of the aperture on the plane of the microlens array and the distance A of the center of the aperture from the plane of the microlens array are calculated according to the following formulad
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein the condition that equation (1) holds is: (a) the light field camera is characterized in that the micro-lens array is positioned in front of the imaging sensor, and the distance between the micro-lens array and the imaging sensor is one focal length f of the micro-lenslThe focusing light field camera of (1); (b) for the aperture center, n equations (1) are obtained by imaging n microlenses in the step 2, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Step 4.2: based on the shot light field image of the black background white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the following formulaiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
The condition that equation (2) is satisfied is as follows: (a) the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one focal length, and (b) the central position C of the micro lensl(i)The corresponding microlens is completely covered by the dispersion circle; for a point light source OiIn the step 1, n microlenses satisfying the condition (b) have n equations (2), and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Step 4.3: based on the shot light field image of the black background white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the following formulai(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Step 4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formulas (3) and (4)) based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000191
The condition that equation (4) is satisfied is as follows: (a) the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one focal length, and (b) the central position C of the micro lensl(i)The corresponding microlens is completely covered by the dispersion circle; for a point light source OiIn step 1, n microlenses satisfy the condition (b), i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)L, i, j belongs to n to obtain Ddf(i)
Specifically, step 5 includes the steps of:
step 5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000192
The mapping model is as follows:
Figure BDA0003302044900000193
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000194
a mapping matrix is represented that is,
Figure BDA0003302044900000195
by means of a calibration plateAll white points O as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
step 5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000196
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein, a0-19Is a polynomial coefficient.
Step 5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000201
The model is as follows:
Figure BDA0003302044900000202
Figure BDA0003302044900000203
Figure BDA0003302044900000204
Figure BDA0003302044900000205
wherein the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Denotes the main lens aperture value and θ denotes the shift angle.
Specifically, the step 6 specifically includes:
calculating to obtain a white point O at any three-dimensional space position according to the imaging rule of the light field camera and the mapping functionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected.
Specifically, the boundary of the affected area under each microlens is calculated according to the following two equations, all the affected pixels under each microlens are determined according to the boundary,
upper bound equation:
Figure BDA0003302044900000206
lower boundary equation:
Figure BDA0003302044900000211
example 4:
example 4 is a preferred example of example 1, and the present invention will be described in more detail.
According to the light field camera calibration method used under the condition of shift-axis imaging, the light field camera shoots the three-dimensional space calibration plate to eliminate optical distortion caused by the fact that the shape and the refractive index of an optical observation window are different from those of air, optical distortion caused by installation errors of a main lens and optical distortion caused by the fact that the refractive index of a measuring medium is different from that of air, the calculation precision of the corresponding relation between the space coordinate of an object point in space and pixels influenced by the space coordinate is improved, and the three-dimensional measurement quality is further improved.
According to the light field camera calibration method used under the condition of shift-axis imaging, provided by the invention, the black matrix white point calibration plate is moved to different depth-of-field positions, and the following steps are executed at the different depth-of-field positions:
step 1: shooting a black-background white-point calibration plate by a single or a plurality of light field cameras to obtain light field images of white points at a plurality of known three-dimensional positions; specifically, after the light field camera is used to complete the light field image acquisition of the three-dimensional flow field tracer particles, the focusing ring of the main lens is kept unchanged, as shown in fig. 3, the calibration plate is moved by using the high-precision manual/electric displacement table, and the light field camera shoots an image of the calibration plate at the position every time the calibration plate is moved by a small step, as shown in fig. 4. Each white spot on the calibration plate can illuminate one or more pixels, an exudate is imaged under each microlens covered by a diffusion circle, and the central position of the ith exudate is recorded as pc(i)(ii) a Wherein the white dots on the calibration plate are arranged at equal intervals.
Step 2: each light is emittedAdjusting the aperture size of the field camera to the minimum, shooting a white background to obtain a projected image of the center of the ring, specifically, as shown in fig. 5, the white background in step 2 is a white background with uniform light intensity, each white spot center in the projected image of the center of the ring is an image generated by projection of the center of the ring under a microlens, and the ith white spot center is recorded as the projected position of the center of the ring corresponding to the ith microlens and is Ca(i)
And step 3: using a collimator to irradiate a light field camera with the main lens removed, and shooting to obtain a central image of the microlens, as shown in fig. 6, each white spot center in the central image of the microlens is the center of the microlens, and the ith white spot center is recorded as the center position of the microlensl(i)
And 4, step 4: calculating to obtain the diameters and the center coordinates of diffusion circles of white points at different positions imaged in the light field camera according to the imaging rule of the light field camera by using the light field image of the white point at the known three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens; specifically, step 4 includes the steps of:
step 4.1: based on the photographed projected image of the center of the aperture and the image of the center of the microlens, the projection coordinates A (u, v) of the center of the aperture on the plane of the microlens array and the distance A of the center of the aperture from the plane of the microlens array are calculated according to the following formulad
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein the condition that equation (1) holds is: (a) the light field camera is characterized in that the micro-lens array is positioned in front of the imaging sensor, and the distance between the micro-lens array and the imaging sensor is one focal length f of the micro-lenslThe focusing light field camera of (1); (b) for the aperture center, n equations (1) are obtained by imaging n microlenses in the step 2, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Step 4.2: based on the shot light field image of the black background white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the following formulaiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
The condition that equation (2) is satisfied is as follows: (a) the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one focal length, and (b) the central position C of the micro lensl(i)The corresponding microlens is completely covered by the dispersion circle; for a point light source OiIn the step 1, n microlenses satisfying the condition (b) have n equations (2), and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Step 4.3: based on the shot light field image of the black background white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the following formulai(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Step 4.4: based on the shot light field image of the black background white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formulas (3) and (4)i(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure BDA0003302044900000221
The condition that equation (4) is satisfied is as follows: (a) the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one focal length, and (b) the central position C of the micro lensl(i)The corresponding microlens is completely covered by the dispersion circle; for a point light source OiIn step 1, n microlenses satisfy the condition (b), i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)L, i, j belongs to n to obtain Ddf(i)
Specifically, step 5 includes the steps of:
step 5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure BDA0003302044900000222
The mapping model is as follows:
Figure BDA0003302044900000223
wherein, λ represents a mapping relation coefficient,
Figure BDA0003302044900000224
a mapping matrix is represented that is,
Figure BDA0003302044900000225
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
step 5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure BDA0003302044900000231
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2
+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)
+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z
+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z
+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein, a0-19Is a polynomial coefficient.
Step 5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure BDA0003302044900000232
The model is as follows:
Figure BDA0003302044900000233
Figure BDA0003302044900000234
Figure BDA0003302044900000235
Figure BDA0003302044900000236
wherein the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Denotes the main lens aperture value and θ denotes the shift angle.
Specifically, the step 6 specifically includes:
calculating to obtain a white point O at any three-dimensional space position according to the imaging rule of the light field camera and the mapping functionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected.
Specifically, the boundary of the affected area under each microlens is calculated according to the following two equations, all the affected pixels under each microlens are determined according to the boundary,
upper bound equation:
Figure BDA0003302044900000241
lower boundary equation:
Figure BDA0003302044900000242
the two equations are one-dimensional case boundaries, and the two-dimensional case boundaries are expanded to two-dimensional cases according to the equations.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A light field camera calibration method for use under tilt-shift imaging conditions, comprising:
step S1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
step S2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
step S3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
step S4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
step S5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
step S6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
2. The light field camera calibration method for shift imaging conditions according to claim 1, characterized in that:
each white spot on the calibration plate illuminates one or more pixels, each microlens covered by a circle of confusion forms a white spot under it,the central position of the ith white spot is recorded as pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
Each exudate center in the central image of the microlens is the center of the microlens, and the ith exudate center, namely the central position of the ith microlens is marked as Cl(i)
3. The light field camera calibration method for shift imaging conditions according to claim 1, characterized in that in step S4:
the method comprises the following specific steps:
step S4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
a1, the light field camera is a microlens array in front of the imaging sensor and the distance between the microlens array and the imaging sensor is one focal length f of the microlenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Step S4.2: light based on photographed black background white dot calibration plateField image, calculating the ith white point O of the three-dimensional space calibration plate according to formula IIiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein the central position of the ith white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Step S4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIi(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Step S4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formula three and four based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure FDA0003302044890000021
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)I, j is left to n to obtain Ddf(i)
4. The light field camera calibration method for shift imaging conditions according to claim 1, characterized in that in step S5:
the method comprises the following specific steps:
step S5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure FDA0003302044890000031
The mapping model is as follows:
Figure FDA0003302044890000032
wherein, λ represents a mapping relation coefficient,
Figure FDA0003302044890000033
a mapping matrix is represented that is,
Figure FDA0003302044890000034
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
step S5.2: polynomial fitting three-dimensional space calibration platei white points Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure FDA0003302044890000035
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
step S5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure FDA0003302044890000036
The model is as follows:
Figure FDA0003302044890000037
Figure FDA0003302044890000038
Figure FDA0003302044890000039
Figure FDA00033020448900000310
wherein Q isi(u, v) is the projection coordinate of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens array; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure FDA0003302044890000041
is a point on the circle of dispersion,
Figure FDA0003302044890000042
is another point on the dispersion circle and
Figure FDA0003302044890000043
and is symmetrical about the circle center of dispersion.
5. The light field camera calibration method for shift imaging conditions according to claim 1, characterized in that in step S6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by the white point of any three-dimensional space position are obtained through calculation, the white point O of any space position is foundj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure FDA0003302044890000044
lower boundary formula:
Figure FDA0003302044890000045
Figure FDA0003302044890000046
the upper boundary of the region under the microlens which is affected, Cl(j)Is the j-th microlens center position, flIs one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi(u) is the convergent imaging point abscissa, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure FDA0003302044890000047
the lower boundary of the affected zone boundary under the microlens.
6. A light field camera calibration system for use under tilt-shift imaging conditions, comprising:
module M1: shooting black background white point calibration plates at different depth of field positions to obtain a light field image of a white point at a known three-dimensional position;
module M2: adjusting the aperture size of each light field camera to the minimum shooting white background to obtain an aperture center projection image;
module M3: irradiating each light field camera by using parallel light, and shooting a white background to obtain a central image of the micro lens;
module M4: obtaining the diameters and the center coordinates of the diffusion circles of the white points at different positions imaged in the light field camera according to calculation through the light field image of the white point at the three-dimensional position, the projected image of the center of the aperture and the central image of the micro lens;
module M5: fitting a mapping function of the diameter and circle center coordinates of the dispersion circle and the space position of the three-dimensional body;
module M6: and according to the imaging rule of the light field camera and the mapping function of the space position of the three-dimensional body, the light field camera calibration under the condition of shift imaging is realized.
7. The light field camera calibration system for use under tilt-shift imaging conditions of claim 6, wherein:
each white spot on the calibration plate can illuminate one or more pixels, an exudate is imaged under each microlens covered by a diffusion circle, and the central position of the ith exudate is recorded as pc(i)I is an ordinal number, wherein white dots on the calibration plate are arranged at equal intervals;
the white background is a white background with uniform light intensity, each white spot center in the projected image of the center of the aperture is an image generated by projection of the center of the aperture under the microlens, and the projection position of the center of the aperture corresponding to the ith white spot center under the ith microlens is recorded as Ca(i)
In the micro-lensThe center of each exudate in the heart image is the center of the microlens, and the position of the ith exudate center, namely the center of the ith microlens, is recorded as Cl(i)
8. The light field camera calibration system for tilt-shift imaging conditions according to claim 6 wherein in module M4:
the method comprises the following specific steps:
module M4.1: based on the shot projected image of the center of the aperture and the shot image of the center of the micro-lens, calculating the projection coordinate A (u, v) of the center of the aperture on the plane of the micro-lens array and the distance A of the center of the aperture from the plane of the micro-lens array according to a formula Id
(Ca(i)-Cl(i))Ad-fl(Cl(i)-A(u,v))=0 (1)
Wherein, Ca(i)The center of the ith white spot is the projection position of the center of a diaphragm corresponding to the ith micro lens; cl(i)Is the ith white spot center, namely the ith microlens center position; f. oflIs one focal length of the microlens;
the condition that the first formula is satisfied is as follows:
a1, the light field camera is a microlens array in front of the imaging sensor and the distance between the microlens array and the imaging sensor is one focal length f of the microlenslThe focusing light field camera of (1);
b1, for the center of the aperture, n formula I can be obtained when n microlenses are used for imaging, n is the number of the microlenses, and when n is larger than or equal to 3, A (u, v) and A are obtained by solving an overdetermined equation systemd
Module M4.2: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to a formula IIiProjection coordinate Q of (x, y, z) corresponding convergent imaging point on the plane of the micro-lens arrayi(u, v) and a converging imaging point QiDistance Q from the plane of the microlens arrayi d
(pc(i)-Cl(i))Qi d-fl(Cl(i)-Qi(u,v))=0 (2)
Wherein, the ithThe central position of each white spot is pc(i)
The condition that the second formula is satisfied is as follows:
a2, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
(b2) central position C of microlensl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiIf n microlenses satisfy the condition b2, n formulas II are obtained, and when n is larger than or equal to 3, Q is obtained by solving an overdetermined equation seti(u, v) and Qi d
Module M4.3: based on the shot light field image of the black bottom white point calibration plate, the ith white point O of the three-dimensional space calibration plate is calculated according to the formula IIIi(x, y, z) corresponding circle center coordinates C of diffusion circledf(i)(u,v):
AdQi(u,v)-Cdf(i)(u,v)(Ad-Qi d)=0 (3)
Module M4.4: calculating the ith white point O of the three-dimensional space calibration plate according to the formula three and four based on the shot light field image of the black background white point calibration platei(x, y, z) corresponding to the circle of confusion Ddf(i)
Figure FDA0003302044890000061
pc(j)The central position of the jth white spot;
the condition that the formula four holds is as follows:
a3, the light field camera is a focusing light field camera with a micro lens array positioned in front of the imaging sensor by one time of focal length;
b3 center position of microlens Cl(i)The corresponding microlens is completely covered by the dispersion circle;
for a point light source OiThere are n microlenses satisfying the condition b3, i.e., n white spots pc(i)When n is more than or equal to 2, solving the maximum distance max | p between the white spotsc(i)-pc(j)|,i,j∈n,Find Ddf(i)
9. The light field camera calibration system for tilt-shift imaging conditions according to claim 6 wherein in module M5:
the method comprises the following specific steps:
module M5.1: establishing a mapping model to fit the ith white point O of the three-dimensional space calibration platei(x, y, z) and the coordinates C of the center of the circle corresponding to the circle of confusiondf(i)(u, v) mapping function relationship
Figure FDA0003302044890000065
The mapping model is as follows:
Figure FDA0003302044890000062
wherein, λ represents a mapping relation coefficient,
Figure FDA0003302044890000063
a mapping matrix is represented that is,
Figure FDA0003302044890000064
by calibrating all white points O on the board as point light sourcesi(x, y, z) and corresponding circle center coordinates C of circle of confusiondf(i)(u, v) is obtained; u and v respectively represent coordinates of a rectangular coordinate system; x, y and z respectively represent coordinates of a space rectangular coordinate system;
module M5.2: polynomial fitting three-dimensional space calibration plate ith white point Oi(x, y, z) and a converging imaging point QiDistance Q from the plane of the microlens arrayi dMapping functional relationships
Figure FDA0003302044890000071
The model is as follows:
Qi d=a0+a1Cdf(i)(u)+a2Cdf(i)(v)+a3z+a4Cdf(i)(u)Cdf(i)(v)+a5Cdf(i)(u)z+a6(z)2+a7Cdf(i)(v)z+a8(Cdf(i)(v))2+a9(Cdf(i)(u))2+a10(Cdf(i)(u))2Cdf(i)(v)+a11(Cdf(i)(v))2Cdf(i)(u)+a12(Cdf(i)(u))2z+a13(Cdf(i)(v))2z+a14(z)2Cdf(i)(v)+a15(z)2Cdf(i)(u)+a16Cdf(i)(u)Cdf(i)(v)z+a17(Cdf(i)(u))3+a18(Cdf(i)(v))3+a19(z)3
wherein Q isi dThe distance from the convergent imaging point to the plane of the microlens array; a is0-19Is a polynomial coefficient; cdf(i)(u) is the abscissa of the center of the circle of confusion, Cdf(i)(v) Is a longitudinal coordinate of the center of a circle of a dispersion circle;
module M5.3: establishing the ith white point O of the three-dimensional space calibration platei(x, y, z) and the diameter D of the circle of confusiondf(i)Mapping function relationship of
Figure FDA0003302044890000072
The model is as follows:
Figure FDA0003302044890000073
Figure FDA0003302044890000074
Figure FDA0003302044890000075
Figure FDA0003302044890000076
wherein Q isi(u, v) is the projection coordinate of a convergent imaging point corresponding to the ith white point of the three-dimensional space calibration plate on the plane of the micro-lens array; cdf(i)(u, v) are coordinates of the center of the circle of dispersion; a. thedThe distance from the center of the aperture to the plane of the microlens array; ddf(i)Is the diameter of a dispersion circle; a (u, v) is the projection coordinate of the aperture center on the microlens array plane; the coefficients α, β, γ pass through all white points O on the calibration plate as point sourcesiC for (x, y, z)df(i)(u,v)、Qi dAnd diameter D of circle of dispersiondf(i)Fitting to obtain; a. themDenotes the main lens aperture diameter, Am=fm(1-M)/f#,fmDenotes the main lens focal length, M denotes the magnification factor, f#Represents the aperture value of the main lens, and theta represents the shift angle;
Figure FDA0003302044890000077
is a point on the circle of dispersion,
Figure FDA0003302044890000078
is another point on the dispersion circle and
Figure FDA0003302044890000079
and is symmetrical about the circle center of dispersion.
10. The light field camera calibration system for tilt-shift imaging conditions according to claim 6 wherein in module M6:
according to the imaging rule and the mapping function of the light field camera, calculating to obtain a white point O at any three-dimensional space positionj(x, y, z) corresponding circle center coordinates C of diffusion circledf(j)(X, Y) and circle of confusion diameter Ddf(j)And a microlens center position Cl(j)After all the micro-lenses influenced by white points at any three-dimensional space position are obtained through calculation, any position in space is foundWhite point Oj(x, y, z) all pixels affected;
calculating the boundary of the affected area under each microlens according to the following two formulas, and determining all pixels affected under each microlens according to the boundary;
the upper bound formula:
Figure FDA0003302044890000081
lower boundary formula:
Figure FDA0003302044890000082
Figure FDA0003302044890000083
the upper boundary of the region under the microlens which is affected, Cl(j)Is the j-th microlens center position, flIs one focal length of the microlens, Cl(j)(u) is the central abscissa of the ith microlens, Qi(u) is the convergent imaging point abscissa, Cl(j)(v) Is the central ordinate, p, of the ith microlenslIs the pixel size of the microlens, ppFor sensor pixel size, Qi(v) Is a vertical coordinate of a convergent imaging point; qi dThe distance from the convergent imaging point to the plane of the microlens array;
Figure FDA0003302044890000084
the lower boundary of the affected zone boundary under the microlens.
CN202111193310.6A 2021-10-13 2021-10-13 Light field camera calibration method and system under shift imaging condition Active CN113923445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111193310.6A CN113923445B (en) 2021-10-13 2021-10-13 Light field camera calibration method and system under shift imaging condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111193310.6A CN113923445B (en) 2021-10-13 2021-10-13 Light field camera calibration method and system under shift imaging condition

Publications (2)

Publication Number Publication Date
CN113923445A true CN113923445A (en) 2022-01-11
CN113923445B CN113923445B (en) 2023-09-26

Family

ID=79240127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111193310.6A Active CN113923445B (en) 2021-10-13 2021-10-13 Light field camera calibration method and system under shift imaging condition

Country Status (1)

Country Link
CN (1) CN113923445B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115032756A (en) * 2022-06-07 2022-09-09 北京拙河科技有限公司 Micro-lens array positioning method and system of light field camera

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015211387A (en) * 2014-04-28 2015-11-24 日本電信電話株式会社 Image correction device and image correction program
CN107610182A (en) * 2017-09-22 2018-01-19 哈尔滨工业大学 A kind of scaling method at light-field camera microlens array center
CN107977993A (en) * 2017-11-17 2018-05-01 杨俊刚 A kind of refocusing method and system based on re-projection for light field array camera
CN108447098A (en) * 2018-03-13 2018-08-24 深圳大学 A kind of telecentricity moves camera shaft scaling method and system
CN109166154A (en) * 2018-08-29 2019-01-08 上海交通大学 Light-field camera calibration method for light field three dimensional particles image reconstruction
CN111351446A (en) * 2020-01-10 2020-06-30 奕目(上海)科技有限公司 Light field camera calibration method for three-dimensional topography measurement
US20200250856A1 (en) * 2019-02-01 2020-08-06 Molecular Devices (Austria) GmbH Calibration of a light-field imaging system
CN112927296A (en) * 2021-02-03 2021-06-08 上海橙捷健康科技有限公司 Method and system for calibrating and calibrating spatial relative position
WO2021129437A1 (en) * 2019-12-23 2021-07-01 首都师范大学 Method and system for light calibration field camera without requiring white image
CN113079365A (en) * 2021-03-26 2021-07-06 中国人民解放军陆军装甲兵学院 Integrated imaging unit image array generation method and system based on tilt-shift camera

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015211387A (en) * 2014-04-28 2015-11-24 日本電信電話株式会社 Image correction device and image correction program
CN107610182A (en) * 2017-09-22 2018-01-19 哈尔滨工业大学 A kind of scaling method at light-field camera microlens array center
CN107977993A (en) * 2017-11-17 2018-05-01 杨俊刚 A kind of refocusing method and system based on re-projection for light field array camera
CN108447098A (en) * 2018-03-13 2018-08-24 深圳大学 A kind of telecentricity moves camera shaft scaling method and system
CN109166154A (en) * 2018-08-29 2019-01-08 上海交通大学 Light-field camera calibration method for light field three dimensional particles image reconstruction
US20200250856A1 (en) * 2019-02-01 2020-08-06 Molecular Devices (Austria) GmbH Calibration of a light-field imaging system
WO2021129437A1 (en) * 2019-12-23 2021-07-01 首都师范大学 Method and system for light calibration field camera without requiring white image
CN111351446A (en) * 2020-01-10 2020-06-30 奕目(上海)科技有限公司 Light field camera calibration method for three-dimensional topography measurement
CN112927296A (en) * 2021-02-03 2021-06-08 上海橙捷健康科技有限公司 Method and system for calibrating and calibrating spatial relative position
CN113079365A (en) * 2021-03-26 2021-07-06 中国人民解放军陆军装甲兵学院 Integrated imaging unit image array generation method and system based on tilt-shift camera

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
柳生龙;孙聪;刘海波;于起峰;: "一种新的移轴相机两步标定方法", 中国科学, vol. 48, no. 8, pages 836 - 844 *
马经宇;方俊永;王潇;王建阳;: "移轴原理的数字相机检校", 测绘科学, vol. 43, no. 1, pages 93 - 100 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115032756A (en) * 2022-06-07 2022-09-09 北京拙河科技有限公司 Micro-lens array positioning method and system of light field camera
CN115032756B (en) * 2022-06-07 2022-12-27 北京拙河科技有限公司 Micro-lens array positioning method and system of light field camera

Also Published As

Publication number Publication date
CN113923445B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN109166154B (en) Light field camera calibration method for light field three-dimensional particle image reconstruction
CN109859272B (en) Automatic focusing binocular camera calibration method and device
CN111351446B (en) Light field camera calibration method for three-dimensional topography measurement
CN110392252B (en) Method for generating correction model of camera to correct aberration
CN101577002B (en) Calibration method of fish-eye lens imaging system applied to target detection
CN107025670A (en) A kind of telecentricity camera calibration method
CN1892676B (en) Apparatus and method for face/iris combination optical imagine
US20130058581A1 (en) Microscopic Vision Measurement Method Based On Adaptive Positioning Of Camera Coordinate Frame
CN114636385B (en) Three-dimensional imaging method and system based on light field camera and three-dimensional imaging measurement production line
CN108020175B (en) multi-grating projection binocular vision tongue surface three-dimensional integral imaging method
CN113568153B (en) Microscopic imaging equipment and nanoscale three-dimensional shape measurement system
CN107424195B (en) Light field distance estimation method
CN114331924B (en) Large workpiece multi-camera vision measurement method
CN112824881A (en) System and method for detecting defects of transparent or semitransparent medium based on light field camera
CN111080711A (en) Method for calibrating microscopic imaging system in approximately parallel state based on magnification
CN113923445A (en) Light field camera calibration method and system under condition of shift axis imaging
CN112747670A (en) BGA packaging solder ball detection system and method
Li et al. Local error and its identification for microlens array in plenoptic camera
CN112747692A (en) Three-dimensional measurement method and device for precise small hole
CN112747822A (en) Three-dimensional imaging system and method
CN115200505A (en) Muddy water three-dimensional point cloud measuring method based on infrared diffraction light spots and binocular vision
CN108873302B (en) Automatic correction and refocusing method of light field microscopic image
KR102080506B1 (en) 3D optical scanner
CN112489141B (en) Production line calibration method and device for single-board single-image strip relay lens of vehicle-mounted camera
CN113781581B (en) Depth of field distortion model calibration method based on target loose attitude constraint

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant