Method for realizing integrated imaging super-resolution calculation reconstruction

Through the Depth-SRGAN network, the problem of image pixel matching errors in different viewpoint units in integrated imaging is solved, high-resolution three-dimensional image reconstruction is achieved, and image quality and analysis capabilities are improved.

CN118864249APending Publication Date: 2024-10-29XIAN UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880342.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

When improving the image resolution, the existing integrated imaging calculation reconstruction method fails to effectively reduce the pixel matching error between images of different viewpoint units, resulting in inaccurate depth plane information of the three-dimensional image and affecting the image quality.

Method used

Using Generative Adversarial Network (GAN) technology, especially Depth-SRGAN, by building a generator and discriminator network and using high-resolution and low-resolution unit image data sets for training, the pixel matching error is reduced, and directly from low-resolution High-resolution depth planes are reconstructed from rate images.

Benefits of technology

It significantly improves the accuracy of depth plane resolution of 3D calculation reconstruction, reduces pixel matching errors, more accurately restores the original 3D scene information, and does not require time-division multiplexing of the 3D oversampling method, improving training efficiency and image analysis capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864249A_ABST
    Figure CN118864249A_ABST
Patent Text Reader

Abstract

The invention discloses a method for realizing integrated imaging super-resolution calculation reconstruction. The method specifically comprises the following steps of: 1, acquiring a unit image array by using a camera array; step 2, making input data; step 3, making label data; 4, making a data set, and dividing the data set into a training set and a test set; step 5, constructing a generator network and setting parameters of each layer of the network; step 6, constructing a discriminator network and setting parameters of each layer of the network; step 7, constructing a Depth-SRGAN generative adversarial network (Depth-SRGAN); step 8, carrying out training on the constructed Depth-SRGAN network; and step 9, inputting the test set into the trained network to obtain a calculated and reconstructed high-resolution depth plane HR-Depth. According to the method provided by the invention, the resolution of the integrated imaging calculation reconstructed image is improved, and the original three-dimensional scene information is restored more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of three-dimensional display and relates to a method for realizing integrated imaging super-resolution calculation and reconstruction. Background Art

[0002] With the development of modern science and technology, three-dimensional imaging and display technology has received widespread attention due to its many applications in medicine, industry, entertainment and other fields. Among the many three-dimensional imaging and display technologies, integrated imaging technology is considered to be one of the most promising three-dimensional imaging and display technologies because it does not require the wearing of auxiliary viewing equipment, can work under incoherent light sources, has full-color parallax, continuous viewing angle, and does not produce visual fatigue. A typical integrated imaging system consists of two parts: acquisition and reproduction: During the acquisition process, the three-dimensional scene is acquired through a recording device such as a microlens array or a camera array, and the three-dimensional scene information from different viewpoints is recorded in a unit image. There are two methods for the reproduction process. One is optical display, that is, displaying the collected unit image array through a liquid crystal display, and pre-positioning a microlens array to reproduce the three-dimensional scene; the other is computational reconstruction, which maps the unit image to the image space through a series of computer-simulated virtual pinhole arrays. Each collected unit image is projected onto the desired reconstruction plane and overlaps with other projected unit images. The three-dimensional information of the stereoscopic reconstruction is obtained by calculating and reconstructing the depth plane layer by layer in the image space. Compared with optical display, computational reconstruction is not limited to hardware display devices, and can further perform three-dimensional image information analysis and processing, making the integrated imaging system more flexible and with broader application prospects. With people's pursuit of higher resolution of display devices in recent years, how to improve the resolution of three-dimensional images reconstructed by integrated imaging computation has become an important topic in the field of integrated imaging.

[0003] In order to improve the resolution of the reconstructed image, previous studies have proposed various methods: one method is to use the image interpolation algorithm to expand the resolution of each two-dimensional unit image through interpolation, and then perform three-dimensional computational reconstruction to improve the resolution of the depth plane. However, the pixels expanded by interpolation are not the actual sub-pixel information collected, and there may be a certain error with the true value, which will lead to inaccurate pixel information during computational reconstruction and affect the image quality. Another method is to use the traditional two-dimensional image super-resolution deep learning algorithm to process each collected unit image to obtain a high-resolution unit image, and then perform three-dimensional computational reconstruction. Compared with the interpolation method, this method has significantly improved the visual effect of the calculated reconstructed three-dimensional image depth plane. However, since this method introduces a large number of "predicted" pixels in the process of improving the resolution of unit images using the traditional two-dimensional image super-resolution deep learning algorithm (the deep learning algorithm predicts the output corresponding to a given input by learning the mapping relationship between input and output from a large number of existing data sets), it cannot guarantee that the "predicted" pixels of the same scene in each unit image are consistent, resulting in certain errors in the pixel matching calculation process of unit images from different viewpoints, affecting the quality of the calculated reconstructed depth plane image and is not conducive to further three-dimensional image information analysis and processing.

[0004] In summary, previous methods for improving the resolution of reconstructed images are mainly based on improving the resolution of each two-dimensional unit image, without considering the pixel matching error between unit images of different viewpoints from a full-link perspective, resulting in the inability of the depth plane pixel information of the reconstructed three-dimensional image to accurately restore the original three-dimensional scene, thus affecting the image quality. Summary of the invention

[0005] The purpose of the present invention is to provide a method for realizing integrated imaging super-resolution computational reconstruction, which improves the resolution of the integrated imaging computationally reconstructed image and more accurately restores the original three-dimensional scene information.

[0006] The technical solution adopted by the present invention is to realize a method for super-resolution computational reconstruction of integrated imaging, which specifically comprises the following steps:

[0007] Step 1, using a camera array to collect a unit image array;

[0008] Step 2, using the unit image array collected in step 1 to produce input data;

[0009] Step 3, using the unit image array collected in step 1 to create label data;

[0010] Step 4: Repeat steps 2 and 3 to create a data set, and divide the data set into a training set and a test set;

[0011] Step 5, build a generator network and set the parameters of each layer of the network;

[0012] Step 6: Build a discriminator network and set the parameters of each layer of the network;

[0013] Step 7, construct the Depth-SRGAN generative adversarial network using the generator network constructed in step 5 and the discriminator network constructed in step 6;

[0014] Step 8: Use the training set in step 4 to train the Depth-SRGAN network constructed in step 7;

[0015] In step 9, the test set in step 4 is input into the network trained in step 8 to obtain a high-resolution depth image HR-Depth.

[0016] The present invention is also characterized in that:

[0017] The specific process of step 1 is:

[0018] Step 1.1, build a real three-dimensional scene, use a resolution-switchable camera to build a camera array, and collect high-resolution unit images HR-EI and low-resolution unit images LR-EI respectively;

[0019] Step 1.2, build a virtual three-dimensional scene in the three-dimensional computer graphics software Blender, collect high-resolution unit images HR-E, and produce low-resolution unit images LR-EI;

[0020] Step 1.3, construct a unit image array based on the results obtained in step 1.1 and step 1.2, including a high-resolution unit image array denoted as HR-EIs and a low-resolution unit image array denoted as LR-EIs, which are used for subsequent generation and calculation of the reconstructed depth plane.

[0021] The specific process of step 2 is:

[0022] Step 2.1, use the nearest neighbor interpolation algorithm to perform virtual pixel mapping on each LR-EI in all low-resolution unit image arrays LR-EIs, that is, the resolution is enlarged by N x / n x times, the unit image pixel size is changed to c x ×c y ;

[0023] Step 2.2, through the virtual pinhole array simulated by the computer, all the enlarged unit images LR-EI in step 2.1 are mapped to the image space and overlapped with each other, and the three-dimensional information of the stereo reconstruction is obtained by calculating the reconstructed depth plane layer by layer in the image space. The process of calculating the value R(x, y, z) of each pixel point (x, y) on the reconstructed depth plane LR-Depth at z is as follows:

[0024]

[0025] Among them, S x and S y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, d is the distance between the unit image array and the pinhole array, z is the distance between the pinhole array and the depth plane for calculation and reconstruction, and E kl represents the unit image of the kth column and the lth row in LR-EIs, O(x, y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x, y) in calculating the reconstructed depth plane;

[0026] In step 2.3, for each group of LR-EIs enlarged in step 2.1, set at least 100 depth planes equally spaced according to z values, repeat step 2.2 for calculation and reconstruction, and obtain the LR-Depth dataset as the input dataset of the generator network.

[0027] The specific process of step 3 is:

[0028] Step 3.1, through the virtual pinhole array simulated by computer, all unit images HR-EI in step 1.3 are mapped to the image space and overlapped with each other, and the three-dimensional information of stereo reconstruction is obtained by calculating the reconstructed depth plane layer by layer in the image space. The process of calculating the value R'(x,y,z) of each pixel point (x,y) on the reconstructed depth plane Label-Depth at z is as follows:

[0029]

[0030] Among them, S' x and S' y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, R'(x, y, z) is the value of the pixel point (x, y) on the depth plane at the reconstruction z, and E' kl represents the unit image of the kth column and the lth row in HR-EIs, O'(x,y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x,y) in calculating the reconstructed depth plane;

[0031] In step 3.2, for each group of HR-EIs in step 1.3, set 100 depth planes equally spaced according to the z value, repeat step 3.1 to calculate and reconstruct, and obtain the Label-Depth dataset as the label dataset for the generator and discriminator.

[0032] The specific process of step 4 is:

[0033] Each LR-Depth in step 2.3 and the corresponding Label-Depth in step 3.2 are recorded as a group, a dataset is constructed, and the dataset is divided into a training dataset and a test dataset.

[0034] In step 5, the structure of the generator network is: shallow information extraction block → multi-scale deep information extraction block → output module;

[0035] The shallow information extraction block structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer → 3rd convolution layer → 3rd activation function layer → 4th convolution layer → 4th activation function layer;

[0036] The multi-scale depth information extraction block includes the DFERB block;

[0037] The DFERB block structure is: DIB-1→DIB-2→DIB-3→DIB-4→DIB-5. The five DIB blocks are connected by dense skip connections to form a DFERB block.

[0038] The structure of each DIB block is: the previous input layer → three parallel branches → feature fusion layer → the next output layer;

[0039] The structure of the first branch is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer.

[0040] The second branch structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer;

[0041] The third branch structure is: the first convolution layer → the first activation function layer;

[0042] The output module structure is: the first activation function layer → the first convolution layer → the second activation function layer;

[0043] The activation function of the first activation function layer adopts ReLU.

[0044] In step 6, the discriminator network structure is: 1st convolution layer → 1st activation function → 2nd convolution layer → 2nd activation function → 3rd convolution layer → 3rd activation function → 4th convolution layer → 4th activation function → 5th convolution layer → 5th activation function → 6th convolution layer → 6th activation function → 1st Dense layer → 7th activation function → 2nd Dense layer → sigmoid activation layer.

[0045] The specific process of step 7 is: the generator network of step 5 and the discriminator network of step 6 are cascaded to construct a generative adversarial network, the input of the generator network is the low-resolution depth plane image LR-Depth, and the output of the generator network is the reconstructed high-resolution depth plane image HR-Depth; the input of the discriminator network is the high-resolution depth plane image HR-Depth reconstructed by the generator, and the output of the discriminator network is the probability that the high-resolution depth plane image is true.

[0046] The specific process of step 8 is:

[0047] Step 8.1, define the generator loss function L G for:

[0048]

[0049] in, is the content loss function, is the perceptual loss function, To combat the loss function, λ 1 is the perceptual loss weight and λ 2 To counter the loss weight.

[0050] Step 8.2, define the discriminator loss function L D for:

[0051] L D =1-r out +f out (8)

[0052] Among them, r out is the probability that the label data is judged to be true, f out is the probability that the output of the generator is judged to be true;

[0053] In step 8.3, the Depth-SRGAN network is trained alternately in two stages.

[0054] The specific process of step 8.3 is:

[0055] Step 8.3.1: Pre-train the generator using the public dataset DIV2K, using the content loss function is the loss function;

[0056] Step 8.3.2, use the training data set generated in step 4 to conduct adversarial training on the generator network model and the discriminator network obtained in step 8.3.1, with L G is the generator loss function, L D is the discriminator loss function, and finally the generator network with a peak signal-to-noise ratio greater than 37dB for calculating and reconstructing the depth plane image is trained;

[0057] Step 8.3.3, save the weights of each convolution kernel of the generator network, the weights of the fully connected layer, and the weights of the activation function in the trained Depth-SRGAN network.

[0058] The beneficial effects of the present invention are as follows:

[0059] (1) More accurate restoration of the original three-dimensional scene information: Compared with the previous methods of improving the computational reconstruction resolution of integrated imaging, the present invention reduces the pixel matching error between unit images of different viewpoints in the previous methods, while improving the three-dimensional computational reconstruction depth plane resolution. At the same time, the original three-dimensional scene information is more accurately restored, which is beneficial to the subsequent three-dimensional image analysis and processing.

[0060] (2) Three-dimensional oversampling method without time division multiplexing: The present invention directly reconstructs the depth plane of a three-dimensional super-resolution image using a set of low-resolution unit images. Compared with the traditional integrated imaging that uses hardware means such as time division multiplexing and mechanical sub-pixel micro-scanning to achieve oversampling, the present invention can directly use the sub-pixel precision level of parallax information between unit images, break through the pixel size limit of the acquisition camera array sensor without the need for time division multiplexing and mechanical movement to add additional information, and realize the reconstruction of the depth plane of the three-dimensional super-resolution image. It is a more convenient and low-cost three-dimensional oversampling technology.

[0061] (3) It is convenient to obtain a large number of training data sets: Classic generative adversarial network data sets often require the capture of a large amount of input data and label data, and the expansion of the data set by cropping, rotating, etc. However, the present invention can conveniently obtain multiple sets of input data and label data by setting the parameter matrix of the depth plane position z for one-time calculation and reconstruction, without the need to expand the data set by cropping, rotating, etc., greatly improving the training efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the principle of eliminating sub-pixel parallax errors between unit images in the method for realizing integrated imaging super-resolution calculation and reconstruction of the present invention;

[0063] Figure 2 A schematic diagram of a camera array at an integrated imaging acquisition end in a method for realizing integrated imaging super-resolution computational reconstruction according to the present invention;

[0064] Figure 3 A schematic diagram of the Depth-SRGAN generator network structure in the method for realizing integrated imaging super-resolution computational reconstruction in the present invention;

[0065] Figure 4 The DFERB deep plane feature extraction residual block structure of the method for realizing integrated imaging super-resolution calculation and reconstruction of the present invention;

[0066] Figure 5 A schematic diagram of the DIB residual block structure of the method for realizing integrated imaging super-resolution calculation and reconstruction according to the present invention;

[0067] Figure 6 A schematic diagram of the network structure of the Depth-SRGAN discriminator for realizing the integrated imaging super-resolution computation and reconstruction method of the present invention;

[0068] Figure 7 The computationally reconstructed depth plane at z = 563 mm for conventional integrated imaging;

[0069] Figure 8 The calculated reconstructed depth plane at z = 563 mm after interpolation of the traditional unit image;

[0070] Fig. 9 The depth plane map is reconstructed by calculating the resolution of each unit image at z = 563 mm after the traditional SRGAN algorithm is used to improve the resolution;

[0071] Fig.10 The Depth-SRGAN method for realizing integrated imaging super-resolution computational reconstruction in the present invention calculates and reconstructs the depth plane HR-Depth at z=563mm;

[0072] Fig.11 The computationally reconstructed depth plane at z = 530 mm for conventional integrated imaging;

[0073] Fig.12 The calculated reconstructed depth plane at z = 530 mm after interpolation of the traditional unit image;

[0074] Fig.13 The depth plane is reconstructed by calculating the resolution of each unit image at z = 530 mm after using the traditional SRGAN algorithm to improve the resolution;

[0075] Fig.14 The Depth-SRGAN method for realizing the super-resolution computational reconstruction of integrated imaging in the present invention calculates and reconstructs the depth plane HR-Depth at z=530mm;

[0076] Fig.15The computationally reconstructed depth plane at z = 424 mm for conventional integrated imaging;

[0077] Fig.16 The calculated reconstructed depth plane at z = 424 mm after interpolation of the traditional unit image;

[0078] Fig.17 The depth plane is reconstructed by calculating the resolution of each unit image at z = 424 mm after using the traditional SRGAN algorithm to improve the resolution;

[0079] Fig.18 The Depth-SRGAN method for calculating and reconstructing the integrated imaging super-resolution is implemented in the present invention, and the calculation and reconstruction depth plane HR-Depth at z=424mm. DETAILED DESCRIPTION

[0080] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0081] Example 1

[0082] In order to improve the resolution of the image reconstructed by integrated imaging calculation and restore the original three-dimensional scene information more accurately, the present invention provides a Depth-SRGAN method for realizing integrated imaging super-resolution calculation reconstruction. The method first maps the unit image array to virtual pixels, as shown in the attached figure. Figure 1 As shown in the figure, on the basis of retaining the original collected pixel information through nearest neighbor interpolation, the pixel size Δx is reduced to Δx', which improves the sub-pixel level physical disparity Δd between actual viewpoints and the pixel disparity Δ between unit images. dpixel The matching accuracy between them can be improved to a certain extent, and the sub-pixel matching error between unit images of different viewpoints can be eliminated; then, the resolution of the calculated reconstructed depth plane after disparity matching is further improved by designing a super-resolution generative adversarial network Depth-SRGAN, and the sub-pixel image information reconstructed by the integrated imaging calculation is completely restored. The difference from the previous method is that the present invention reduces the pixel matching error between unit images of different viewpoints in the previous method, and on this basis, directly improves the resolution of the three-dimensional calculated reconstructed depth plane through a super-resolution deep learning algorithm, and more accurately restores the original three-dimensional scene information, which is beneficial to the subsequent three-dimensional image analysis and processing.

[0083] Example 2

[0084] The method of the present invention comprises the following steps:

[0085] Step 1, using a camera array to collect a unit image array;

[0086] Step 1.1, build a real 3D scene, use a camera with switchable resolution to build a camera array, and collect high-resolution elemental images HR-EI (High Resolution Elemental Images) and low-resolution elemental images LR-EI (Low Resolution Elemental Images):

[0087] Step 1.1.1, build a real three-dimensional scene;

[0088] Step 1.1.2, refer to the attached Figure 2 , use resolution-switchable cameras to build a K×L camera array, the cameras are evenly distributed in the same plane, and the optical axes of each camera are parallel to each other. The focal length of each camera is f, and the row and column spacing of the cameras are both p;

[0089] Step 1.1.3, use the camera array built in step 1.1.2 to collect the three-dimensional scene built in step 1.1.1, set the resolution parameters of each camera to the same high-resolution file, obtain a unit image array containing K×L high-resolution unit images HR-EI, and record the number of pixels contained in each unit image as N x ×N y , the pixel size of the HR-EI unit image is c x ×c y ;

[0090] Step 1.1.4, use the camera array built in step 1.1.2 to collect the three-dimensional scene built in step 1.1.1, set the resolution parameters of each camera to the same low-resolution file, obtain a unit image array containing K×L low-resolution unit images LR-EI, and record the number of pixels contained in each unit image as n x ×n y Since the camera sensor size remains unchanged, the LR-EI unit image pixel size is c x N x / n x ×c y N y / n y ;

[0091] Step 1.2, build a virtual 3D scene in Blender, a 3D computer graphics software, collect high-resolution unit images HR-EI, and produce low-resolution unit images LR-EI:

[0092] Step 1.2.1, build a virtual 3D scene in Blender;

[0093] Step 1.2.2, refer to the attached Figure 2, build a K×L virtual camera array in Blender, the cameras are evenly distributed on the same plane, and the optical axes of each camera are parallel to each other. The focal length of each camera is f, and the row and column spacing of the cameras are both p;

[0094] Step 1.2.3, use the camera array built in step 1.2.2 to capture the three-dimensional scene built in step 1.2.1, and obtain a unit image array containing K×L high-resolution unit images HR-EI, and the number of pixels contained in each unit image is set to N x ×N y , the pixel size of the HR-EI unit image is set to c x ×c y ;

[0095] Step 1.2.4, using Gaussian blur and bicubic interpolation cascade as the degradation model, blur each high-resolution unit image HR-EI collected in step 1.2.3 and then downsample it to obtain a unit image array containing K×L low-resolution unit images LR-EI, where the Gaussian kernel size and standard deviation of the Gaussian blur can be set according to the situation, and the downsampling multiple is N x / n x , the pixel size of the LR-EI unit image is c x N x / n x ×c y N y / n y ;

[0096] Step 1.3, construct the unit image array:

[0097] Step 1.3.1, build at least 10 real scenes of step 1.1.1, build the camera array of step 1.1.2, repeat steps 1.1.3 and 1.1.4 for each scene, and obtain at least 10 sets of high-resolution unit image arrays and corresponding low-resolution unit image arrays;

[0098] Step 1.3.2, build at least 30 virtual scenes of step 1.2.1, build the virtual camera array of step 1.2.2, repeat steps 1.2.3 and 1.2.4 for each virtual scene, and obtain at least 30 sets of high-resolution unit image arrays and corresponding low-resolution unit image arrays;

[0099] Step 1.3.3, a total of 40 groups of high-resolution unit image arrays collected in step 1.3.1 and step 1.3.2 are recorded as HR-EIs, which are used for the subsequent generation and calculation of the reconstructed depth plane Label-Depth, and a total of 40 groups of low-resolution unit image arrays collected in step 1.3.1 and step 1.3.2 are recorded as LR-EIs, which are used for the subsequent generation and calculation of the reconstructed depth plane LR-Depth;

[0100] Step 2, using the unit image array collected in step 1 to produce input data;

[0101] Step 2.1, use the nearest neighbor interpolation algorithm to perform virtual pixel mapping on each LR-EI in all low-resolution unit image arrays LR-EIs in step 1.3.3, that is, the resolution is enlarged by N x / n x times, the unit image pixel size is changed to c x ×c y ; The nearest neighbor interpolation algorithm is used because it is necessary to ensure that each pixel in the image is real collected data before inputting into the network;

[0102] Step 2.2, through the virtual pinhole array simulated by the computer, all the enlarged unit images LR-EI in step 2.1 are mapped to the image space and overlapped with each other, and the three-dimensional information of the stereo reconstruction is obtained by calculating the reconstructed depth plane layer by layer in the image space. The process of calculating the value R(x, y, z) of each pixel point (x, y) on the reconstructed depth plane LR-Depth at z is as follows:

[0103]

[0104] Among them, S x and S y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, d is the distance between the unit image array and the pinhole array, z is the distance between the pinhole array and the depth plane for calculation and reconstruction, and E kl represents the unit image of the kth column and the lth row in LR-EIs, O(x, y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x, y) in calculating the reconstructed depth plane;

[0105] Step 2.3, for the 40 groups of LR-EIs amplified in step 2.1, set at least 100 depth planes equally spaced according to z values ​​in each group, repeat step 2.2 to perform calculation and reconstruction, and obtain at least 4000 LR-Depths as the input data set of the generator network of the present invention;

[0106] Step 3, using the unit image array collected in step 1 to create label data;

[0107] Step 3.1, substitute each set of high-resolution unit image arrays HR-EIs in step 1.3.3 into the following formula to calculate the value R'(x, y, z) of each pixel point (x, y) on the depth plane Label-Depth at the reconstructed z. The process is as follows:

[0108]

[0109] Among them, S' x and S' y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, R'(x, y, z) is the value of the pixel point (x, y) on the depth plane at the reconstruction z, and E' kl represents the unit image of the kth column and the lth row in HR-EIs, O'(x,y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x,y) in calculating the reconstructed depth plane;

[0110] Step 3.2, for 40 groups of unit image arrays HR-EIs, set at least 100 equally spaced depth planes in each group, repeat step 3.1 to perform calculation and reconstruction, and obtain at least 4000 Label-Depths as the label data set of the generator and discriminator of the present invention;

[0111] Step 4, repeat steps 2 and 3 to make a data set, and divide the data set into a training set and a test set: record each LR-Depth in step 2.3 and the corresponding Label-Depth in step 3.2 as a group, a total of 4000 data sets, divide these 4000 data sets into 3500 training data sets and 500 test data sets;

[0112] Step 5: Build a generator network and set the parameters of each layer of the network as the generator network of the Depth-SRGAN generative adversarial network: refer to the attached Figure 3 , the generator network structure in the Depth-SRGAN generative adversarial network constructed by the present invention is further described in detail, Figure 3 Here k is the convolution kernel size of the convolution layer, n is the output channel size, s is the convolution step size, and the unidirectional arrows represent the feature connection relationship. The structure of the generator network is: shallow information extraction block → multi-scale deep information extraction block → output module.

[0113] The shallow information extraction block structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer → 3rd convolution layer → 3rd activation function layer → 4th convolution layer → 4th activation function layer. The activation function uses ReLU activation function.

[0114] The multi-scale depth information extraction block consists of DFERB blocks.

[0115] Refer to the attached Figure 4 , attached Figure 4 The unidirectional arrows in the figure represent the feature connection relationship. The DFERB block structure is DIB-1→DIB-2→DIB-3→DIB-4→DIB-5. The structures of DIB-1, DIB-2, DIB-3, DIB-4, and DIB-5 are exactly the same. The numbers 1 to 5 are just to distinguish the five DIB blocks and have no special meaning. The five DIB blocks are connected to form a DFERB block using dense skip connections. The input of each DIB block is directly connected to its own output and the output of all subsequent DIB blocks. The dense skip connection method can improve the learning efficiency of the network while increasing the depth of the network, avoiding worse training results after introducing deeper layers.

[0116] Refer to the attached Figure 5 , attached Figure 5 The unidirectional arrows in the figure represent the feature connection relationship. The DIB block structure is as follows: the previous input layer → three parallel branches → feature fusion layer → the next output layer.

[0117] The structure of the first branch is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer.

[0118] The second branch structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer.

[0119] The structure of the third branch is: the first convolution layer → the first activation function layer.

[0120] The output module structure is: 1st activation function layer → 1st convolution layer → 2nd activation function layer.

[0121] Step 6: Build a discriminator network and set the parameters of each layer of the network, and use it as the discriminator network of the Depth-SRGAN generative adversarial network. Figure 6 , the discriminator network structure in the Depth-SRGAN generative adversarial network constructed by the present invention is further described in detail, Figure 6 Where k is the convolution kernel size of the convolution layer, n is the output channel size, s is the convolution step size, and the unidirectional arrows represent the feature connection relationship; the discriminator network structure is: the first convolution layer → the first activation function → the second convolution layer → the second activation function → the third convolution layer → the third activation function → the fourth convolution layer → the fourth activation function → the fifth convolution layer → the fifth activation function → the sixth convolution layer → the sixth activation function → the first Dense (fully connected layer) layer → the seventh activation function → the second Dense layer → the sigmoid activation layer.

[0122] Step 7: Construct a Depth-SRGAN generative adversarial network based on the generator network of step 5 and the discriminator network of step 6. The Depth-SRGAN generative adversarial network is composed of the generator network of step 5 and the discriminator network of step 6 in cascade. The input of the generator is the low-resolution depth plane image LR-Depth, and the output is the reconstructed high-resolution depth plane image HR-Depth; the input of the discriminator is the high-resolution depth plane image HR-Depth reconstructed by the generator, and the output is the probability that the high-resolution depth plane image is true.

[0123] Step 8, train the Depth-SRGAN generative adversarial network constructed in step 7 using the training set in step 4;

[0124] Step 8.1, define the generator loss function as:

[0125]

[0126] in, is the content loss function, is the perceptual loss function, To combat the loss function, λ 1 is the perceptual loss weight and λ 2 To counter the loss weight.

[0127] Step 8.2, define the discriminator loss function as:

[0128] L D =1-r out +f out (8)

[0129] Among them, r out is the probability that the label data is judged to be true, f out is the probability that the generator output is judged to be true.

[0130] Step 8.3, the Depth-SRGAN network is trained alternately in two stages:

[0131] Step 8.3.1: Pre-train the generator using the public dataset DIV2K with content loss is the loss function, 500 cycles are set during training, and the learning rate is set to 1×10 -4 , train a generator network with a Peak Signal-to-Noise Ratio (PSNR) greater than 37dB.

[0132] Step 8.3.2, use the training data set generated in step 4 to conduct adversarial training on the generator network model and the discriminator network obtained in step 8.3.1, with L Gis the generator loss function, L D For the discriminator loss function, set 1000 training cycles and set the learning rate to 1×10 at the beginning of training. -2 , every 200 cycles of iteration, the learning rate decays to 0.1 times of the original value, the parameter α of the Leaky ReLU activation function used in the network is set to 0.2, and the Adam optimizer is used to update the network parameters. 1 Set to 0.9, β 2 Set to 0.999. The batch size is set to 15 during training. 1 Set to 0.004, λ 2 It is set to 0.001, and the final training results in a generator network with a peak signal-to-noise ratio greater than 37dB for calculating and reconstructing depth plane images.

[0133] Step 8.3.3, save the weights of each convolution kernel of the generator network, the weights of the fully connected layer, and the weights of the activation function in the trained Depth-SRGAN network.

[0134] Step 9: Use the generator trained in step 8 to test the test data set in step 4. Use the low-resolution depth plane LR-Depth in the test data set as input and reconstruct it through the generator to obtain the high-resolution depth plane HR-Depth.

[0135] Example 3

[0136] Step 1, using a camera array to collect a unit image array;

[0137] Step 1.1, build a real 3D scene, use a small industrial camera with switchable resolution to build a camera array, and collect high-resolution unit images HR-EI with a resolution of 640×480 and low-resolution unit images LR-EI with a resolution of 160×120:

[0138] Step 1.1.1, build a real three-dimensional scene;

[0139] Step 1.1.2, refer to the attached Figure 2 , a 4×4 camera array was built using industrial small cameras with switchable resolutions. The cameras were evenly distributed on the same plane, and the optical axes of each camera were parallel to each other. The focal length of each camera was f=2.8mm, and the row and column spacing of the cameras were both p=20mm;

[0140] Step 1.1.3, use the camera array built in step 1.1.2 to collect the 3D scene built in step 1.1.1, set the resolution parameters of each camera to the same high-resolution file, and obtain a unit image array containing 4×4 high-resolution unit images HR-EI, each unit image contains N pixels x ×N y =640×480, the pixel size of the HR-EI unit image is c x ×c y =3.9μm×5.2μm;

[0141] Step 1.1.4, use the camera array built in step 1.1.2 to collect the 3D scene built in step 1.1.1, set the resolution parameters of each camera to the same low resolution file, and obtain a unit image array containing 4×4 low-resolution unit images LR-EI, each unit image contains n pixels x ×n y =160×120. Since the camera sensor size remains unchanged, the pixel size of the LR-EI unit image is c x N x / n x ×c y N y / n y =15.6μm×20.8μm;

[0142] Step 1.2, build a virtual 3D scene in Blender, a 3D computer graphics software, collect high-resolution unit images HR-EI, and produce low-resolution unit images LR-EI:

[0143] Step 1.2.1, build a virtual 3D scene in Blender;

[0144] Step 1.2.2, refer to the attached Figure 2 , build a 4×4 virtual camera array in Blender, the cameras are evenly distributed on the same plane, and the optical axes of each camera are parallel to each other. The focal length of each camera is f=2.8mm, and the row and column spacing of the cameras are both p=20mm;

[0145] Step 1.2.3, use the camera array built in step 1.2.2 to capture the three-dimensional scene built in step 1.2.1, and obtain a unit image array containing 4×4 high-resolution unit images HR-EI, and the number of pixels contained in each unit image is set to N x ×N y =640×480, the pixel size of the HR-EI unit image is set to c x ×c y =3.9μm×5.2μm;

[0146] Step 1.2.4, using Gaussian blur and bicubic interpolation cascade as the degradation model, blur each high-resolution unit image HR-EI collected in step 1.2.3 and then downsample it to obtain a unit image array containing 4×4 low-resolution unit images LR-EI, where the Gaussian kernel size of the Gaussian blur is 5×5 and the downsampling multiple is N x / n x =4, the pixel size of the LR-EI unit image is changed to c x N x / n x ×c y N y / n y =15.6μm×20.8μm;

[0147] Step 1.3, construct the unit image array:

[0148] Step 1.3.1, build 10 real scenes of step 1.1.1, build the camera array of step 1.1.2, repeat steps 1.1.3 and 1.1.4 for each scene, and obtain 10 sets of high-resolution unit image arrays and corresponding low-resolution unit image arrays;

[0149] Step 1.3.2, build 30 virtual scenes of step 1.2.1, build the virtual camera array of step 1.2.2, repeat steps 1.2.3 and 1.2.4 for each virtual scene, and obtain 30 sets of high-resolution unit image arrays and corresponding low-resolution unit image arrays;

[0150] Step 1.3.3, a total of 40 groups of high-resolution unit image arrays collected in step 1.3.1 and step 1.3.2 are recorded as HR-EIs, which are used to generate the calculation and reconstruction depth plane Label-Depth, and a total of 40 groups of low-resolution unit image arrays collected in step 1.3.1 and step 1.3.2 are recorded as LR-EIs, which are used to generate the calculation and reconstruction depth plane LR-Depth;

[0151] Step 2, using the unit image array collected in step 1 to produce input data;

[0152] Step 2.1, use the nearest neighbor interpolation algorithm to enlarge the resolution of each LR-EI in all low-resolution unit image arrays LR-EIs in step 1.3.3 by N x / n x =4 times, the unit image pixel size is changed to c x ×c y =3.9μm×5.2μm;

[0153] Step 2.2, substitute each group of unit image arrays LR-EIs after enlargement in step 2.1 into the following formula to calculate the value R(x, y, z) of each pixel point (x, y) on the depth plane LR-Depth at the reconstructed z, the process is as follows:

[0154]

[0155] Among them, S x and S y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, d is the distance between the unit image array and the pinhole array, z is the distance between the pinhole array and the depth plane for calculation and reconstruction, and E kl represents the unit image of the kth column and the lth row in LR-EIs, O(x, y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x, y) in calculating the reconstructed depth plane;

[0156] Step 2.3: For each of the 40 groups of LR-EIs amplified in step 2.1, set 100 depth planes equally spaced according to z values, with an interval of Δ depth =5mm, repeat step 2.2 to calculate and reconstruct, and obtain 4000 LR-Depths as the input data set of the generator network of the present invention;

[0157] Step 3, using the unit image array collected in step 1 to create label data;

[0158] Step 3.1, substitute each set of high-resolution unit image arrays HR-EIs in step 1.3.3 into the following formula to calculate the value R'(x, y, z) of each pixel point (x, y) on the depth plane Label-Depth at the reconstructed z. The process is as follows:

[0159]

[0160] Among them, S' x and S' y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, R'(x, y, z) is the value of the pixel point (x, y) on the depth plane at the reconstruction z, and E' kl represents the unit image of the kth column and the lth row in HR-EIs, O'(x,y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x,y) in calculating the reconstructed depth plane;

[0161] Step 3.2: For the 40 sets of unit image arrays HR-EIs, set 100 equally spaced depth planes in each set, with an interval of Δ depth=5mm, repeat step 3.1 to calculate and reconstruct, and obtain 4000 Label-Depths as the label data set of the generator and discriminator of the present invention;

[0162] Step 4, generate a dataset and divide it into a training set and a test set: record each LR-Depth in step 2.3 and the corresponding Label-Depth in step 3.2 as a group, a total of 4000 datasets, divide these 4000 datasets into 3500 training datasets and 500 test datasets;

[0163] Step 5, construct the generator network structure of the Depth-SRGAN network;

[0164] Refer to the attached Figure 3 , the generator structure is: shallow information extraction block → multi-scale depth information extraction block (Depth plane feature extraction residual blocks, DFERB) → output module. Where k represents the size of the convolution kernel, n represents the number of output channels of the convolution layer, and s represents the step size of the convolution. ReLU and LeakyReLU are activation functions. The generator network directly improves the image quality and resolution of the reconstructed depth plane of the integrated imaging calculation. Its input is LR-Depth, and the output is recorded as the high-resolution depth plane HR-Depth.

[0165] Step 5.1, the shallow information extraction block in the generator structure mainly extracts features from the shallow pixel information of the calculated reconstructed depth plane LR-Depth, which is used to extract the shallow information of the calculated reconstructed depth image. The process of shallow information extraction of the depth plane image by the shallow information extraction block is expressed as:

[0166] F 0 =h Ξ (I LR )

[0167] Among them, I LR h is the input low-resolution depth image LR-Depth. Ξ (·) represents the convolution operation performed by four convolutional layers and the subsequent activation functions on the low-resolution depth image. 0 Represents shallow image information extracted from a low-resolution depth image.

[0168] The structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer → 3rd convolution layer → 3rd activation function layer → 4th convolution layer → 4th activation function layer.

[0169] The convolution kernel size of the first convolution layer is 9×9, the output channel size is 64, and the convolution step size is 1.

[0170] The convolution kernel size of the second convolution layer is 5×5, the output channel size is 32, and the convolution step size is 1.

[0171] The convolution kernel size of the third convolutional layer is 5×5, the output channel size is 64, and the convolution step size is 1.

[0172] The convolution kernel size of the 4th convolutional layer is 5×5, the output channel size is 32, and the convolution step size is 1.

[0173] The convolutional layer weights are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0174] The activation function uses the ReLU activation function.

[0175] Step 5.2, the multi-scale depth information extraction block DFERB extracts the shallow image information F extracted in step 5.1 0 Further convolution processing is performed to learn deeper feature information in the low-resolution depth image in parallel through 5 skip-connected DIB blocks. This process can be expressed as:

[0176] F 1 =h DFERB (F 0 )

[0177] Among them, F 1 Indicates the deep plane image information extracted by the DFERB block, h DFERB (·) is the convolution and other related operations performed by the DFERB block on the depth plane image.

[0178] See attached Figure 4 , the DFERB block structure is as follows:

[0179] DIB-1→DIB-2→DIB-3→DIB-4→DIB-5. The five DIB blocks are connected to form a DFERB block using dense skip connections. The input of each DIB block is directly connected to its own output and the output of all subsequent DIB blocks. The dense skip connection method can improve the learning efficiency of the network while increasing the network depth, avoiding worse training results after introducing deeper layers. At the same time, as the network depth increases, the number of LeakyReLU activation functions is also increasing, which adds a lot of nonlinearity to the generator network, which can enhance the network's ability to learn more complex image information, thereby learning more nonlinear relationships between low-resolution depth images and high-resolution depth images.

[0180] Step 5.3, refer to the attached Figure 5 , attached Figure 5The unidirectional arrows in the figure represent the feature connection relationship. The DIB block structure is as follows: the previous input layer → three parallel branches → feature fusion layer → the next output layer.

[0181] The structure of the first branch is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer.

[0182] The convolution kernel size of the first convolutional layer is 1×1, the output channel size is 32, and the convolution step size is 1.

[0183] The convolution kernel size of the second convolution layer is 5×5, the output channel size is 32, and the convolution step size is 1.

[0184] The convolutional layer weights are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0185] The activation function uses the LeakyReLU activation function, and the slope is set to 0.2.

[0186] The second branch structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer.

[0187] The convolution kernel size of the first convolutional layer is 1×1, the output channel size is 32, and the convolution step size is 1.

[0188] The convolution kernel size of the second convolutional layer is 9×9, the output channel size is 32, and the convolution step size is 1.

[0189] The convolutional layer weights are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0190] The activation function uses the LeakyReLU activation function, and the slope is set to 0.2.

[0191] The structure of the third branch is: the first convolution layer → the first activation function layer.

[0192] The convolution kernel size of the first convolutional layer is 1×1, the output channel size is 32, and the convolution step size is 1.

[0193] The convolutional layer weights are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0194] The activation function uses the LeakyReLU activation function, and the slope is set to 0.2.

[0195] In the DIB block, a larger convolution layer is used, and the size of the middle convolution layer is set to 5×5 and 9×9. This is because the calculation of the reconstructed depth plane image will have defocusing in details, and a small convolution kernel is prone to overfitting when extracting features. Using a larger convolution kernel can enhance the network's learning ability to calculate the reconstructed depth plane information. In addition, a LeakyReLU activation function is added after each convolution layer to activate neurons. Compared with the ReLU activation function, LeakyReLU has stronger expression ability in the negative value range of the input. During the training process, it will not directly discard the image information in the negative value range, making the network's learning ability stronger, but it will also cause the convergence speed of the network to slow down to a certain extent during training, affecting the calculation efficiency. Finally, the image information extracted in parallel on different paths is fused.

[0196] Step 5.4, the output module structure is: 1st activation function layer → 1st convolution layer → 2nd activation function layer. The output module converts the image information F processed by the previous layer into 1 The number of channels is reduced to 3 and converted into an image that can be output. This conversion process can be expressed as.

[0197] F 2x =h out (F 1 )

[0198] F 2x It is the integrated imaging high-resolution depth plane image HR-Depth after reconstruction by the super-resolution generator network. out (F 1 ) indicates that the output module is F 1 The convolution operation and channel dimension reduction operation are performed, and the specific parameters of the output module are as follows:

[0199] The activation function of the first activation function layer adopts ReLU.

[0200] The convolution kernel size of the first convolution layer is 5×5, the output channel size is 3, and the convolution stride is 1.

[0201] The convolutional layer weights are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0202] The activation function of the second activation function layer uses the LeakyReLU activation function, and the slope is set to 0.2.

[0203] Step 6: Construct the discriminator network structure of the Depth-SRGAN generative adversarial network.

[0204] Refer to the attached Figure 6, the discriminator network structure is: 1st convolution layer → 1st activation function → 2nd convolution layer → 2nd activation function → 3rd convolution layer → 3rd activation function → 4th convolution layer → 4th activation function → 5th convolution layer → 5th activation function → 6th convolution layer → 6th activation function → 1st Dense (fully connected layer) layer → 7th activation function → 2nd Dense layer → sigmoid activation layer.

[0205] The parameters of each layer of the discriminator network are set as follows:

[0206] The convolution kernel size of the first convolution layer is 3×3, the output channel size is 64, and the convolution step size is 1.

[0207] The convolution kernel size of the second convolutional layer is 3×3, the output channel size is 128, and the convolution stride is 2.

[0208] The convolution kernel size of the third convolutional layer is 3×3, the output channel size is 128, and the convolution step size is 1.

[0209] The convolution kernel size of the 4th convolutional layer is 3×3, the output channel size is 256, and the convolution stride is 2.

[0210] The convolution kernel size of the 5th convolutional layer is 3×3, the output channel size is 512, and the convolution step size is 1.

[0211] The convolution kernel size of the 6th convolutional layer is 3×3, the output channel size is 512, and the convolution stride is 2.

[0212] The output size of the first Dense layer is 1024.

[0213] The output size of the second Dense layer is 1.

[0214] The discriminator activation function uses the LeakyReLU activation function, and the slope is set to 0.2.

[0215] The weights of the Dense layer are initialized to random values ​​that satisfy a normal distribution with a standard deviation of 0.02.

[0216] Step 7: Build the Depth-SRGAN generative adversarial network.

[0217] The Depth-SRGAN generative adversarial network consists of a cascade of the generator network in step 5 and the discriminator network in step 6. The input of the generator is a low-resolution depth plane image LR-Depth, and the output is a reconstructed high-resolution depth plane image HR-Depth; the input of the discriminator is a high-resolution depth plane image HR-Depth reconstructed by the generator, and the output is the probability that the high-resolution depth plane image is true.

[0218] Step 8: Train the Depth-SRGAN generative adversarial network constructed in step 7 using the training set in step 4. The generator loss function is:

[0219]

[0220] in, is the content loss function, is the perceptual loss function, To combat the loss function, λ 1 is the perceptual loss weight and λ 2 is the adversarial loss weight. The discriminator loss function is:

[0221] L D =1-r out +f out

[0222] Among them, r out is the probability that the label data is judged to be true, f out is the probability that the generator output is judged to be true.

[0223] The discriminator network and the generator network are trained alternately. The resolution magnification of the model is 4 times. The Depth-SRGAN generator is trained in two stages. The software and hardware parameters used in the training are shown in Table 1.

[0224] Table 1

[0225] Software / Hardware Version / Model CPU Intel Core i5-12400f GPU NVIDIARTX4060ti Memory 16G operating system Windows 10 Deep Learning Frameworks Pytorch 1.12.1 CUDA 11.6 Python 3.8

[0226] Step 8.1, the first stage is the pre-training process, using the public dataset DIV2K to train the generator with content loss is the loss function, 500 cycles are set during training, and the learning rate is set to 1×10 -4 , train a generator network with a Peak Signal-to-Noise Ratio (PSNR) value greater than 37dB.

[0227] Step 8.2, the second stage uses the generator network model obtained in the first stage of step 8.1 to perform adversarial training with the discriminator network. This stage uses a self-made deep plane dataset with L G is the generator loss function L D Train the discriminator loss function for 1000 training cycles and set the learning rate to 1×10 at the beginning of training. -2 , every 200 cycles of iteration, the learning rate decays to 0.1 times of the original value, the parameter α of the Leaky ReLU activation function used in the network is set to 0.2, and the Adam optimizer is used to update the network parameters.1 Set to 0.9, β 2 Set to 0.999. The batch size is set to 15 during training. 1 Set to 0.004, λ 2 Set to 0.001. For the trained depth plane images, train a generator network with a PSNR value greater than 37dB.

[0228] Save the weights of each convolution kernel of each convolution layer of the generator network in the trained Depth-SRGAN network, the weights of the fully connected layer, and the weights of the activation function.

[0229] Step 9, network test: Use the generator trained in step 8, use the low-resolution depth plane LR-Depth in the dataset as input, and reconstruct the high-resolution depth plane HR-Depth after the generator, and complete the test on the trained generator. The test results select three depth planes of 424mm, 530mm, and 563mm in a scene for comparison. The PSNR and SSIM calculation results are shown in Table 2. It can be seen from the table that compared with LR-Depth, HR-Depth has increased from 22.8283 to 37.6188 in PSNR value, and increased from 0.7673 to 0.9490 in SSIM value, which proves the effectiveness of the Depth-SRGAN network.

[0230] Table 2

[0231]

[0232] The calculation and reconstruction results of the method of the present invention and other methods are compared as follows:

[0233] Figure 7 The depth plane reconstructed by traditional integrated imaging at z = 563 mm. Figure 8 The calculated reconstructed depth plane at z = 563 mm after the traditional unit image interpolation, Fig. 9 The depth plane map is reconstructed by calculating the resolution of each unit image at z = 563 mm using the traditional SRGAN algorithm. Fig.10 The Depth-SRGAN method for calculating and reconstructing the integrated imaging super-resolution is implemented in the present invention, and the calculation and reconstruction depth plane HR-Depth at z=563mm.

[0234] Figures 7-10 The medium resolution target is located at the 563mm depth plane. From the enlarged partial image, we can see Figure 8 Although the resolution of the reconstructed image after bicubic interpolation is Figure 7The resolution of traditional integrated imaging calculation reconstruction has been improved, but the visual effect is still blurry and the expression of details is poor. Fig. 9 The computational reconstruction resolution of the SRGAN method is compared to Figure 8 The computational reconstruction resolution of the interpolation method has been further improved, but the target in the center is still not clearly distinguishable, and there is a certain ringing effect in the image, which affects the visual effect. Fig.10 The method used in the present invention is significantly better than Figures 7 to 9 The first three methods can distinguish more detailed targets in the center without obvious ringing effect, and the visual effect is better.

[0235] Fig.11 The depth plane reconstructed by traditional integrated imaging at z = 530 mm. Fig.12 The calculated reconstructed depth plane at z = 530 mm after interpolation of the traditional unit image, Fig.13 The depth plane is reconstructed at z = 530 mm after the resolution is increased by the traditional SRGAN algorithm for each unit image. Fig.14 The Depth-SRGAN method for calculating and reconstructing the integrated imaging super-resolution is implemented in the present invention, and the calculation and reconstruction depth plane HR-Depth at z=530mm.

[0236] Figures 11 to 14 The "letter U" in the figure is located at the 530mm depth plane. It can be seen from the partial enlarged picture that Fig.12 The calculated reconstruction resolution after bicubic interpolation is compared with Fig.11 The traditional integrated imaging computational reconstruction has been improved, but the visual effect is still fuzzy and the edge of the "letter U" is not clear enough. Fig.13 The computational reconstruction resolution of the SRGAN method is compared to Fig.12 The bicubic interpolation method has been further improved, and the overall visual effect is better. The "letter U" is clearer, but there is a ringing effect at the edge of the image. Fig.14 The calculation and reconstruction effect of the method adopted by the present invention is significantly better than that of Fig.11 , 12 , which performs better on the details of the letter "U", compared to Fig.13 There is no obvious ringing effect and the visual effect is better.

[0237] Fig.15 The depth plane reconstructed by traditional integrated imaging at z = 424 mm. Fig.16 The calculated reconstructed depth plane at z = 424 mm after interpolation of the traditional unit image, Fig.17 For each unit image, the traditional SRGAN algorithm is used to improve the resolution and reconstruct the depth plane at z = 424 mm. Fig.18The Depth-SRGAN method for calculating and reconstructing the integrated imaging super-resolution is implemented in the present invention, and the calculation and reconstruction depth plane HR-Depth at z=424mm.

[0238] Figures 15 to 18 The "letter T" in the figure is located at the 424mm depth plane. It can be seen from the partial enlarged picture that Fig.16 The calculated reconstruction resolution after bicubic interpolation is compared with Fig.15 There has been some improvement, but the visual effect is still blurry and the expression of details is poor. Fig.17 The computational reconstruction resolution of the SRGAN method is compared to Fig.16 The bicubic interpolation method has been further improved, and the edge of the "letter T" is clearer. The resolution of the reconstruction calculated by the method used in the present invention is better than Figures 15 to 17 Among the first three methods, the edge of the "letter T" is clearer and the visual effect is better.

Claims

1. A method for realizing integrated imaging super-resolution computational reconstruction, characterized in that: The specific steps include: Step 1, using a camera array to collect a unit image array; Step 2, using the unit image array collected in step 1 to produce input data; Step 3, using the unit image array collected in step 1 to create label data; Step 4: Repeat steps 2 and 3 to create a data set, and divide the data set into a training set and a test set; Step 5, build a generator network and set the parameters of each layer of the network; Step 6: Build a discriminator network and set the parameters of each layer of the network; Step 7, construct the Depth-SRGAN generative adversarial network using the generator network constructed in step 5 and the discriminator network constructed in step 6; Step 8: Use the training set in step 4 to train the Depth-SRGAN network constructed in step 7; In step 9, the test set in step 4 is input into the network trained in step 8 to obtain a high-resolution depth image HR-Depth.

2. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 1, characterized in that: The specific process of step 1 is as follows: Step 1.1, build a real three-dimensional scene, use a resolution-switchable camera to build a camera array, and collect high-resolution unit images HR-EI and low-resolution unit images LR-EI respectively; Step 1.2, build a virtual three-dimensional scene in the three-dimensional computer graphics software Blender, collect high-resolution unit images HR-E, and produce low-resolution unit images LR-EI; Step 1.3, construct a unit image array based on the results obtained in step 1.1 and step 1.2, including a high-resolution unit image array denoted as HR-EIs and a low-resolution unit image array denoted as LR-EIs, which are used for subsequent generation and calculation of the reconstructed depth plane.

3. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 2, characterized in that: The specific process of step 2 is as follows: Step 2.1, use the nearest neighbor interpolation algorithm to perform virtual pixel mapping on each LR-EI in all low-resolution unit image arrays LR-EIs, that is, the resolution is enlarged by N x / n x times, the unit image pixel size is changed to c x ×c y ; Step 2.2, through the virtual pinhole array simulated by the computer, all the enlarged unit images LR-EI in step 2.1 are mapped to the image space and overlapped with each other, and the three-dimensional information of the stereo reconstruction is obtained by calculating the reconstructed depth plane layer by layer in the image space. The process of calculating the value R(x, y, z) of each pixel point (x, y) on the reconstructed depth plane LR-Depth at z is as follows: Among them, S x and S y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, d is the distance between the unit image array and the pinhole array, z is the distance between the pinhole array and the depth plane for calculation and reconstruction, and E kl represents the unit image of the kth column and the lth row in LR-EIs, O(x, y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x, y) in calculating the reconstructed depth plane; In step 2.3, for each group of LR-EIs enlarged in step 2.1, set at least 100 depth planes equally spaced according to z values, repeat step 2.2 for calculation and reconstruction, and obtain the LR-Depth dataset as the input dataset of the generator network.

4. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 3, characterized in that: The specific process of step 3 is as follows: Step 3.1, Step 3.1, through the virtual pinhole array simulated by computer, all unit images HR-EI in step 1.3 are mapped to the image space and overlapped with each other, and the three-dimensional information of stereo reconstruction is obtained by calculating the reconstructed depth plane layer by layer in the image space. The process of calculating the value R'(x, y, z) of each pixel point (x, y) on the reconstructed depth plane Label-Depth at z is as follows: Among them, S' x and S' y To calculate the number of pixels that the unit image needs to move in the horizontal and vertical directions during reconstruction, R'(x, y, z) is the value of the pixel point (x, y) on the depth plane at the reconstruction z, and E' kl represents the unit image of the kth column and the lth row in HR-EIs, O'(x,y) represents the number of times the pixels of different unit images are superimposed at the pixel point (x,y) in calculating the reconstructed depth plane; In step 3.2, for each group of HR-EIs in step 1.3, set 100 depth planes equally spaced according to the z value, repeat step 3.1 to calculate and reconstruct, and obtain the Label-Depth dataset as the label dataset for the generator and discriminator.

5. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 4, characterized in that: The specific process of step 4 is as follows: Each LR-Depth in step 2.3 and the corresponding Label-Depth in step 3.2 are recorded as a group, a dataset is constructed, and the dataset is divided into a training dataset and a test dataset.

6. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 5, characterized in that: In step 5, the structure of the generator network is: shallow information extraction block → multi-scale deep information extraction block → output module; The shallow information extraction block structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer → 3rd convolution layer → 3rd activation function layer → 4th convolution layer → 4th activation function layer; The multi-scale depth information extraction block includes the DFERB block; The DFERB block structure is: DIB-1→DIB-2→DIB-3→DIB-4→DIB-5. The five DIB blocks are connected by dense skip connections to form a DFERB block. The structure of each DIB block is: the previous input layer → three parallel branches → feature fusion layer → the next output layer; The first branch structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer; The second branch structure is: 1st convolution layer → 1st activation function layer → 2nd convolution layer → 2nd activation function layer; The third branch structure is: the first convolution layer → the first activation function layer; The output module structure is: the first activation function layer → the first convolution layer → the second activation function layer; The activation function of the first activation function layer adopts ReLU.

7. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 6, characterized in that: In the step 6, the discriminator network structure is: the first convolution layer → the first activation function → the second convolution layer → the second activation function → the third convolution layer → the third activation function → the fourth convolution layer → the fourth activation function → the fifth convolution layer → the fifth activation function → the sixth convolution layer → the sixth activation function → the first Dense layer → the seventh activation function → the second Dense layer → the sigmoid activation layer.

8. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 7, characterized in that: The specific process of step 7 is: the generator network of step 5 and the discriminator network of step 6 are cascaded to construct a generative adversarial network, the input of the generator network is the low-resolution depth plane image LR-Depth, and the output of the generator network is the reconstructed high-resolution depth plane image HR-Depth; the input of the discriminator network is the high-resolution depth plane image HR-Depth reconstructed by the generator, and the output of the discriminator network is the probability that the high-resolution depth plane image is true.

9. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 8, characterized in that: The specific process of step 8 is as follows: Step 8.1, define the generator loss function L G for: in, is the content loss function, is the perceptual loss function, is the adversarial loss function, λ1 is the perceptual loss weight and λ2 is the adversarial loss weight; Step 8.2, define the discriminator loss function L D for: L D =1-r out +f out (8) Among them, r out is the probability that the label data is judged to be true, f out is the probability that the output of the generator is judged to be true; In step 8.3, the Depth-SRGAN network is trained alternately in two stages.

10. The method for realizing integrated imaging super-resolution computational reconstruction according to claim 9, characterized in that: The specific process of step 8.3 is as follows: Step 8.3.1: Pre-train the generator using the public dataset DIV2K, using the content loss function is the loss function; Step 8.3.2, use the training data set generated in step 4 to conduct adversarial training on the generator network model and the discriminator network obtained in step 8.3.1, with L G is the generator loss function, L D is the discriminator loss function, and finally the generator network with a peak signal-to-noise ratio greater than 37dB for calculating and reconstructing the depth plane image is trained; Step 8.3.3, save the weights of each convolution kernel of the generator network, the weights of the fully connected layer, and the weights of the activation function in the trained Depth-SRGAN network.