Light field super-resolution reconstruction method based on residual learning and spatial transformer network
Through deep learning technology, spatial transformation network and recursive learning method are used to extract sub-viewpoint information of light field images, solving the problem of limited resolution of light field images, achieving high-quality high-resolution reconstruction of light field images, and significantly improving PSNR and SSIM values.
Patent Information
- Application Number
- CN202110254556.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-03-05
AI Technical Summary
The resolution of light field images is limited by the product of angular resolution and spatial resolution. Traditional super-resolution reconstruction methods cannot effectively utilize the adjacent viewpoint information of light field images, resulting in poor image quality.
Using the spatial transformation network and recursive learning method based on deep learning, by extracting sub-viewpoint images of the light field image, using the improved spatial transformation network and convolutional neural network for feature extraction and image detail recovery, combined with global residual connection and recursion structure to improve the spatial resolution of the image.
High-quality and high-resolution reconstruction of light field images is achieved, and the PSNR and SSIM values are significantly improved, proving the effectiveness of this method in super-resolution reconstruction of light field images.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention is based on deep learning technology, and studies a super-resolution reconstruction method of light field images. By using the spatial transformer network STN (Spatial Transformer Networks) and the recursive learning method, the present invention first extracts 2D sub-viewpoint images of the light field image, performs down-sampling processing on the image, and then inputs the low-resolution views of the target adjacent viewpoint images into the improved spatial transformer network according to the relative angles for feature extraction, and then obtains an approximate image of the target image, and then upsamples the target image and performs convolution calculation, and puts the results obtained from each path into a convolutional neural network with a recursive structure for feature learning, and trains on a light field public data set, so as to finally obtain a high-resolution image of the target view. The present invention belongs to the field of computer vision, and involves technologies such as deep learning, light field image processing, and super-resolution reconstruction. Background Art
[0002] As a revolutionary imaging technology, light field imaging has received much attention from academia and industry, especially with the emergence of commercial plenoptic cameras and their recent contributions to virtual reality (VR) and augmented reality (AR). By inserting additional optical components such as microlens arrays between the main lens and the image sensor, plenoptic cameras can capture the intensity and direction information of light in real scenes. Their rich light information far exceeds that of traditional imaging methods. Combined with computational imaging technology, they can achieve multi-view imaging, full-focus imaging, depth estimation and other functions. For image acquisition, since light field images supplement the information of the (θ, Φ) angle dimension, imaging can overcome the characteristic of only one plane being clearly imaged, which greatly promotes the research progress of AI recognition tasks in large scenes. For rendering and display, the increase of (θ, Φ) dimensional information supplements the anisotropic light of the rendered object, making it more realistic. Many Hollywood movie rendering tasks also use light field / reflected light field technology.
[0003] With the development of light field imaging, a major obstacle to the application of light field images is the low efficiency of expressing the information recorded by light in the image, and due to the limitation of sensor resolution, the resolution of light field images is equal to the product of angular resolution and spatial resolution. In essence, angular resolution is obtained at the expense of spatial resolution. Therefore, the mutual constraints between angular resolution and spatial resolution are becoming more and more prominent. Taking the experimental data set as an example, the resolution of the obtained sub-image is only 544*376. After increasing the resolution by 2 or 4 times, the image quality is very poor. The results obtained by other methods are not ideal because they do not effectively utilize the viewpoint-related characteristics of light field images. A large amount of redundant information about light in the same scene is stored in the light field, and the correlation between views is very strong. The present invention makes full use of the information of adjacent views and improves the spatial resolution of the light field image by performing super-resolution reconstruction on the light field image, thereby improving the overall resolution of the light field image.
[0004] Traditional super-resolution reconstruction methods include interpolation methods and reconstruction-based methods. Commonly used interpolation methods include nearest neighbor interpolation, bilinear interpolation, and bicubic interpolation. The reconstructed images obtained by traditional interpolation methods are usually too smooth, provide limited image detail information, and suffer from severe loss of high-frequency information. Reconstruction-based image super-resolution methods are usually based on multi-frame images and need to be combined with prior knowledge. The application scenarios are limited and inflexible. Therefore, the present invention adopts an advanced convolutional neural network method based on learning to perform super-resolution reconstruction of light field images.
[0005] Deep learning has become a research hotspot in pattern recognition and image processing in recent years, and has attracted more and more attention. Among them, convolutional neural networks (CNNs) have shown excellent results in image classification and target detection. Deep neural multi-parameter networks help extract detailed features of images and can effectively solve the problem of detail restoration in super-resolution reconstruction of light field images. However, traditional learning-based methods do not effectively utilize the information between adjacent viewpoints of light field images. Therefore, it is difficult to effectively complete the super-resolution reconstruction of light field images using traditional learning-based convolutional neural network models.
[0006] The method based on spatial transformation network and recursive learning proposed by the present invention is applied to super-resolution reconstruction of light field images. First, a brand-new 4+1 fusion model is applied to learn the features of light field images and extract information. In addition, in order to better extract features, the present invention improves the locator of the spatial transformation network, and designs a structure of 17 convolution layers with global residual connection to cooperate with two linear layers to extract 2*3 affine transformation matrices. The model can make full use of the pixel information of low-resolution target views and adjacent viewpoint images that can be used for super-resolution reconstruction, and migrate features and approximate the target image through the spatial transformation network, so as to merge the feature map channels, and then restore the details of the image through the convolutional neural network of the recursive structure. The training set adopts the Kalantari public data set for training, and extracts 25 light field images (decomposed into 6*6, i.e. 900 sub-viewpoint images) for testing. It is experimentally verified that the PSNR test of the generated result image reaches 36.11 and 29.20 on the average of 2 times and 4 times super-resolution, and the SSIM value reaches 0.966 and 0.892 respectively. Therefore, the light field super-resolution reconstruction model proposed in the present invention has important application value for generating high-quality high-resolution light field images. Summary of the invention
[0007] The present invention uses deep learning technology to propose a light field super-resolution reconstruction method based on residual learning and spatial transformation network. The Kalantari public data set is used for training to reconstruct a high-resolution target view. The high-resolution value is equal to the original resolution multiplied by the super-resolution multiple. First, the light field image is preprocessed, and the sub-viewpoint image is extracted and down-sampled. The down-sampling is set at different scales according to the different super-resolution multiples. Here, the present invention designs the above-mentioned 4+1 fusion model to learn the features of light field images and extract information. First, the four positions of up, down, left and right are placed in different branch networks. The positioning network in the improved spatial transformation network (the spatial transformation network is divided into three parts, namely the positioning network, the grid generator and the sampler) is used to predict the 2*3 affine transformation matrix. We use the global residual connection convolutional neural network construction method to design and improve the positioning network, and reconstruct the target image through the grid generator and the sampler. Then, the images obtained from different branches are merged with the feature maps obtained by upsampling and convolution calculation of the Res-block module to obtain a 5-channel feature map. Then, the 5-channel feature map is input into the convolutional neural network with a recursive structure to refine the image features and restore high-frequency details. The network is trained on the Kalantari public data set using the stochastic gradient descent method (SGD) to obtain the trained network model and reconstruct the final result. The main process of this method is shown in the attached figure. Figure 1 As shown, it can be divided into the following three steps:
[0008] (1) Preprocessing of light field data
[0009] In order to effectively utilize the correlation information between light field sub-viewpoint images, the present invention first extracts sub-viewpoint images from the light field images in the above public data set by using the angle coordinate extraction method, selects 6*6 sub-viewpoint images for each light field image for experiment, and performs downsampling on them. The low-resolution image is used as input, and the specific value of the low resolution is equal to the original image resolution divided by the downsampling multiple.
[0010] (2) Extraction and reconstruction of light field image features
[0011] The neural network model used in the present invention comprises an improved spatial transformation network with multiple branches and a convolutional neural network with a multi-layer recursive structure. First, the downsampled sub-viewpoint image is selected according to the upper, lower, middle, left and right positions by the plum blossom sampling method, and the above-mentioned upper, lower, left and right position images are divided into four paths and respectively placed in the spatial transformation network of each branch. The sub-viewpoint image at the middle position in the above-mentioned plum blossom sampling is preliminarily reconstructed by upsampling and Res-block module, and the feature map obtained by the above-mentioned multiple branches is channel-superimposed, and then the convolutional neural network with a recursive structure is used to restore and reconstruct the image details. The multi-branch spatial transformation network can effectively utilize the sub-viewpoint images at different positions and angles to provide more available information for the reconstruction of the target image. By improving the convolutional neural network using a global residual connection for the locator, the feature extraction capability of the locator can be improved, so that it can regress a more accurate affine transformation matrix. Since the convolution operation is invariant in angle and scale, the robustness of the extracted features is guaranteed. The convolutional layer of the recursive structure enables the image to restore more details by means of local residual connection.
[0012] (3) Network model training
[0013] The network is trained using the Kalantari public dataset, which contains 125 light field images. By segmenting the sub-viewpoint images, 125*14*14 sub-viewpoint images can be obtained. The dataset contains natural scenery images from different angles, which improves the generalization ability of the model. The speed of weight update and the training adaptability are determined by setting the learning rate, momentum parameters, etc. We use the L1 norm for training loss. The above design can effectively improve the learning ability of the model.
[0014] Compared with the prior art, the present invention has the following obvious advantages and beneficial effects:
[0015] The present invention uses an advanced residual learning-based spatial transformation network to construct a light field super-resolution reconstruction model. First, compared with the traditional interpolation algorithm, the results obtained by the present invention generate more high-frequency details. Compared with the characteristics of the projection-based super-resolution reconstruction algorithm that relies on camera parameters, the present invention overcomes the above limitations to a certain extent. Compared with ordinary convolutional neural networks, the residual learning-based spatial transformation network and recursive learning method used in the present invention obtain images with higher PSNR and SSIM values, and the specific values are shown in Table 3. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Flowchart of light field super-resolution reconstruction method based on residual learning spatial transformer network
[0017] Figure 2 Structure diagram of the spatial transformation network model of residual learning
[0018] Figure 3 Res-block structure diagram
[0019] Figure 4 Convolutional neural network model structure diagram for recursive learning DETAILED DESCRIPTION
[0020] According to the above description, the following is a specific implementation process, but the scope of protection of this patent is not limited to this implementation process.
[0021] Step 1: Preprocessing of light field data
[0022] The light field images in the above public data set are extracted according to the angle coordinates (u, v) to extract 14*14 sub-viewpoint images (2D images with different angle coordinates). For each sub-viewpoint image (size is 544*376), 6*6 sub-viewpoint images are selected for experiments and down-sampled. The low-resolution image is taken as input. The specific value of the low resolution is equal to the original image resolution divided by the downsampling multiple. The image is marked in the order of top, bottom, middle, left, and right using the plum blossom sampling. If there is a boundary situation and the plum blossom sampling order cannot be formed, the missing position map is replaced by the sum of the pixels of the other position images and then the average is taken. Then all image color channels are converted to YCbCr channels. Since the human eye is most sensitive to brightness information, we only take the Y channel as the input feature information. (The subsequent CbCr channel is interpolated using the bicubic linear interpolation method and merged with the subsequent Y channel result.)
[0023] Step 2: Extraction and reconstruction of light field image features
[0024] After obtaining the feature map of the input image, we divide the image into four paths: up, down, left, and right according to the relative position and put them into the spatial transformation network of each branch respectively. The operation can be expressed as:
[0025]
[0026] The I on the left side of the equation represents the feature map generated by the four-way STN (spatial transformer network), the subscript number represents the branch number, and the I on the right side is the input. MSTN is the mapping relationship of the four-branch transformation network. Each branch network has the same structure and is independent of each other. According to the structure, it is divided into a locator, a grid generator and a sampler. We have improved the feature extraction part of the locator. We use a 17-layer convolutional neural network with global residual connection for feature extraction. The input channel of the first layer of convolutional neural network and the output channel of the last layer of convolutional neural network are 1, and the input and output channels of other convolutional layers are both 64. The convolution kernel size is 3*3 and the step size is 1. The activation function uses Relu. At this time, the Y channel image with channel 1 is input, and the intermediate feature map of 64 channels is calculated by the 3*3 convolution kernel. The number of intermediate convolution layers is 15, and the intermediate channels are all 64. Finally, the last convolution layer of the locator outputs a feature map with a channel number of 1, which is added to the original feature map and regressed through two linear layers to obtain a 2*3 dimensional affine transformation matrix. Then the grid generator constructs a sampling grid based on the predicted transformation parameters. It is the output obtained after a set of points in the input image are sampled and transformed.
[0027] The input feature map and the sampling grid are then passed through the image sampler to generate a sampled output feature map. Since the sampling grid generated by the grid generator is not completely aligned with the discrete grid values of the input feature map, a bilinear sampler is used to interpolate the pixels in the sampling grid and the neighboring pixels:
[0028]
[0029] U represents the original image, V represents the output image, i represents the i-th coordinate point in the image, the size of V can be set by interpolation, H and W represent the length and width, where n and m will traverse all the coordinate points of the original image U, U nm is the pixel value of a point in the original image U, Indicates the coordinates of the corresponding point in the U map to be found for the i-th point in V (indicates the coordinates on the U map). At the same time, we upsample the image in this interpolation and reconstruction phase.
[0030] The above is the processing of the upper, lower, left, and right images of plum blossom sampling. For the processing of the middle position image of plum blossom sampling, we use the Bicubic interpolation method to upsample the image, and the upsampled result is convolved through 3 Res-block modules with the same structure and 2 convolution layers. Each module is connected through a local residual. The input channel of the module is 1, the output channel is 1, and the middle channel is 64. Then, the channel of the above four images after passing through the spatial transformation network is merged to obtain a feature map with 5 channels, which can be expressed as:
[0031]
[0032] Iup is the result of upsampling and convolution of the low-resolution target image I and the Res-block module, and the specific value of the low resolution is the original image resolution divided by the downsampling multiple.
[0033] At this time, I is input as a 5-channel feature map into a recursive convolutional neural network to restore image details. First, it passes through the input layer convolutional neural network with 5 input channels, 64 output channels, 3 convolution kernel size, and 1 step size. Then, it passes through 9 groups of recursive convolution modules, each of which consists of 2 layers of convolutional neural networks, with 64 input and output channels, 1 step size, and 3 convolution kernel size. The result is added as the residual to the result calculated by the first convolutional layer. The result of the addition is sent as the input to the output layer convolutional neural network with 64 input channels, 1 output channel, 1 step size, and 3 convolution kernel size. It is connected through a recursive structure, as shown in the figure. Figure 4 As shown, it can be expressed as:
[0034] I result =F rec (I)
[0035] Among them, F rec A convolutional neural network model representing a recurrent structure.
[0036] Through the above operations, a high-resolution target image of 1 channel is finally obtained, and the specific value of the high resolution is equal to the original resolution multiplied by the super-resolution multiple.
[0037] Step 3: Network model training
[0038] The present invention uses the Kalantari public data set to train the network. The data set contains 125 light field images, of which 100 are used as training sets and 25 are used as test sets. By segmenting the sub-viewpoint images, 125*14*14 sub-viewpoint images can be obtained. The data set contains natural scenery images from different angles, which improves the generalization ability of the model. Among them, the 6*6 view with better quality in the middle position (with 14*14 as the selection range, the horizontal and vertical coordinates are respectively taken as 4-9 position images, that is, 6*6) is used as the training sample. The number of training sample images is 100*6*6, and the number of test set images is 25*6*6. Considering the loss calculation between the low-resolution image and the groundtruth, we use the L1 norm as the loss function. At this time, it can be expressed as:
[0039]
[0040] Where L SR is the global loss function, F is the global network structure, is a low-resolution input image, and the low-resolution value is equal to the original resolution divided by the downsampling multiple. is the high-resolution groundtruth corresponding to the input image. The high-resolution value depends on the resolution of the input image multiplied by the super-resolution factor. result is the result generated by the entire network.
[0041] Next, we use the stochastic gradient descent method (SGD) to minimize the above loss function. Through experimental verification, the learning rate in this invention is 10 -4 ,The momentum parameter is set to 0.9 to achieve the best effect.,The pytorch deep learning framework is used and accelerated by NVIDIA GPU devices.,In order to eliminate the result deviation caused by some training techniques,,the parameters of all convolutional neural network layers are randomly initialized.
[0042] The detailed training process is as follows:
[0043] 1) Randomly initialize the full convolution parameters.
[0044] 2) Read the light field public dataset and initialize the convolutional neural network model.
[0045] 3) The spatial transformation network based on residual learning is used for calculation, and the obtained image is merged with the image after upsampling and Res-Block convolution calculation to obtain a 5-channel feature map.
[0046] 4) Input the 5-channel feature map into the recursive convolutional neural network to obtain a high-resolution Y channel image Y 0, high resolution is relative to the resolution of the input image, and the specific value is the input image resolution multiplied by the super-resolution factor.
[0047] 5) Image Y 0 Substitute into the loss function and get the loss value L0.
[0048] 6) According to the loss value L0, use SGD to train the network model, update the network parameters, obtain the new predicted image Y1, and substitute it into the loss function to obtain the loss value L1.
[0049] 7) According to the loss value L1, use SGD to train the network model, update the network parameters, obtain the new predicted image Y2, and substitute it into the loss function to obtain the loss value L2.
[0050] 8) Repeat steps (3-7) 50 times until the loss value obtained by the loss function converges. At this time, the parameter value in the network is the final network model parameter value.
[0051] The trained model is tested on the test set to obtain the final result.
[0052] The light field super-resolution reconstruction algorithm based on residual learning and spatial transformation network proposed in the present invention is tested using the Kalantari public data set, and the model has a deeper network layer, which is convenient for better learning features. We set the up-scale to 2 and 4 respectively, and compare the VDSR and DRRN methods on the test set. Compared with the deep network learning methods of VDSR and DRRN, the present invention makes full use of the correlation between the light field sub-viewpoint images, obtains more effective information that can be used for reconstruction, and the image restoration quality is higher. The PSNR of the 2x and 4x super-resolution results of the present invention are 0.34DB and 0.30DB higher than those of VDSR, respectively, and are 0.1DB and 0.17DB higher than those of DRRN at 2x and 4x super-resolution results, respectively, which proves the effectiveness of our method. The experiment also proves the beneficialness of using the correlation between light field sub-viewpoint images to perform super-resolution reconstruction of light field images, which is of constructive significance for improving the performance of light field image super-resolution network models.
[0053] Table 1
[0054]
[0055] Table 2
[0056] LF-Image VDSR DRRN Proposed I01 33.23 33.40 34.35 I02 38.93 38.99 41.68 I03 36.91 37.02 37.37 I04 34.57 34.62 34.80 I05 37.59 38.26 38.69 I06 32.20 33.05 33.21 I07 34.32 34.83 34.89 I08 40.04 41.20 41.43
[0057] Table 3
[0058] Up-scale VDSR DRRN Proposed 2 35.77 / 0.956 36.01 / 0.961 36.11 / 0.966 4 28.90 / 0.8041 29.03 / 0.877 29.20 / 0.892
Claims
1. A light field super-resolution reconstruction method based on residual learning and spatial transformation network, characterized by: Based on residual learning and spatial transformer network, the spatial transformer network module connected by global residual, upsampling The Res-block module is composed of a recursive convolutional neural network; the spatial transformation network module with global residual connection is composed of 17 convolutional layers, 2 linear layers, a grid generator, and a sampler. The upsampling method adopts the Bicubic interpolation method. The Res-block module is composed of a convolutional neural network with 2 convolutional layers through residual connections. The recursive convolutional neural network is composed of 9 groups of recursive convolutional modules with 2 convolutional layers, an input layer convolutional neural network, and an output layer convolutional neural network. The light field images in the public data set are extracted according to the angle coordinates u and v to extract 14*14 sub-viewpoint images. The size of each sub-viewpoint image is 544*376. 6*6 sub-viewpoint images are selected for experiments and down-sampled to obtain low-resolution images as input. The specific value of the low resolution is equal to the original image resolution divided by the downsampling multiple. The image is marked in the order of top, bottom, middle, left, and right using the plum blossom sampling. If the boundary situation occurs and the plum blossom sampling order cannot be formed, the missing position map is calculated by the sum of the pixels of the other position images. Then take the mean instead, and then convert all image color channels into YCbCr channels. Since the human eye is most sensitive to brightness information, only the Y channel is taken as the input feature information. After obtaining the feature map of the input image, the image is divided into four paths: upper, lower, left, and right according to the above-mentioned plum blossom sampling method and placed in the spatial transformation network of each branch respectively. The feature extraction part of the locator is improved. Here, a 17-layer convolutional neural network with global residual connection is used for feature extraction, in which the input channel of the first layer of convolutional neural network and the output channel of the last layer of convolutional neural network are 1, and the input and output channels of other convolutional layers are 1. The output channels are all 64, the convolution kernel size is 3*3, and the step size is 1; the activation function uses Relu; at this time, the Y channel image with channel 1 is input, and the intermediate feature map of 64 channels is calculated through the 3*3 convolution kernel. The number of intermediate convolution layers is 15, and the intermediate channels are all 64. Finally, the last convolution layer of the locator outputs a feature map with a channel number of 1, which is added to the original feature map, and regressed through two linear layers to obtain a 2*3 dimensional affine transformation matrix. Then the grid generator constructs a sampling grid based on the predicted transformation parameters, which is a set of points in the input image after sampling transformation. The output obtained after the conversion; then the image sampler takes the input feature map and the sampling grid as input to generate a sampled output feature map; the bilinear sampler is used to interpolate the pixels and neighborhood pixels in the sampling grid to obtain an approximate image of the target image; for the processing of the intermediate position image in the plum blossom sampling, the Bicubic interpolation method is used to upsample the image, and the upsampled result is convolved through 3 Res-block modules with the same structure and 2 convolution layers. Each module is connected through a local residual, the input channel of the module is 1, the output channel is 1, and the intermediate channel is 64;Then, the channels of the four images after the spatial transformation network are merged to obtain a feature map with 5 channels, which is then input into a recursive convolutional neural network to restore image details. First, it passes through the input layer convolutional neural network with 5 input channels, 64 output channels, 3 convolution kernel size, and 1 step size. Then, it passes through 9 groups of recursive convolution modules, each of which consists of 2 layers of convolutional neural networks, with 64 input and output channels, 1 step size, and 3 convolution kernel size. The result is added as the residual to the result calculated by the first convolution layer. The result of the addition is sent as the input to the output layer convolutional neural network with 64 input channels, 1 output channel, 1 step size, and 3 convolution kernel size. It is connected through a recursive structure to finally obtain a 1-channel high-resolution target image. The specific value of the high resolution is equal to the input image resolution multiplied by the super-resolution multiple. ; 2. The method according to claim 1, characterized in that The 4+1 fusion model consists of a spatial transformer network module with global residual connection, upsampling and Res-block modules. The spatial transformer network module with global residual connection includes three parts: locator, grid generator and sampler. Upsampling adopts Bicubic interpolation and is composed of three Res-block modules with the same structure and 2 convolutional layers through local residual connection.
3. The method according to claim 1, characterized in that The convolution calculation design of the global residual connection of the locator, in which the input channel of the first layer of convolutional neural network and the output channel of the last layer of convolutional neural network are 1, the input and output channels of other convolutional layers are both 64, the convolution kernel size is 3*3, the step size is 1, and the activation function uses Relu; at this time, the Y channel image with channel 1 is input, and the intermediate feature map of 64 channels is calculated through the 3*3 convolution kernel. The number of intermediate convolution layers is 15, and the intermediate channels are all 64. Finally, the feature map with the output channel number of 1 in the last convolution layer of the locator is added to the original feature map, and regressed through two linear layers to obtain a 2*3 dimensional affine transformation matrix.
4. The method according to claim 1, characterized in that The core of the recursive structure convolutional neural network is that the input channel is 5, the output channel is 64, the convolution kernel size is 3, and the step size is 1. Then it passes through 9 groups of recursive convolution modules, each group consists of 2 layers of convolutional neural networks, the input and output channels are 64, the step size is 1, and the convolution kernel size is 3. The result is added as the residual to the result calculated by the first convolution layer. The result of the addition is sent as the input to the output layer convolutional neural network, with an input channel of 64, an output channel of 1, a step size of 1, and a convolution kernel size of 3, which is connected by a recursive structure.
5. The method according to claim 1, characterized in that The neural network model is initialized randomly.
