A three-dimensional flow field testing method and system based on multi-color light depth coding and light field camera
Through multi-color optical depth encoding and light field camera technology, the problem of low axial resolution of a single light field camera is solved, and high-precision three-dimensional flow field measurement in a restricted optical access space is achieved, reducing system cost and complexity, and expanding range of applications.
Patent Information
- Application Number
- CN202310316199.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Among existing three-dimensional flow field measurement technologies, the axial resolution of a single light field camera is low, which limits its application in restricted optical access spaces. The system is complex and expensive, making it difficult to use in experiments with small optical access windows. .
Multi-color light depth coding technology is used to color-code the depth direction of the light source, and the flow field is imaged and reconstructed through a light field camera and a data processor to achieve high spatial resolution three-dimensional imaging, using light field principles and physical models. The variational optical flow model solves the three-dimensional velocity vector field.
It achieves high-precision three-dimensional flow field measurement with a single light field camera in a restricted optical access space, reduces system costs, simplifies configuration and operation, broadens the scope of applications, and solves the problem of low axial resolution.
Smart Images

Figure CN116449049B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a three-dimensional flow field testing method and system based on multi-color light depth coding and a light field camera. Background Art
[0002] Particle Image Velocimetry (PIV) is a non-invasive full-field measurement technology with the advantages of non-contact, flow structure visualization and full flow field measurement. This greatly improves the efficiency and accuracy of flow measurement, making PIV play an extremely important role in the fine measurement of high-speed and complex flows and has been widely used.
[0003] At present, three-dimensional flow measurement has always been one of the important research directions of PIV, including defocusing digital PIV (DD-PIV), holographic PIV (Holo-PIV), synthetic aperture PIV (SA-PIV), rainbow PIV, and tomographic PIV (Tomo-PIV). Tomo-PIV usually requires 4-6 cameras to image the imaging area from different angles, lasers to excite the imaging area, and precise synchronization between cameras and lasers using a synchronous controller, so as to achieve multi-angle simultaneous imaging of the flow field by multiple cameras. Finally, the three-dimensional particle field distribution is obtained by image fusion, and the 3D-3C (three-dimensional three-component (3C)) velocity field is calculated. Tomo-PIV is widely used due to its high-resolution and high-particle concentration imaging capabilities. However, this method requires a complex and expensive camera system and tedious system debugging, and its use scenarios are limited, and it is often not applicable to experiments with a small optical access window. Therefore, it is particularly important to develop 3D-3C PIV technology based on a single camera.
[0004] Light Field PIV (LF-PIV) is a flow measurement method that combines light field imaging technology with PIV technology. Light field PIV replaces multiple cameras by placing a microlens array (MLA) in front of a camera. Compared with other methods, light field PIV greatly simplifies the PIV system. However, the image reconstructed by a single light field camera has a problem of lower axial resolution than the lateral resolution, which makes three-dimensional high-resolution flow field measurement very difficult. Although dual light field camera PIV can effectively solve the problem of low axial resolution of images, it increases the cost and complexity of the system and greatly limits its application in restricted optical access spaces. Although single light field camera dual-view PIV effectively solves the limitations of dual light field camera PIV, it also brings new problems. The placement of the mirror will interfere with the flow field, limiting the application of this method in some flow measurements. Summary of the invention
[0005] The purpose of the present invention is to provide a high-resolution three-dimensional flow field test method and system based on multi-color light depth coding and light field camera. The system uses multi-color light to color-code the depth of the imaging area, and uses a data processor to perform depth decoding of the color, thereby achieving high spatial resolution three-dimensional imaging. The problem of poor axial resolution of a single light field camera is solved, the application of light field PIV systems in restricted optical access spaces is broadened, and new ideas are provided for the optimization of light field PIV systems.
[0006] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0007] The first aspect of the present application provides a three-dimensional flow field testing method based on multi-color light depth coding and a light field camera, comprising the following steps:
[0008] A1, collimate the light source and focus it on a pair of parallel diffraction gratings to obtain a volumetric polychromatic light beam with color coding in the depth direction, which is used to excite the tracer particles in the flow field to be measured;
[0009] A2, calibrating the axial depth of the volumetric polychromatic light and the color corresponding to the depth position of the axial depth;
[0010] A3, irradiating the flow field to be measured with the calibrated volumetric polychromatic light, imaging the flow field to be measured using a light field camera, and obtaining a time-series particle light field image of the tracer particles in the flow field;
[0011] A4, based on the light field principle, refocuses the different depths of the time-series particle light field image, and finally integrates the particle images of all depths to obtain the color-coded particle image;
[0012] A5, perform depth estimation on the color-coded particle image to obtain a three-dimensional particle field image;
[0013] A6, input the three-dimensional particle field images of continuous adjacent time series, and use the variational optical flow model based on the physical model to solve the final three-dimensional velocity vector field of the flow field to be measured.
[0014] The second aspect of the present application provides a three-dimensional flow field testing system for implementing the above-mentioned three-dimensional flow field testing method, characterized in that it includes:
[0015] (1) Light field cameras, including macro lenses, microlens arrays, primary lenses, and industrial cameras;
[0016] (2) Volumetric polychromatic light illumination system, including an optical system of a high-power LED white light source, a pair of parallel diffraction gratings and a lens combination;
[0017] (3) A data processor is used to reconstruct the three-dimensional flow field velocity vector field by obtaining the time-series particle light field images.
[0018] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0019] This application can achieve high-precision measurement of three-dimensional flow field in limited optical access space with a single light field camera, solving the problem of low axial resolution of light field PIV system. A single light field camera replaces multiple (light field) camera systems or special optical elements, reducing the cost of the three-dimensional PIV system, greatly simplifying the configuration and operation of the system, with a simple and reliable structure and a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic flow chart of a three-dimensional flow field velocity measurement method based on multi-color light depth coding and light field camera in the present invention;
[0021] Figure 2 It is a schematic diagram of the principle of the light field refocusing algorithm in the present invention;
[0022] Figure 3 is a flow chart of a depth estimation algorithm in the present invention;
[0023] Figure 4 It is a schematic diagram comparing the light field PIV system with multi-color light depth encoding in the present invention and other PIV systems. DETAILED DESCRIPTION
[0024] The present invention provides a three-dimensional flow field testing method and system based on multi-color light depth coding and light field camera. Figures 1 to 4 As shown, the detailed implementation steps of the method of the present invention are described below.
[0025] Step 1: If Figure 1As shown in (a), tracer particles are evenly spread in the flow field to be measured. A high-power LED white light source is collimated by a convex lens and then focused onto a pair of parallel diffraction gratings by a cylindrical lens to obtain a volume polychromatic light with a wavelength of approximately 420 to 680 nm and arranged sequentially along the depth direction, which is used to excite the tracer particles.
[0026] Step 2: Fix a single tracer particle on the translation stage and use polychromatic light to excite the particle. The motor precisely controls the translation stage to move the particle in the depth direction and image the particle in sequence. Extract the point spread function of different depth colors, complete the depth and color calibration, and use it as the standard value of color\depth in the depth estimation algorithm.
[0027] Step 3: Use a light field camera to image the flow field to be measured, ensure that the depth of field of the light field camera is greater than the depth of the polychromatic light, and finally obtain the time-series particle light field image of the flow field.
[0028] Step 4: Decode the original 4D light field image into a synthetic light field. By using the refocusing property of the light field image, the particles in different depth directions can be refocused by shifting and superimposing the viewing angles in different directions to different degrees. Finally, the particle images at all depths are integrated to obtain the particle images encoded by color light. The principle diagram of the light field refocusing algorithm is shown in the figure below. Figure 2 As shown, the reconstruction equation is as follows:
[0029]
[0030] Where: L is the original 4D light field image, s ′ ,t ′ Represents the two spatial direction dimensions of the synthetic light field, u and v represent the two angular direction dimensions of the light field, and a is the relative depth of refocusing.
[0031] Step 5: Figure 3 The flowchart of the depth estimation algorithm is shown. For the point spread functions of different depths, the convolution operator matrices A of the three RGB channels are first constructed respectively, and then the depth estimation function for solving the position P is constructed, and the relevant weight parameters are added between the depth / color to compensate for the camera spectral sensitivity. The depth estimation function is solved by the alternating direction multiplier method (ADMM). The depth estimation function is expressed as:
[0032] Where i is the color-coded particle image, A is the convolution operator, p is the three-dimensional particle distribution position, and α is the weight factor for adjusting the spatial particle sparsity. The depth estimation function is decomposed according to the red, green, and blue color channels to obtain:
[0033]
[0034] subject to p j -y=0
[0035] Where j represents different color channels, p j is a relative local variable, and y is a global consistent variable. The three color channels are iteratively solved and integrated, and finally a high-precision three-dimensional particle field is reconstructed. The iterative update expression is as follows:
[0036]
[0037]
[0038]
[0039] Where k represents the number of iterations, is the transposed matrix of the convolution operator A, I is the identity matrix, q j is the Lagrange multiplier, and Represents the color channel p j and q j The average value of ρ is the penalty parameter, which is positive. During the iterative calculation process, a color channel only covers part of the range of c polychromatic light. For example, the red channel covers the front of the polychromatic light, the green channel covers the middle of the polychromatic light, and the blue channel covers the back of the polychromatic light ( Figure 3 lower left).
[0040] Step 6: Perform relevant calculations on the three-dimensional particle field of the time-series particles, and use a variational optical flow model based on a physical model to solve the three-dimensional velocity vector field of the flow field to be measured. This optical flow model adds tracer particle correspondence terms and divergence-free terms on the basis of the basic variational optical flow model. The tracer particle correspondence term can improve the matching accuracy of the particles, and the divergence-free term is constrained based on the physical properties of the incompressible fluid, which can also improve the accuracy of the calculation results. The expression of the optical flow model to be used is:
[0041] E total =E date +γ1E smooth +γ2E corres +γ3E div
[0042] Among them: γ1, γ2, γ3 are the balance factors of each item, E date and E smooth From the basic optical flow method, derived from the constant brightness assumption, E corres is the tracer particle counterpart, E div is a divergence-free term.
[0043] The present application also provides a three-dimensional flow field testing system, comprising:
[0044] (1) Light field cameras, including macro lenses, microlens arrays, primary lenses, and industrial cameras;
[0045] (2) Volumetric polychromatic light illumination system, including an optical system of a high-power LED white light source, a pair of parallel diffraction gratings and a lens combination;
[0046] (3) A data processor is used to reconstruct the three-dimensional flow field velocity vector field by obtaining the time-series particle light field images.
[0047] In summary, the present application uses polychromatic light to color-code the depth of the imaging area and uses a data processor to decode the depth of the color, thereby improving the axial resolution of a single light field camera and realizing a single light field camera to perform high-precision measurement of the three-dimensional flow field under a limited optical access space. A single light field camera replaces multiple (light field) camera systems or special optical elements, and is more convenient than other PIV systems ( Figure 4 ), only one camera is needed to complete the high-precision measurement of the three-dimensional flow field, which greatly reduces the cost of the three-dimensional PIV system. The structure is simple and reliable, and the application range is wide. It provides new ideas for the optimization of the light field PIV system and promotes the research on three-dimensional flow field measurement.
[0048] The specific embodiments of the present invention are described in detail above, but they are only examples, and the present invention is not limited to the specific embodiments described above. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be regarded as the protection scope of the present invention.
Claims
1. A three-dimensional flow field testing method based on multi-color light depth coding and light field camera, characterized in that: The following steps are involved: A1, collimate and focus the light source on a pair of parallel diffraction gratings to obtain a volume polychromatic light beam with color coding in the depth direction, which is used to excite the tracer particles in the flow field to be measured. The depth of the volume polychromatic light is controlled by the distance between the parallel diffraction gratings; A2, calibrate the axial depth of the volumetric polychromatic light and the color corresponding to the depth position of the axial depth; specifically, use the fixed tracer particles to move in sequence along the depth direction to obtain the point spread function of the known depth color, and finally import the depth estimation algorithm as the standard value of the depth measurement; A3, irradiating the flow field to be measured with the calibrated volumetric polychromatic light, imaging the flow field to be measured using a light field camera, and obtaining a time-series particle light field image of the tracer particles in the flow field; A4, based on the light field principle, refocusing the different depths of the time-series particle light field image, and finally integrating the particle images of all depths to obtain a color-coded particle image; the light field principle refers to utilizing the refocusing property of the light field image, according to formula (1), by shifting and superimposing the viewing angles in different directions to different degrees to complete the refocusing of particles in different depth directions, and finally integrating the particle images of all depths; Where: L is the original 4D light field image, s′, t′ represent the two spatial direction dimensions of the synthesized light field, u, v represent the two angular direction dimensions of the light field, and a is the relative depth of refocusing; A5, the depth of the color-coded particle image is estimated to obtain a three-dimensional particle field image; the depth estimation algorithm uses the alternating direction multiplier method to decompose and iterate the depth estimation function, and finally obtain the three-dimensional distribution of particles in the particle field; the depth estimation function is: Where i is the color-coded particle image, A is the convolution operator, p is the three-dimensional particle distribution position, and α is the weight factor that adjusts the spatial particle sparsity; Based on the alternating direction multiplier method, the function is decomposed according to the red, green and blue color channels, expressed as: subject to p j -y=0 Where j represents different color channels, p j is a relative local variable, and y is a global consistent variable; the depth estimation problem is decomposed into three sub-problems for iterative solution, and the iterative update expression is as follows: Where k represents the number of iterations, is the transposed matrix of the convolution operator A, I is the identity matrix, q j is the Lagrange multiplier, and Represents the color channel p j and q j The average value of ρ is the penalty parameter, which is a positive value. During the iterative calculation process, a color channel only covers part of the range of c polychromatic light. A6, input the three-dimensional particle field images of continuous adjacent time series, and use the variational optical flow model based on the physical model to solve and obtain the three-dimensional velocity vector field of the final flow field to be measured; the three-dimensional particle images of adjacent time series are solved and calculated by the optical flow method based on the physical model, and according to formula (2), the three-dimensional velocity vector field E of the flow field to be measured is obtained total , E total =E date +γ1E smooth +γ2E corres +γ3E div (2) Among them: γ1, γ2, γ3 are the balance factors of each item, E date and E smooth From the basic optical flow method, derived from the constant brightness assumption, E corres is the tracer particle counterpart, E div is a divergence-free term.
2. The three-dimensional flow field testing method according to claim 1, characterized in that: In step A1, tracer particles are evenly spread in the flow field to be measured, and a high-power LED white light source is collimated by a convex lens and then focused onto a pair of parallel diffraction gratings by a cylindrical lens to obtain a volume polychromatic light with a wavelength of 420 to 680 nm and arranged sequentially along the depth direction, which is used to excite the tracer particles.
3. The three-dimensional flow field testing method according to claim 1, characterized in that: In step A3, when imaging the flow field to be measured, the depth of field range of the light field camera is greater than the depth of the polychromatic light.
4. A three-dimensional flow field testing system for implementing the three-dimensional flow field testing method according to any one of claims 1 to 3, characterized in that: include: (1) Light field cameras, including macro lenses, microlens arrays, primary lenses, and industrial cameras; (2) Volumetric polychromatic light illumination system, including an optical system of a high-power LED white light source, a pair of parallel diffraction gratings and a lens combination; (3) A data processor is used to reconstruct the three-dimensional flow field velocity vector field by obtaining the time-series particle light field images.
