Image reconstruction method, system, device and medium
By preprocessing and linear mapping the original image, extracting global information, and performing deblocking filtering, the problem of low accuracy and block effect noise of the residual network in image block reconstruction is solved, and high-precision image reconstruction is achieved. .
Patent Information
- Application Number
- CN202410489562.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-04-23
AI Technical Summary
In the existing technology, the residual network can only extract the main feature information of the image block during image block reconstruction processing, resulting in low accuracy of the reconstructed image and block effect noise interference.
By preprocessing the original image, it is divided into measurement image blocks of the same size, linear mapping and global information extraction are performed, and deblocking filtering is performed after merging to obtain a high-precision target reconstructed image and reduce block effect noise.
It improves the accuracy of image reconstruction, reduces block noise interference, and ensures that the reconstructed image contains more feature information of the original image.
Smart Images

Figure CN118096556B
Abstract
Description
Background Art
[0002] Compressed sensing, also known as compressed sampling, sparse sampling, and compressed sensing, is a new sampling theory that exploits the sparse characteristics of the signal, obtains discrete samples of the signal by random sampling at a rate much lower than the Nyquist sampling rate, and then perfectly reconstructs the signal through a nonlinear reconstruction algorithm.
[0003] Traditional compressed sensing reconstruction optimization algorithms include matching pursuit, orthogonal matching pursuit, iterative hard threshold, compressed sampling matching search, approximate message passing, iterative soft threshold, etc. In addition, taking fine structures such as total variation sparsity, non-local sparsity, block sparsity, and wavelet tree sparsity as prior knowledge of the original image signal is conducive to compressed sensing image reconstruction.
[0004] Zhang et al. proposed a novel structured deep network, called ISTA-Net, which is inspired by the iterative shrinking threshold algorithm (ISTA) for optimizing the general L1 norm CS reconstruction model. An effective strategy for solving the proximal mapping associated with the sparsity-inducing regularizer using nonlinear transformations. All parameters in ISTA-Net (such as nonlinear transformations, shrinkage thresholds, step sizes, etc.) are learned end-to-end instead of handcrafted. The proposed ISTA-Net greatly outperforms the existing state-of-the-art optimization-based and network-based compressed sensing (CS) methods, and optimizes them to form the ISTA-Net+ network model. However: the network cannot flexibly handle multiple compressed sensing ratios of a single module.
[0005] Ali Mousavi proposed a stacked denoising autoencoder (SDA) network model, which is the first combination of deep learning and compressed sensing. Kulkarni proposed a CNN-based ReconNet to achieve non-iterative compressed sensing image reconstruction. AliMousavi used a stacked denoising autoencoder to learn the mapping between CS measurements and image patches. M. Iliadis proposed a deep fully connected network in which the encoder learns a binary perceptual mask and the decoder determines the reconstruction of the video. These methods effectively avoid the expensive computation in traditional methods and achieve good image / video reconstruction performance.
[0006] Kulkarni et al proposed a ReconNet for compressed sensing image reconstruction. However, due to the block compression sampling used in this network, block effect noise will occur.
[0007] Yao, Dai and others combined the idea of residual learning with ReconNet and proposed a deep residual reconstruction network (DR2-Net) for image compressed sensing reconstruction. The CSNet model was proposed by Shi et al., which jointly trained the sampling module and the reconstruction network.
[0008] Guang Yang et al. proposed a DAGAN-based model to reconstruct CS-MRI based on a conditional generative adversarial network model. A refinement learning method was designed to stabilize the U-Net-based generator, which provided an end-to-end network to reduce aliasing artifacts. In order to better preserve textures and edges in reconstruction, the adversarial loss was also coupled with an innovative content loss. In addition, frequency domain information was incorporated to enhance the similarity between the image domain and the frequency domain.
[0009] In summary, in the prior art, residual networks are often used to reconstruct image blocks. However, residual networks can generally only extract the main feature information of image blocks, so that the final reconstructed image contains less feature information of the original image, resulting in low accuracy of the final reconstructed image. Summary of the invention
[0010] In order to overcome the problem that residual networks are often used in the prior art to reconstruct image blocks, but the residual networks can generally only extract the main feature information of the image blocks, so that the final reconstructed image contains less feature information of the original image, resulting in low accuracy of the final reconstructed image, the present application provides an image reconstruction method, system, device and medium.
[0011] In a first aspect, in order to solve the above technical problems, the present application provides an image reconstruction method, comprising:
[0012] Step S1, preprocessing the original image to obtain multiple measurement image blocks of the same size;
[0013] Step S2, for each measurement image block in the multiple measurement image blocks, linear mapping is performed on each measurement image block to obtain a corresponding preliminary reconstructed image block;
[0014] Step S3, extracting global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block;
[0015] Step S4, merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image;
[0016] Step S5, performing deblocking filtering on the intermediate reconstructed image to obtain a target reconstructed image.
[0017] In a second aspect, the present application also provides an image reconstruction system, comprising:
[0018] A preprocessing module, used for preprocessing the original image to obtain a plurality of measurement image blocks of the same size;
[0019] A linear mapping module, used for performing linear mapping on each measurement image block in the plurality of measurement image blocks to obtain a corresponding preliminary reconstructed image block;
[0020] An extraction module, used to extract global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block;
[0021] A merging module, used for merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image;
[0022] The deblocking filter module is used to perform deblocking filtering on the intermediate reconstructed image to obtain the target reconstructed image.
[0023] In a third aspect, the present application also provides a computing device, including a memory, a processor, and a program stored in the memory and running on the processor, and when the processor executes the program, the steps of an image reconstruction method as described above are implemented.
[0024] In a fourth aspect, the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the steps of an image reconstruction method.
[0025] The beneficial effects of the present application are: by linearly mapping the multiple pre-processed measured image blocks, multiple preliminary reconstructed image blocks are obtained, and the global information of each preliminary reconstructed image block is extracted, so that the obtained intermediate reconstructed image can contain all the characteristic information of the measured image block, thereby improving the accuracy of the obtained target reconstructed image. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flowchart of an image reconstruction method of the present application;
[0027] Figure 2 It is the flow chart of the segmentation process of the original image;
[0028] Figure 3 A flowchart for performing compressed sensing processing on an original image block;
[0029] Figure 4 This is a structural schematic diagram of an image reconstruction system of the present application. DETAILED DESCRIPTION
[0030] The following examples are provided to further explain and supplement the present application and do not constitute any limitation to the present application.
[0031] The following describes an image reconstruction method, system, device and medium according to an embodiment of the present application in conjunction with the accompanying drawings.
[0032] An image reconstruction method in an embodiment of the present application is applied to a terminal device. In the present application scheme, the terminal device is used as the execution subject to illustrate the present application scheme. The terminal device is used to execute the steps of an image reconstruction method.
[0033] like Figure 1 As shown, the present application provides an image reconstruction method, comprising:
[0034] Step S1, preprocessing the original image to obtain multiple measurement image blocks of the same size;
[0035] Step S2, for each measurement image block in the multiple measurement image blocks, linear mapping is performed on each measurement image block to obtain a corresponding preliminary reconstructed image block;
[0036] Step S3, extracting global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block;
[0037] Step S4, merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image;
[0038] Step S5, performing deblocking filtering on the intermediate reconstructed image to obtain a target reconstructed image.
[0039] An image reconstruction method of this embodiment obtains multiple preliminary reconstructed image blocks by linearly mapping multiple preprocessed measured image blocks, extracts global information of each preliminary reconstructed image block, so that the obtained intermediate reconstructed image can contain all feature information of the measured image block, thereby improving the accuracy of the obtained target reconstructed image. At the same time, the intermediate reconstructed image is subjected to deblocking filtering to reduce the block effect noise in the intermediate reconstructed image, thereby reducing the interference of the block effect noise on the effective information in the obtained reconstructed image, and further improving the accuracy of the target reconstructed image.
[0040] Optionally, the preprocessing includes image segmentation processing and compressed sensing processing, and the original image is preprocessed to obtain a plurality of measurement image blocks of the same size, including:
[0041] Performing image segmentation processing on the original image to obtain multiple original image blocks of the same size;
[0042] For each original image block among the multiple original image blocks, compressed sensing processing is performed on each original image block to obtain a corresponding measurement image block.
[0043] In this embodiment, compressed sensing processing is performed on the multiple original image blocks obtained by segmenting the original image, which can discard redundant information in each original image block, thereby reducing useless information in each of the multiple measurement image blocks obtained, reducing interference information of the multiple measurement image blocks in the reconstruction process, and further improving the accuracy of reconstruction.
[0044] Figure 2 is the segmentation process diagram of the original image, such as Figure 2 As shown in the figure, we first divide the original image into multiple image patches (image blocks) of size 33 × 33 through segmentation.
[0045] Then, compressed sensing technology is used to perform compressed sensing processing on each image patch of size 33 × 33, and convert it into the corresponding measurement value. The mathematical model of its compressed sensing technology is: .in represents the original signal; is the observation matrix, the relationship between M and N is M«N; represents the compressed sensing measurement value, then the compressed sensing ratio is Compressed sensing technology projects the original signal from high-dimensional space to low-dimensional space through the measurement matrix, and this process is constrained by the finite isometry property.
[0046] Optionally, for each original image block among the multiple original image blocks, performing compressed sensing processing on each original image block to obtain a corresponding measurement image block includes:
[0047] For each original image block among the multiple original image blocks, perform sparse processing on each original image block to obtain a corresponding sparse image block;
[0048] The sparse image blocks are transformed into measurement image blocks using a preset observation matrix.
[0049] In this embodiment, sparse processing is performed on each original image block, which can remove redundant information in each original image block, so that useless information in the sparse image block corresponding to each original image block is reduced, thereby reducing useless information in the measurement image block obtained by transforming each sparse image block using a preset observation matrix, thereby improving the accuracy of each measurement image block.
[0050] Since the original image is generally a natural image, it contains a lot of redundant information and is not sparse, so it is necessary to input (Original image block) is sparsely processed, and the process is: ;in Represents a sparse matrix, a sparse matrix A discrete Fourier sparse matrix is used. Represented as a coefficient column vector of the signal sparsely represented in the transform domain. The measurement matrix Use a random Gaussian measurement matrix. The construction method is to construct a matrix of size M*N, so that each element in the matrix independently obeys a Gaussian distribution with a mean of 0 and a variance of 1 / M, that is:
[0051] .
[0052] Figure 3 This is a flowchart of compressed sensing processing of the original image block, such as Figure 3 As shown, the sparse matrix with sparse coefficient S For the original image block Each column of is K-sparsed to obtain the corresponding sparse image block, where The length of each column of is N. And using the observation matrix Each column of the sparse image block is transformed separately to obtain the measurement value corresponding to each column, and the measurement value of each column is combined into a measurement image block, where the length of each column of the measurement image block is M. In this way, through the sparse matrix and the measurement matrix Compressed sensing processing is performed on each original image block, which can convert the original image block Transformed into measurement image block .
[0053] Optionally, for each measurement image block in the multiple measurement image blocks, linear mapping is performed on each measurement image block to obtain a corresponding preliminary reconstructed image block, including:
[0054] For each measurement image block in the plurality of measurement image blocks, input each measurement image block into a pre-constructed mapping network;
[0055] Each measured image block is transformed into a preliminary reconstructed image block using the mapping matrix in the mapping network.
[0056] In this embodiment, linear mapping is performed on each measured image block, which can reduce the dimension of a large number of sparse features in each measured image block and compress them into a small number of feature sets, so that the features obtained in the preliminary reconstructed image block can be processed centrally, which is convenient for the subsequent extraction of global information of the preliminary reconstructed image block and the centralized extraction of image features, thereby reducing the difficulty of feature extraction and accelerating the efficiency of feature extraction.
[0057] The construction process of the mapping network is as follows:
[0058] Inputting each measurement image block of the plurality of measurement image blocks into the initial network, and transforming each measurement image block into a prediction image block using a preset matrix;
[0059] Calculate the difference between the predicted image block and the corresponding original image block;
[0060] When each difference corresponding to the plurality of predicted image blocks satisfies a preset condition, the preset matrix is used as a mapping matrix, and the initial network is used as a mapping network;
[0061] When at least one difference among the differences corresponding to the multiple predicted image blocks does not satisfy the preset conditions, the parameters in the preset matrix are adjusted to obtain a new preset matrix, and each measured image block is transformed into a new predicted image block using the new preset matrix, and a new difference between the new predicted image block and the corresponding original image block is calculated, until the new differences corresponding to the multiple predicted image blocks satisfy the preset conditions, and the new preset matrix at this time is used as the mapping matrix, and the initial network at this time is used as the mapping network.
[0062] Compressed sensing signal reconstruction is to compress the measured image blocks of the CS (Compressed Sensing) Restore to original image block The mapping from y to x can be viewed as an approximate linear mapping, namely ,in is the mapping matrix. We can set a mapping matrix , calculated by the MSE loss function The minimum error of , thereby inferring the mapping matrix that meets the preset conditions The MSE loss function is:
[0063] ;
[0064] Among them, L is the MSE loss function, N is the length of the original image block, i is the number of iterations, is the original image block, To map the network, To measure image patches, is the mapping matrix, To map the network For input Output predicted image block.
[0065] Using the trained mapping network , we can get any given CS measurement image block Generate the corresponding preliminary reconstructed image block The process of generating the preliminary reconstructed image block is: . Take y∈Rm×1 as input, where m varies with the measurement rate (MRs). The measurement rate refers to the input x of size N, and the measurement value y obtained by compressed sensing of size M, then the measurement rate is M / N. For example, m = 272, 109, 43, 10 correspond to measurement rates MRs = 0.25, 0.10, 0.04, 0.01 respectively. The linear mapping network consists of a fully connected layer with 1089 neurons.
[0066] Optionally, extracting global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block includes:
[0067] Extract high-dimensional information of the preliminary reconstructed image block to obtain a high-dimensional image block;
[0068] Extract low-dimensional information of the preliminary reconstructed image block to obtain a low-dimensional image block;
[0069] The sum of the high-dimensional image block and the low-dimensional image block is processed a priori to obtain an intermediate reconstructed image block corresponding to the preliminary reconstructed image block.
[0070] In this embodiment, by extracting the high-dimensional information of the preliminary reconstructed image, the obtained high-dimensional image block contains a wider range of information in the preliminary reconstructed image, such as the overall shape, outline and wider receptive field of the object. The low-dimensional information of the preliminary reconstructed image block is extracted, so that the obtained low-dimensional image block contains fine-grained features such as local details and textures in the preliminary reconstructed image. The high-dimensional image block and the low-dimensional image block are added, and the sum obtained retains the features of different levels of the image, so that the global information in the preliminary reconstructed image block can be retained in the intermediate reconstructed image block, thereby improving the image accuracy of the intermediate reconstructed image block.
[0071] In some embodiments, extracting global information of the preliminary reconstructed image block and obtaining the corresponding intermediate reconstructed image block is performed in a global feature extraction network, and the global feature extraction network includes a high-dimensional extraction network, a low-dimensional extraction network and a priori model.
[0072] The prior processing of the sum of the high-dimensional image block and the low-dimensional image block is performed in the prior model. The use of the prior model can provide additional information for the input of the prior model, while constraining the model learning and improving the efficiency and robustness of the model.
[0073] Providing additional information: Prior models are usually built based on prior knowledge or domain expert experience, which can provide additional information to guide the model learning process. This information may include prior knowledge of the target data distribution, structure or characteristics, which helps the model learn and infer more accurately.
[0074] Constrained model learning: The prior model can be used as a regularization term to constrain the model's learning process, prevent overfitting, and improve the model's generalization ability. By adding a prior model, the model can be guided to learn in a more reasonable direction and avoid overfitting of the model on the training data.
[0075] Improve efficiency and robustness: Prior models can help narrow the model search space, thereby improving the training efficiency of the model. By providing more accurate initial parameters or reducing the number of model parameters, prior models can make the model more robust and perform better when the amount of data is small or the data quality is poor.
[0076] The prior model consists of two parts: encoder and decoder.
[0077] Encoder:
[0078] Convolutional layer 1: 64 3x3 convolution kernels, stride 1, ReLU activation function, input size 33x33x2;
[0079] Convolutional layer 2: 64 3x3 convolution kernels, stride 1, using ReLU activation function;
[0080] Max pooling layer: 2x2 pooling window with a step size of 2;
[0081] Decoder:
[0082] Deconvolution layer 1: 64 3x3 deconvolution kernels, stride 2, ReLU activation function, output size 66x66x64;
[0083] Deconvolution layer 2: 64 3x3 deconvolution kernels, stride 1, ReLU activation function, output size 66x66x64;
[0084] Deconvolution layer 3: 1 3x3 deconvolution kernel, stride 1, sigmoid activation function, output size 66x66x1;
[0085] Clipping layer: crops the output size to 33x33x1.
[0086] The noisy image is used as input and the denoised image is used as the target output. The loss function of the model uses the mean squared error (MSE) to evaluate the difference between the output image and the target image.
[0087] The extraction of high-dimensional information of the preliminary reconstructed image block is carried out in the high-dimensional extraction network. The high-dimensional extraction network contains four high-dimensional extraction blocks, each of which contains three high-dimensional convolutional layers, and each high-dimensional convolutional layer uses a 7×7 kernel. In order to extract high-dimensional information, in each high-dimensional extraction block, the first high-dimensional convolutional layer generates 128 feature maps, the second high-dimensional convolutional layer generates 64 feature maps, and the third high-dimensional convolutional layer generates 1 feature map. In order to generate a feature map of size 33 × 33, corresponding padding is added to each layer, that is, for each of the three high-dimensional convolutional layers, image padding processing is added to each high-dimensional convolutional layer so that the size of the image block output by each high-dimensional convolutional layer is equal to the size of the corresponding input image block, eliminating the image difference value generated by the inconsistency of the image size during the addition of the image blocks output by different high-dimensional extraction blocks, thereby improving the accuracy of the output intermediate reconstructed image blocks. The image padding processing is characterized by filling the pixel blocks around the image to be processed with the image to be processed as the center, and the filling content is 0. Inspired by previous work, batch normalization is added to the first two high-dimensional convolutional layers of each high-dimensional extraction block. Except for the last high-dimensional convolutional layer, each high-dimensional convolutional layer is followed by a ReLU layer (activation layer). The activation layer introduces nonlinearity, thereby increasing the expressive power of the high-dimensional extraction network, helping the network learn more complex features, and accelerating the convergence process of the network. This helps to improve the performance and generalization ability of the high-dimensional extraction network.
[0088] The low-dimensional information of the preliminary reconstructed image block is extracted in the low-dimensional extraction network. The low-dimensional extraction network contains four low-dimensional extraction blocks, each of which contains three low-dimensional convolutional layers, and each low-dimensional convolutional layer uses a 3×3 kernel. In order to extract low-dimensional information, in each low-dimensional extraction block, the first low-dimensional convolutional layer generates 64 feature maps, the second low-dimensional convolutional layer generates 32 feature maps, and the third low-dimensional convolutional layer generates a feature map with 1 kernel. In order to generate a feature map of size 33 × 33, corresponding padding is added to each low-dimensional convolutional layer, that is, for each of the three low-dimensional convolutional layers, image padding processing is added to each low-dimensional convolutional layer so that the size of the image block output by each low-dimensional convolutional layer is equal to the size of the corresponding input image block, eliminating the image difference value generated by the inconsistency of the image size when adding the image blocks output by different low-dimensional extraction blocks, thereby improving the accuracy of the output intermediate reconstructed image blocks. Inspired by previous work, we further add batch normalization to the first two low-dimensional convolutional layers of each low-dimensional extraction block. Except for the last low-dimensional convolution layer, each low-dimensional convolution layer is followed by a ReLU layer (activation layer). The activation layer introduces nonlinearity, thereby increasing the expressive power of the high-dimensional extraction network, helping the network learn more complex features, and accelerating the network's convergence process. This helps improve the performance and generalization ability of the high-dimensional extraction network.
[0089] The high-dimensional extraction network and the low-dimensional extraction network are designed to extract features at different levels of the preliminary reconstructed image blocks, better mine the global information in the preliminary reconstructed image blocks, and thus better extract the global information of the original image blocks.
[0090] Optionally, extracting high-dimensional information of the preliminary reconstructed image block to obtain the high-dimensional image block includes:
[0091] The preliminary reconstructed image block is used as a first input value and input into a first high-dimensional extraction block to obtain a first output value;
[0092] The sum of the first input value and the first output value is used as the second input value, input into the second high-dimensional extraction block, and obtain the second output value;
[0093] The sum of the first input value, the first output value and the second output value is used as a third input value, input into a third high-dimensional extraction block, and obtain a third output value;
[0094] Taking the sum of the first input value, the first output value, the second output value and the third output value as the fourth input value, inputting it into the fourth high-dimensional extraction block, and obtaining the first target output value;
[0095] The first target output value is used as a high-dimensional image block corresponding to the preliminary reconstructed image block.
[0096] In this embodiment, the size of the preliminary reconstructed image block and the high-dimensional image block are the same.
[0097] Optionally, extracting low-dimensional information of the preliminary reconstructed image block to obtain the low-dimensional image block includes:
[0098] The preliminary reconstructed image block is used as a fifth input value and input into the first low-dimensional extraction block to obtain a fifth output value;
[0099] The sum of the fifth input value and the fifth output value is used as a sixth input value, input into the second low-dimensional extraction block, and obtain a sixth output value;
[0100] Taking the sum of the fifth input value, the fifth output value and the sixth output value as the seventh input value, inputting it into the third low-dimensional extraction block, and obtaining the seventh output value;
[0101] Taking the sum of the fifth input value, the fifth output value, the sixth output value and the seventh output value as the fourth input value, inputting it into the fourth high-dimensional extraction block, and obtaining a second target output value;
[0102] The second target output value is used as a low-dimensional image block corresponding to the preliminary reconstructed image block.
[0103] In this embodiment, the size of the preliminary reconstructed image block and the low-dimensional image block are the same.
[0104] Optionally, merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain the intermediate reconstructed image includes:
[0105] Acquire first position information of each measured image block in the original image;
[0106] Using the first position information as second position information of an intermediate reconstructed image block corresponding to each measured image block;
[0107] Each intermediate reconstructed image block is placed on the corresponding second position information to obtain an intermediate reconstructed image.
[0108] In this embodiment, each corresponding intermediate reconstructed image block is placed according to the first position information of each measured image in the original image, so that each intermediate reconstructed image block can be placed in an accurate position when merging, thereby improving the accuracy of the intermediate reconstructed image.
[0109] Optionally, performing a deblocking filtering process on the intermediate reconstructed image to obtain a target reconstructed image includes:
[0110] Dividing the intermediate reconstructed image into a plurality of overlapping image blocks according to a preset image block size and a preset overlapping size;
[0111] For each overlapping image block in the plurality of overlapping image blocks, searching for a similar image block in the plurality of overlapping image blocks whose similarity to each overlapping image block is greater than a preset value;
[0112] Arrange each overlapping image block and corresponding similar image blocks to obtain corresponding three-dimensional data blocks;
[0113] Performing filtering processing on the three-dimensional data block to obtain a three-dimensional filtering block;
[0114] The three-dimensional filter blocks corresponding to the multiple overlapping image blocks are merged and aggregated to obtain a target reconstructed image.
[0115] In this embodiment, a deblocking filter is used to perform image segmentation, similar image block query, and combination of the intermediate reconstructed image into multiple three-dimensional data blocks, which can take into account the local structural information between the intermediate reconstructed image blocks in the intermediate reconstructed image, and better capture the local features such as texture, edge and details in the intermediate reconstructed image. Filtering each three-dimensional data block can reduce the noise impact of each three-dimensional filter block obtained. Merging and aggregating each three-dimensional filter block can enhance the feature information in the target reconstructed image, reduce the block effect caused by image splicing, thereby reducing the interference caused to the effective information in the reconstructed image, and thus can improve the accuracy of the target reconstructed image obtained.
[0116] When using a deblocking filter to reduce the block effect caused by image merging, the BM3D algorithm (three-dimensional block matching algorithm) is used for processing to find neighboring overlapping image blocks similar to the current overlapping image blocks, so as to use the information of the neighboring overlapping image blocks to reduce the noise of the current overlapping image blocks, and repair and restore the current overlapping image blocks. The specific process is as follows:
[0117] 1. Block matching.
[0118] First, the intermediate reconstructed image is divided into multiple overlapping image blocks according to the preset image block size and the preset overlap size. For example, a 10x10 pixel image is selected, and a block size of 8x8 and an overlap area of 4 pixels are selected. The size of the overlap area (usually half of the block size) is usually selected as a block of 8x8 or 16x16 pixels. Starting from the upper left corner of the image, an 8x8 window is taken as the first overlapping image block. Then, the window is moved to the right by 4 pixels, and the overlapping part overlaps with the previous window to extract the second overlapping image block. And so on, continue to move the window in the horizontal direction of the image until the window reaches the right boundary of the image. Next, move the window down by 4 pixels and start again from the left to extract a new row of overlapping image blocks. Continue to move the window in the vertical direction of the image until the window covers the entire image. In this way, the entire intermediate reconstructed image is divided into multiple overlapping image blocks.
[0119] Then, for each overlapping image block in the multiple overlapping image blocks, m-1 similar image blocks whose similarity with each overlapping image block is greater than a preset value are found in the multiple overlapping image blocks. Similarity is usually measured using the mean square error (MSE) between blocks. The smaller the mean square error, the higher the similarity. For example, an overlapping image block is selected from the intermediate reconstructed image as the block currently being processed. This overlapping image block is usually a local area in an image, which can be an image block with a size of n×n. Then after the block is selected, the BM3D algorithm searches for other similar image blocks similar to the currently being processed in the intermediate reconstructed image. The search range is usually performed within a specific search window to ensure the efficiency of the search.
[0120] 2. 3D transformation: Arrange each overlapping image block and the corresponding similar image blocks to obtain the corresponding three-dimensional data block.
[0121] The size of the three-dimensional data block formed by arranging and merging 1 overlapping image block of size n×n and the corresponding m-1 similar image blocks of size n×n is n×n×m, where m, n, and n are the dimensions of the three-dimensional data block, and the m dimension is the index of the block, such as the first block and the second block. The remaining two dimensions (n and n) are used to represent the pixels in the overlapping image blocks of each block.
[0122] What 3D transformations do:
[0123] ① Extract similar image block information: Through 3D transformation, similar image block information of overlapping image blocks can be extracted from the intermediate reconstructed image. These similar image blocks have similar pixel value distributions and have similar descriptions of local structure and texture features in the intermediate reconstructed image.
[0124] ② Increase local structural information: Arrange the pixel values of similar image blocks into three-dimensional data blocks so that the algorithm can simultaneously consider the local structural information between similar image blocks. This can better capture local features such as texture, edges, and details in the intermediate reconstructed image.
[0125] ③ Reduce the impact of noise: By performing 3D transformation and processing on the pixel values of similar image blocks, the impact of noise in the intermediate reconstructed image on the denoising result of the intermediate reconstructed image can be reduced. The pixel values of similar image blocks are arranged in three-dimensional space, so that the algorithm can better distinguish between noise and signal components and process them effectively.
[0126] ④ Enhance image features: 3D transformation can enhance the feature information in the intermediate reconstructed image, making the denoising effect of the intermediate reconstructed image more accurate and stable.
[0127] 3. Filtering of 3D transformation can effectively preserve the texture and detail features in the image while reducing the impact of noise.
[0128] Apply an appropriate filter to each 3D data block to reduce noise. This may involve the use of non-linear filters such as hard thresholding or soft thresholding.
[0129] Aggregation: Merge the filtered blocks into the output image, usually by weighted averaging to avoid artifacts at the boundaries. Place the 3D data blocks one by one in the corresponding positions in the output image according to the positions of similar blocks in the original image. For example, a 512x512 input image is selected, and 8x8 overlapping image blocks are selected during image processing. After 3D transformation and filtering, a set of filtered 3D data blocks are obtained, each of which is 8x8xm in size, where m is the number of overlapping image blocks in the 3D data block.
[0130] Now we need to aggregate these filtered blocks into the output image. And according to the position of each overlapping image block in the intermediate reconstructed image, each 3D data block is placed one by one in the corresponding position in the output image. For the overlapping area, weighted averaging or other interpolation methods can be used.
[0131] By performing filtering, merging and aggregation processing on three-dimensional data blocks, the texture and detail features in the image can be effectively retained while reducing the impact of noise.
[0132] like Figure 4 As shown, the present application provides an image reconstruction system, comprising:
[0133] A preprocessing module, used for preprocessing the original image to obtain a plurality of measurement image blocks of the same size;
[0134] A linear mapping module, used for performing linear mapping on each measurement image block in the plurality of measurement image blocks to obtain a corresponding preliminary reconstructed image block;
[0135] An extraction module, used to extract global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block;
[0136] A merging module, used for merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image;
[0137] The deblocking filter module is used to perform deblocking filtering on the intermediate reconstructed image to obtain the target reconstructed image.
[0138] Optionally, the preprocessing module is specifically used to:
[0139] Performing image segmentation processing on the original image to obtain multiple original image blocks of the same size;
[0140] For each original image block among the multiple original image blocks, compressed sensing processing is performed on each original image block to obtain a corresponding measurement image block.
[0141] Optionally, the preprocessing module is specifically used to:
[0142] For each original image block among the multiple original image blocks, perform sparse processing on each original image block to obtain a corresponding sparse image block;
[0143] The sparse image blocks are transformed into measurement image blocks using a preset observation matrix.
[0144] Optionally, the linear mapping module is specifically used for:
[0145] For each measurement image block in the plurality of measurement image blocks, input each measurement image block into a pre-constructed mapping network;
[0146] Each measured image block is transformed into a preliminary reconstructed image block using the mapping matrix in the mapping network.
[0147] Optionally, the extraction module is specifically used to:
[0148] Extract high-dimensional information of the preliminary reconstructed image block to obtain a high-dimensional image block;
[0149] Extract low-dimensional information of the preliminary reconstructed image block to obtain a low-dimensional image block;
[0150] The sum of the high-dimensional image block and the low-dimensional image block is processed a priori to obtain an intermediate reconstructed image block corresponding to the preliminary reconstructed image block.
[0151] Optionally, merge modules, specifically for:
[0152] Acquire first position information of each measured image block in the original image;
[0153] Using the first position information as second position information of an intermediate reconstructed image block corresponding to each measured image block;
[0154] Each intermediate reconstructed image block is placed on the corresponding second position information to obtain an intermediate reconstructed image.
[0155] Optionally, the deblocking filter module is specifically used for:
[0156] Dividing the intermediate reconstructed image into a plurality of overlapping image blocks according to a preset image block size and a preset overlapping size;
[0157] For each overlapping image block in the plurality of overlapping image blocks, searching for a similar image block in the plurality of overlapping image blocks whose similarity to each overlapping image block is greater than a preset value;
[0158] Arrange each overlapping image block and corresponding similar image blocks to obtain corresponding three-dimensional data blocks;
[0159] Performing filtering processing on the three-dimensional data block to obtain a three-dimensional filtering block;
[0160] The three-dimensional filter blocks corresponding to the multiple overlapping image blocks are merged and aggregated to obtain a target reconstructed image.
[0161] A computing device according to an embodiment of the present application includes a memory, a processor, and a program stored in the memory and running on the processor. When the processor executes the program, some or all steps of the above-mentioned image reconstruction method are implemented.
[0162] Among them, the computing device can be a computer, and correspondingly, its program is computer software. The above-mentioned parameters and steps in a computing device of the present application can refer to the parameters and steps in an embodiment of an image reconstruction method above, and will not be repeated here.
[0163] In an embodiment of the present application, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed, the steps of the above-mentioned image reconstruction method are executed.
[0164] The computer-readable storage medium may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0165] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned computer-readable storage medium may be a non-transitory computer-readable storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient computer-readable storage medium.
[0166] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] Those skilled in the art know that the present application can be implemented as a system, method or computer program product. Therefore, the present disclosure can be specifically implemented in the following forms, namely: it can be complete hardware, it can be complete software (including firmware, resident software, microcode, etc.), or it can be a combination of hardware and software, which is generally referred to as a "module" or "system" herein. In addition, in some embodiments, the present application can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium contains computer-readable program code. Computer-readable storage media can be, for example, but not limited to - electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above.
[0168] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0169] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. An image reconstruction method, characterized in that: include: Preprocessing the original image to obtain multiple measurement image blocks of the same size; For each measurement image block among the multiple measurement image blocks, linear mapping is performed on each measurement image block to obtain a corresponding preliminary reconstructed image block; Extracting global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block; Merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image; Performing a deblocking filtering process on the intermediate reconstructed image to obtain a target reconstructed image; The extracting the global information of the preliminary reconstructed image block to obtain the corresponding intermediate reconstructed image block includes: Extracting high-dimensional information of the preliminary reconstructed image block to obtain a high-dimensional image block; extracting low-dimensional information of the preliminary reconstructed image block to obtain a low-dimensional image block; performing a priori processing on the sum of the high-dimensional image block and the low-dimensional image block to obtain an intermediate reconstructed image block corresponding to the preliminary reconstructed image block; The performing a deblocking filtering process on the intermediate reconstructed image to obtain a target reconstructed image includes: According to a preset image block size and a preset overlapping size, the intermediate reconstructed image is divided into a plurality of overlapping image blocks; for each overlapping image block in the plurality of overlapping image blocks, a similar image block whose similarity with the each overlapping image block is greater than a preset value is searched out in the plurality of overlapping image blocks; each overlapping image block and the corresponding similar image blocks are arranged to obtain a corresponding three-dimensional data block; the three-dimensional data block is filtered to obtain a three-dimensional filter block; and the three-dimensional filter blocks corresponding to the plurality of overlapping image blocks are merged and aggregated to obtain a target reconstructed image.
2. The method according to claim 1, characterized in that The preprocessing includes image segmentation processing and compressed sensing processing. The preprocessing of the original image to obtain a plurality of measurement image blocks of the same size includes: Performing image segmentation processing on the original image to obtain multiple original image blocks of the same size; For each original image block among the multiple original image blocks, compressed sensing processing is performed on each original image block to obtain a corresponding measurement image block.
3. The method according to claim 2, characterized in that The step of performing compressed sensing processing on each of the plurality of original image blocks to obtain a corresponding measurement image block includes: For each original image block among the multiple original image blocks, perform sparse processing on each original image block to obtain a corresponding sparse image block; The sparse image block is transformed into a measurement image block using a preset observation matrix.
4. The method according to claim 1, characterized in that: The step of performing linear mapping on each of the plurality of measurement image blocks to obtain a corresponding preliminary reconstructed image block includes: For each measurement image block among the plurality of measurement image blocks, inputting each measurement image block into a pre-constructed mapping network; Each measured image block is transformed into a preliminary reconstructed image block using a mapping matrix in the mapping network.
5. The method according to claim 1, characterized in that The step of merging the intermediate reconstructed image blocks corresponding to the plurality of measured image blocks to obtain an intermediate reconstructed image includes: Acquire first position information of each measured image block in the original image; Using the first position information as second position information of the intermediate reconstructed image block corresponding to each measured image block; Each of the intermediate reconstructed image blocks is placed on the corresponding second position information to obtain an intermediate reconstructed image.
6. An image reconstruction system, characterized in that: include: A preprocessing module, used for preprocessing the original image to obtain a plurality of measurement image blocks of the same size; A linear mapping module, configured to perform linear mapping on each of the plurality of measured image blocks to obtain a corresponding preliminary reconstructed image block; An extraction module, used to extract global information of the preliminary reconstructed image block to obtain a corresponding intermediate reconstructed image block; A merging module, used for merging the intermediate reconstructed image blocks corresponding to the multiple measured image blocks to obtain an intermediate reconstructed image; A deblocking filter module, used for performing a deblocking filter process on the intermediate reconstructed image to obtain a target reconstructed image; The extraction module is specifically used for: Extract high-dimensional information of the preliminary reconstructed image block to obtain a high-dimensional image block; extract low-dimensional information of the preliminary reconstructed image block to obtain a low-dimensional image block; perform a priori processing on the sum of the high-dimensional image block and the low-dimensional image block to obtain an intermediate reconstructed image block corresponding to the preliminary reconstructed image block The deblocking filter module is specifically used for: According to a preset image block size and a preset overlapping size, the intermediate reconstructed image is divided into a plurality of overlapping image blocks; for each overlapping image block in the plurality of overlapping image blocks, a similar image block whose similarity with the each overlapping image block is greater than a preset value is searched out from the plurality of overlapping image blocks; each overlapping image block and the corresponding similar image blocks are arranged to obtain a corresponding three-dimensional data block; The three-dimensional data block is subjected to filtering processing to obtain a three-dimensional filtering block; and the three-dimensional filtering blocks corresponding to the multiple overlapping image blocks are subjected to merging processing and aggregation processing to obtain a target reconstructed image.
7. A computing device comprising a memory, a processor, and a program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the steps of an image reconstruction method as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the steps of an image reconstruction method as claimed in any one of claims 1 to 5.
