Subspace low-rank regularized image restoration method based on prior information guidance

Through the subspace low-rank regularization method guided by prior information, the subspace structure and clustering of image blocks are learned, and the subspace is established for low-rank matrix approximation, which solves the problem of insufficient internal information of the image in the existing technology and realizes image processing. Natural recovery and high-quality recovery.

CN113935924BActive Publication Date: 2024-09-10FUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111327728.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-10
Publication Date
2024-09-10
Estimated Expiration
2041-11-10

AI Technical Summary

Technical Problem

In the case of severe information loss or noise pollution, it is difficult to achieve natural image restoration by relying only on the internal information of the image, and it is easy to cause the restored image to have oscillating edges and false textures.

Method used

A subspace low-rank regular image restoration method guided by prior information is used to learn multiple subspace structures of image blocks through a Gaussian mixture model, cluster similar block groups, establish subspaces and perform low-rank matrix approximation, and combine it with the ADMM algorithm to iteratively solve , ultimately achieving natural restoration of the image.

Benefits of technology

It effectively improves the restoration quality of images with severe information loss or noise pollution, making the restored images more natural. It can set different matrices according to different restoration problems (such as image denoising, image repair) to achieve image restoration, and solve it through alternate iterations. The algorithm simplifies the low-rank matrix approximation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113935924B
    Figure CN113935924B
Patent Text Reader

Abstract

The present invention relates to a subspace low-rank regularized image restoration method based on prior information guidance, comprising the following steps: step S1: obtaining a natural image, and using a mixed Gaussian model to learn multiple subspace structures of image blocks; step S2: overlapping and blocking the image to be restored, clustering these overlapping blocks using the learned multiple subspace structures, and obtaining multiple similar block groups; step S3: for each similar block group, using the subspace structure of the block group to guide linear transformation to establish a subspace; step S4: performing low-rank matrix approximation in each subspace; step S5: aggregating all the block groups, and then combining ADMM to obtain the restored image, step S5: looping steps S2-S5, iterating to a result that meets the preset restoration requirements, that is, the final restored image. The present invention can improve the restoration quality of images with information loss or severe noise pollution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a subspace low-rank regularized image restoration method guided by prior information. Background Art

[0002] Image restoration is a typical inverse problem. Image restoration usually requires the help of prior information, which can be roughly divided into two categories: one is to use the prior of external clear images (for example, total variation, sparsity) to guide image restoration; the other is to use the internal prior of the image (for example, image self-similarity) to restore the image. For severely damaged images, it is usually necessary to combine external and internal priors to achieve better image restoration. In recent years, there has been a lot of research work in this area. For example, the PELL method uses a mixed Gaussian model to learn the block subspace structure of the external image and combines it with the Wiener filter to achieve image restoration. WNNM uses block matching to find similar blocks and uses weighted low rank to achieve image restoration. PCLR uses external image block prior information to guide block clustering and combines it with a low rank method to achieve image restoration. With the rapid development of the plug-and-play framework, the IDBP method uses a denoising model (such as BM3D, IRCNN) as a priori combined with the ADMM algorithm to achieve image restoration. However, in the case of data loss or severe noise pollution, these methods cannot provide enough information for image restoration by relying solely on the internal information of the image. Forcing local similarity or non-local similarity can easily cause the restored image to have oscillating edges and produce false textures, making the restored image unnatural. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide a subspace low-rank regularized image restoration method based on prior information guidance, which can improve the restoration quality of images with information loss or severe noise pollution.

[0004] To achieve the above object, the present invention adopts the following technical solution:

[0005] A subspace low-rank regularized image restoration method based on prior information guidance comprises the following steps:

[0006] Step S1: Obtain a natural image and use a mixed Gaussian model to learn multiple subspace structures of image blocks;

[0007] Step S2: Divide the image to be restored into overlapping blocks, and cluster these overlapping blocks using the learned multiple subspace structures to obtain multiple similar block groups;

[0008] Step S3: for each similar block group, using the subspace structure of the block group to guide the linear transformation to establish the subspace;

[0009] Step S4: perform low-rank matrix approximation in each subspace;

[0010] Step S5: Aggregate all the block groups and combine them with ADMM to obtain the restored image.

[0011] Step S5: loop steps S2-S5 and iterate until a result that meets the preset restoration requirements is obtained, i.e., the final restored image.

[0012] Furthermore, the step S1 is specifically as follows:

[0013] Assume that the external natural image blocks form K subspaces, and each image block x i It can be expressed as a mixed Gaussian model:

[0014]

[0015] where Θ=(w1,…,w K ,θ1,…,θ K ) is a set of related parameters and satisfies Parameter θ k Describes a subspace Represents the Gaussian density function p k The mean value is u k The covariance matrix is ​​Σ k ;

[0016] Given an external image training set, we randomly select image patches from it and train a mixed Gaussian model to obtain K subspaces

[0017] Furthermore, the step S2 is specifically as follows: for each image block x i =P i x calculates its conditional probability to get the category it belongs to, where P i is a d×n matrix, indicating taking the i-th image block from image x

[0018]

[0019] Calculate the conditional probabilities of all categories, and take the category with the maximum probability as the category of the image block;

[0020] All image blocks belonging to the same category are merged into a block group, and the k-th block group is recorded as

[0021] Furthermore, the step S3 is specifically as follows:

[0022] Subspace covariance matrix Σ k Perform (SVD) singular value decomposition

[0023]

[0024] Among them k =diag(ψ k,1 ,…,ψ k,d ) is a diagonal matrix, yes The i-th column in ;

[0025] Introduce an orthogonal transformation matrix Used to find a subspace to better realize low-rank matrix recovery, where F k The fixed submatrix is ​​Σ k The eigenvectors corresponding to the largest first b eigenvalues ​​are composed of

[0026] To learn the sub-matrix, it is obtained by adaptive learning of the block group;

[0027] Construct the following subspace low-rank regularization term S(Γ guided by the prior information of natural images k (x)), in the fixed term F k Under the guidance of k Find the optimal subspace and achieve block group recovery through low-rank matrix approximation

[0028]

[0029] Among them, Q k is an orthogonal matrix, where F k is obtained a priori from the external natural image patch, and L k It is calculated from the internal block group data.

[0030] Furthermore, the step S4 is specifically as follows:

[0031] Given an image to be restored We hope to restore the real image to For similar block group Γ k (x), realize subspace low-rank regular restoration, the image restoration model is as follows:

[0032]

[0033]

[0034] in represents the degradation matrix.

[0035] Furthermore, for the image denoising problem, the degradation matrix A is a unit matrix; for the image inpainting problem, A is a binary mask matrix.

[0036] Furthermore, the step S5 is specifically as follows:

[0037] Step S51: Given x t and have Solution k=1,…,K;

[0038]

[0039] make σ j (Z k ) is Z k The j-th single value of is decomposed by singular value decomposition (SVD) Get the optimal solution

[0040]

[0041] where β j =1 / (σ j (Z k )+∈), ∈ is a constant greater than 0, and (x) + =max{x,0}

[0042] Step S52: Given x t and Solution k=1,…,K

[0043]

[0044] make in This equation has the same solution as the following equation,

[0045]

[0046] Perform singular value decomposition (SVD), in and is an orthogonal matrix, the unique solution of the above equation is expressed as

[0047] Step S53: Given and have Solving for x t+1

[0048]

[0049] because

[0050]

[0051] in Represents the image x t Extract the jth image block of the kth class from Z k (:, j) represents Z k The jth column in .

[0052] Compared with the prior art, the present invention has the following beneficial effects:

[0053] 1. The present invention proposes that external natural image prior information guides image block aggregation, which can aggregate image blocks with similar structures. At the same time, the external prior information guides the search for the optimal image block subspace to achieve low-rank regularization, which can better maintain the structure of the image and make the restored image more natural.

[0054] 2. The restoration framework of the present invention can set different matrices A according to different restoration problems (such as image denoising and image inpainting), thereby realizing image restoration;

[0055] 3. The present invention proposes an alternating iterative solution algorithm to find the optimal subspace to achieve low-rank matrix approximation. The solution can be obtained through two singular value decompositions, which is simple and fast to implement. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 is a flow chart of the method of the present invention;

[0057] Figure 2 It is a schematic diagram of obtaining the optimal subspace structure through orthogonal transformation learning to realize low-rank matrix approximation in one embodiment of the present invention;

[0058] Figure 3 This is the restoration result of a damaged image with 80% pixels randomly lost in one embodiment of the present invention. DETAILED DESCRIPTION

[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0060] Please refer to Figure 1 The present invention provides a subspace low-rank regularized image restoration method based on prior information guidance, comprising the following steps:

[0061] 1) Use the Gaussian mixture model to learn multiple subspace structures of image blocks from a large number of external natural images. Assuming that the external natural image blocks form K subspaces, then each image block It can be expressed by a mixed Gaussian model: where Θ=(w1,…ww K ,θ1,…,θ K ) is a set of related parameters and satisfies Parameter θ k Describes a subspace Represents the Gaussian density function pk The mean value of The covariance matrix is Given an external image training set, a large number of image patches are randomly extracted from it, and K subspaces are obtained by training the mixed Gaussian model

[0062] 2) For images Overlapping blocks are divided into blocks at a certain step length, and these overlapping blocks are clustered using the learned multiple subspace structures. Calculate its conditional probability to get the category, where P i It is a d×n matrix, which means taking the i-th image block from image x.

[0063]

[0064] The conditional probabilities of all categories are calculated, and the category with the maximum probability is taken as the category of the image block. All image blocks belonging to the same category are merged into a block group, and the kth block group is recorded as

[0065] 3) For each similar block group, the prior information of the block group is used to guide the linear transformation to establish a subspace; since the subspace structure of the natural image block is used to find similar blocks, the subspace structure is helpful for image restoration of the block group. First, the subspace covariance matrix Σ k Perform (SVD) singular value decomposition, Among them k =diag(ψ k,1 ,…,ψ k,d ) is a diagonal matrix, yes Introducing an orthogonal transformation matrix Used to find a subspace to better realize low-rank matrix recovery, where F k The fixed submatrix is ​​Σ k The eigenvectors corresponding to the largest first b eigenvalues ​​are composed of The learning submatrix is ​​obtained by adaptive learning of the block group. The block group matrix composed of similar image blocks has a low-rank property, so the following subspace low-rank regularization term S(Γ) guided by the prior information of natural images is constructed k (x)), in the fixed term F k Under the guidance of k Find the optimal subspace and achieve block group recovery through low-rank matrix approximation.

[0066]

[0067] Here Qk is an orthogonal matrix that can maintain point multiplication and modular operations, where F k is obtained a priori from the external natural image patch, and L k It is calculated from the internal block group data.

[0068] 4) Combine the subspace low-rank regularization term guided by prior information to build an image restoration model. Given the image to be restored We hope to restore the real image to For similar block group Γ k (x), realize the subspace low-rank regularization restoration, the model is as follows:

[0069]

[0070]

[0071] in Represents the degradation matrix. For image denoising, A is a unit matrix; for image inpainting, A is a binary mask matrix.

[0072] 5) The restored image x is obtained by solving the restoration model through the following alternating iterations. The specific solution steps are as follows:

[0073] a) Given x t and have Solution k=1,…,K.

[0074]

[0075] make σ j (Z k ) is Z k The j-th single value of is decomposed by singular value decomposition (SVD) Can get the optimal solution

[0076]

[0077] where β j =1 / (σ j (Z k )+∈), ∈ is a constant greater than 0, and (x) + =max{x,0}.

[0078] b) Given x t and Solution k=1,…,K。

[0079]

[0080] make in This equation has the same solution as the following equation,

[0081]

[0082] Perform singular value decomposition (SVD), in and is an orthogonal matrix, the unique solution of the above equation can be expressed as

[0083] c) Given and have Solving for x t+1

[0084]

[0085] because

[0086]

[0087] in Represents the image x t Extract the jth image block of the kth class from Z k (:, j) represents Z k The jth column in .

[0088] Preferably, in this embodiment, the matrix A can be set according to different restoration problems (such as image denoising, image inpainting), so as to achieve image restoration.

[0089] Embodiment 1:

[0090] In this embodiment, the following steps are specifically included:

[0091] 1) Randomly select N images from a set of natural images The natural image blocks of size are arranged in one-dimensional column vectors to form N d-dimensional prior image block training sets. In this example, preferably, N = 2 × 10 6 , d = 64.

[0092] 2) Using Gaussian mixture model (GMM), learn K low-dimensional subspace structures from the prior image patch training set k=1,…,K,each subspace structure can be represented by the mean and covariance Indicates. In this example, preferably, K=250.

[0093] 3) For images By step size St Overlapping blocks are drawn, and the block size is Arrange the image blocks according to the one-dimensional column vector to obtain L overlapping blocks P1x, ..., P L x, where P i x means taking the i-th image block from image x, is the operator for extracting image blocks.

[0094] 4) Cluster these image blocks using the learned K subspace structures. The steps are: for each image block Calculate its conditional probability in the kth class, the calculation formula is k = 1, ..., K. Take the category with the maximum probability as the category of the image block, and merge all image blocks belonging to the same category to form a block group matrix. The kth block group is recorded as Where r(k) is the number of image blocks of this category. In this example, preferably, S t =1,n=481×321.

[0095] 5) For block groups greater than N m騰x The block group uses K-means to perform secondary clustering on the position of each block in the image, and the number of each category is not less than N min In this example, preferably, N m騰x =2000,N min =10.

[0096] 6) For each similar block group, use the prior information of the block group to learn the subspace transformation. Introduce an orthogonal transformation matrix Used to find a subspace to better realize low-rank matrix recovery, where F k The fixed submatrix is ​​composed of the prior information Σ k The eigenvectors corresponding to the largest first b eigenvalues ​​are composed of Here, U k =Σ k (SVD) singular value decomposition to obtain the left orthogonal matrix, is the learning submatrix, which is obtained by adaptive learning of the block group. k Under the guidance of Block group restoration is achieved by alternating subspace transformation and low-rank matrix approximation. In this example, b=30.

[0097] In this embodiment, the alternating iterative solution process is specifically as follows:

[0098] (a) Given x t and Solution k = 1, ..., K. Let σ j (Z k ) is Z k The j-th single value of is decomposed by singular value decomposition (SVD) Can get the optimal solution where β j =1 / (σ j (Z k )+∈), ∈ is a constant greater than 0, and (x) + =max{x,0}. In this example, ∈=1×10 -6 .

[0099] (b) Given x t and Solution k = 1, ..., K. Let in Decomposition by singular value (SVD) in and As an orthogonal matrix, we can get a unique solution, which is expressed as

[0100] (c) Given and Solving for x t+1 .because in, Represents the image x t Extract the jth image block of the kth class from Z k (:, j) represents Z k The jth column in .

[0101] Through the above method, the present invention can set the matrix A according to different restoration problems (such as image denoising, image inpainting), thereby realizing image restoration.

[0102] refer to Figure 3 In this embodiment, in order to verify the effectiveness of the method of this example, this example takes image repair as an example to restore a damaged image with 80% pixels randomly lost. Figure 3 (a) is the original image, Figure 3 (b) is a damaged image with 80% pixels randomly lost. Figure (c) is the image restoration result of the proposed algorithm. The restored image has PSNR: 24.38dB, SSIM: 0.739.

[0103] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A subspace low-rank regularized image restoration method based on prior information guidance, characterized in that: The following steps are involved: Step S1: Obtain a natural image and use a mixed Gaussian model to learn multiple subspace structures of image blocks; Step S2: Divide the image to be restored into overlapping blocks, and cluster these overlapping blocks using the learned multiple subspace structures to obtain multiple similar block groups; Step S3: for each similar block group, using the subspace structure of the block group to guide the linear transformation to establish the subspace; Step S4: perform low-rank matrix approximation in each subspace; Step S5: Aggregate all the block groups and combine them with ADMM to obtain the restored image. Step S5: looping steps S2-S5, iterating until a result that meets the preset restoration requirements is obtained, i.e., the final restored image; The step S3 is specifically as follows: Subspace covariance matrix Σ k Perform (SVD) singular value decomposition Among them Ψ k =diag(ψ k,1 ,…,ψ k,d ) is a diagonal matrix, yes The i-th column in ; Introduce an orthogonal transformation matrix Used to find a subspace to better realize low-rank matrix recovery, where F k The fixed submatrix is ​​Σ k The eigenvectors corresponding to the largest first b eigenvalues ​​are composed of To learn the sub-matrix, it is obtained by adaptive learning of the block group; Construct the following subspace low-rank regularization term S(Γ guided by the prior information of natural images k (x)), in the fixed submatrix F k Under the guidance of k Find the optimal subspace and achieve block group recovery through low-rank matrix approximation Among them, Q k is an orthogonal matrix, where F k is obtained a priori from the external natural image patch, and L k It is calculated from the internal block group data; The step S4 is specifically as follows: Given an image to be restored We hope to restore the real image to For similar block group Γ k (x), realize subspace low-rank regular restoration, the image restoration model is as follows: in represents the degradation matrix.

2. The subspace low-rank regularized image restoration method based on prior information guidance according to claim 1, characterized in that: The step S1 is specifically as follows: Assume that the external natural image blocks form K subspaces, and each image block x i It can be expressed as a mixed Gaussian model: where Θ=(w1,…,w K ,θ1,…,θ K ) is a set of related parameters and satisfies Parameter θ k Describes a subspace Represents the Gaussian density function p k The mean value is u k The covariance matrix is ​​Σ k ; Given an external image training set, we randomly select image patches from it and train a mixed Gaussian model to obtain K subspaces 3. The subspace low-rank regularized image restoration method based on prior information guidance according to claim 1, characterized in that: The step S2 is specifically as follows: for each image block x i =P i x calculates its conditional probability to get the category it belongs to, where P i is a d×n matrix, indicating taking the i-th image block from image x Calculate the conditional probabilities of all categories, and take the category with the maximum probability as the category of the image block; All image blocks belonging to the same category are merged into a block group, and the k-th block group is recorded as 4. The subspace low-rank regularized image restoration method based on prior information guidance according to claim 1, characterized in that: The degradation matrix, for the image denoising problem, A is a unit matrix; for the image inpainting problem, A is a binary mask matrix.

5. The subspace low-rank regularized image restoration method based on prior information guidance according to claim 1, characterized in that: The step S5 is specifically as follows: Step S51: Given x t and have Solution make σ j (Z k ) is Z k The j-th single value of is decomposed by singular value decomposition (SVD) Get the optimal solution where β j =1 / (σ j (Z k )+∈), ∈ is a constant greater than 0, and (x) + =max{x,0} Step S52: Given x t and Solution make in This equation has the same solution as the following equation, Perform singular value decomposition (SVD), in and is an orthogonal matrix, the unique solution of the above equation is expressed as Step S53: Given and have Solving for x t+1 because in Represents the image x t Extract the jth image block of the kth class from Z k (:,j) represents Z k The jth column in .