[go: up one dir, main page]

CN112085666B - Image complement method based on restarting strategy and approximate alternation punishment algorithm - Google Patents

Image complement method based on restarting strategy and approximate alternation punishment algorithm Download PDF

Info

Publication number
CN112085666B
CN112085666B CN202010749675.1A CN202010749675A CN112085666B CN 112085666 B CN112085666 B CN 112085666B CN 202010749675 A CN202010749675 A CN 202010749675A CN 112085666 B CN112085666 B CN 112085666B
Authority
CN
China
Prior art keywords
matrix
approximate
repair
algorithm
low
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010749675.1A
Other languages
Chinese (zh)
Other versions
CN112085666A (en
Inventor
郑建炜
周鑫杰
陈培俊
陈婉君
冯宇超
蒋嘉伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN202010749675.1A priority Critical patent/CN112085666B/en
Publication of CN112085666A publication Critical patent/CN112085666A/en
Application granted granted Critical
Publication of CN112085666B publication Critical patent/CN112085666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/20Image enhancement or restoration using local operators
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种基于重启策略与近似交替惩罚算法的图像补全方法,包括获取待补全的自然图像数据输入低秩全变分修复模型;利用近似交替惩罚算法迭代求解所述低秩全变分修复模型,并在迭代次数达到N的倍数时利用重启策略重置近似交替惩罚算法中的变量,直至迭代至预设的最大迭代次数;输出求解得到的补全后的自然图像数据。本申请建立的低秩全变分修复模型从多维度考虑图像修复,并且采用近似交替惩罚算法对低秩全变分修复模型进行求解,以应用于自然图像修复,求解速度快,同时使用了重新策略,即迭代到一定次数,重新给参数赋初值,以显著提高近似交替惩罚算法的性能,在提高修复效率的同时达到较优的修复效果。

The invention discloses an image completion method based on a restart strategy and an approximate alternating penalty algorithm, which includes obtaining natural image data to be completed and inputting a low-rank total variation repair model; using an approximate alternating penalty algorithm to iteratively solve the low-rank full variation repair model Variational repair model, and when the number of iterations reaches a multiple of N, a restart strategy is used to reset the variables in the approximate alternating penalty algorithm until the iteration reaches the preset maximum number of iterations; the completed natural image data obtained from the solution is output. The low-rank total variation repair model established in this application considers image repair from multiple dimensions, and uses an approximate alternating penalty algorithm to solve the low-rank total variation repair model, so as to be applied to natural image repair. The solution speed is fast, and at the same time, it uses re- The strategy is to iterate to a certain number of times and reassign initial values to the parameters to significantly improve the performance of the approximate alternating penalty algorithm and achieve better repair results while improving repair efficiency.

Description

一种基于重启策略与近似交替惩罚算法的图像补全方法An image completion method based on restart strategy and approximate alternating penalty algorithm

技术领域Technical field

本申请属于图像处理技术领域,具体涉及一种基于重启策略与近似交替惩罚算法的图像补全方法,尤其是针对低秩全变分自然图像的补全。This application belongs to the field of image processing technology, and specifically relates to an image completion method based on a restart strategy and an approximate alternating penalty algorithm, especially for the completion of low-rank total variation natural images.

背景技术Background technique

随着采集技术的进步,在计算机视觉、神经科学、遥感和推荐系统等众多领域中建立了大量的高阶张量数据集。作为矩阵和向量的一般化,Kolda等人指出多维数组可用张量表示,其可以有效地表示多维数据与多个因子相关的相互作用。如彩色图像可以表示为三阶十进制的张量,其中三个维度分别是高度,宽度和颜色通道。然而,由于信息丢失或获取完整数据需花费巨大成本,实际应用程序中构建的张量可能会包含缺失值。因此,对缺失值进行补全(称为张量补全问题)成为一个重要的研究主题。With the advancement of acquisition technology, a large number of high-order tensor data sets have been established in many fields such as computer vision, neuroscience, remote sensing, and recommendation systems. As a generalization of matrices and vectors, Kolda et al. pointed out that multidimensional arrays can be represented by tensors, which can effectively represent the interaction of multidimensional data with multiple factors. For example, a color image can be represented as a third-order decimal tensor, where the three dimensions are height, width and color channel. However, tensors constructed in real-world applications may contain missing values due to information loss or the huge cost of obtaining complete data. Therefore, completing missing values (called the tensor completion problem) has become an important research topic.

张量补全是一个典型的不适定的逆问题,这意味着该问题的解是不唯一的。解决这个问题需引入一系列的先验条件,例如局部光滑先验条件、稀疏先验条件、低秩先验条件等。近年来,低秩先验在解决矩阵和张量补全问题中变得越来越重要。然而与矩阵不同,张量的秩并不唯一,如何将张量的秩最小化是一个NP难题,因此最小化张量的核范数被视为张量低秩先验的标准方法,通过最小化张量核范数,将一个NP难题简化为了一个凸优化问题。Tensor completion is a typical ill-posed inverse problem, which means that the solution to the problem is not unique. To solve this problem, a series of prior conditions need to be introduced, such as local smooth prior conditions, sparse prior conditions, low-rank prior conditions, etc. In recent years, low-rank priors have become increasingly important in solving matrix and tensor completion problems. However, unlike matrices, the rank of a tensor is not unique. How to minimize the rank of a tensor is an NP-hard problem. Therefore, minimizing the nuclear norm of a tensor is regarded as a standard method for tensor low-rank prior. By minimizing The tensor core norm simplifies an NP difficult problem into a convex optimization problem.

Li等人提出在视觉数据修补领域,低秩先验虽然有效利用了视觉数据的稀疏性,相似性和重复性等特性,但并不能有效的挖掘视觉数据在空间维度上的平滑与分段结构。如果不对此类局部结构进行特殊考虑,则可能不能达到一个很好的修复效果。因此提出将全变分(Total Variation,TV)正则项加入到张量补全模型中,作为低秩先验的补充结构,以便可以利用视觉数据的局部分段平滑结构。由此提出了基于低秩全变分(Low-RankTensor Completion with Total Variation,LRTV)的张量补全模型,并将其应用于视觉数据修补。Li et al. proposed that in the field of visual data repair, although low-rank prior effectively utilizes the sparseness, similarity, and repeatability of visual data, it cannot effectively mine the smoothness and segmentation structure of visual data in the spatial dimension. . Without special consideration of such local structures, a good restoration may not be achieved. Therefore, it is proposed to add the total variation (TV) regular term to the tensor completion model as a supplementary structure to the low-rank prior, so that the local piecewise smooth structure of visual data can be exploited. This paper proposes a tensor completion model based on Low-Rank Tensor Completion with Total Variation (LRTV) and applies it to visual data repair.

求解LRTV模型,作为一个凸优化问题,可以用许多经典的凸优化算法对其求解,如交替方向乘子法(Alternating Direction Method of Multipliers,ADMM),原始对偶分裂法(Primal-dual Splitting Algorithm,PDS)等。但是现有的ADMM,PDS等算法求解LRTV模型计算效率低下,修复效果差。Solving the LRTV model, as a convex optimization problem, can be solved by many classic convex optimization algorithms, such as the Alternating Direction Method of Multipliers (ADMM), Primal-dual Splitting Algorithm (PDS) )wait. However, existing ADMM, PDS and other algorithms for solving LRTV models have low computational efficiency and poor repair effects.

发明内容Contents of the invention

本申请的目的在于提供一种基于重启策略与近似交替惩罚算法的图像补全方法,图像补全修复效率高,修复效果好。The purpose of this application is to provide an image completion method based on a restart strategy and an approximate alternating penalty algorithm, which has high image completion and repair efficiency and good repair effects.

为实现上述目的,本申请所采取的技术方案为:In order to achieve the above purpose, the technical solutions adopted by this application are:

一种基于重启策略与近似交替惩罚算法的图像补全方法,所述基于重启策略与近似交替惩罚算法的图像补全方法,包括:An image completion method based on a restart strategy and an approximate alternating penalty algorithm. The image completion method based on a restart strategy and an approximate alternating penalty algorithm includes:

步骤1、获取待补全的自然图像数据输入低秩全变分修复模型,其中m、n分别表示自然图像的宽度、高度,3表示自然图像数据的RGB三个通道;Step 1. Obtain the natural image data to be completed Enter the low-rank total variation repair model, where m and n represent the width and height of the natural image respectively, and 3 represents the three RGB channels of the natural image data;

步骤2、利用近似交替惩罚算法迭代求解所述低秩全变分修复模型,并在迭代次数达到N的倍数时利用重启策略重置近似交替惩罚算法中的变量,直至迭代次数达到预设的最大迭代次数;Step 2: Use the approximate alternating penalty algorithm to iteratively solve the low-rank total variation repair model, and use the restart strategy to reset the variables in the approximate alternating penalty algorithm when the number of iterations reaches a multiple of N until the number of iterations reaches the preset maximum number of iterations;

步骤3、输出求解得到的补全后的自然图像数据;Step 3. Output the completed natural image data obtained by solving the problem;

其中,所述低秩全变分修复模型,包括:Among them, the low-rank total variation repair model includes:

针对自然图像补全修复的低秩全变分修复模型定义如下:The low-rank total variation restoration model for natural image completion restoration is defined as follows:

式中,为张量,表示输入的待补全的自然图像数据,/>为张量,表示输出的补全后的自然图像数据,/>表示张量/>的低秩项,其定义为并且Y(k)表示张量/>的第k维的m×n矩阵,λk表示张量/>的第k维的m×n矩阵的核范数的权重系数,/>表示张量/>的全变分正则项,其定义为wk表示张量/>的第k维的m×n矩阵的全变分正则项的权重系数,并且||Y(k)||tv的定义如下:In the formula, is a tensor, representing the input natural image data to be completed,/> is a tensor, representing the output completed natural image data,/> Represents tensor/> The low-rank term of , which is defined as And Y (k) represents the tensor/> The m×n matrix of the kth dimension, λ k represents the tensor/> The weight coefficient of the nuclear norm of the k-th dimension m×n matrix,/> Represents tensor/> The total variation regular term of , which is defined as w k represents tensor/> The weight coefficient of the total variation regularization term of the k-th dimension m×n matrix, and ||Y (k) || tv is defined as follows:

式中yi,j表示矩阵Y(k)第i行、第j列所对应的元素;In the formula, yi ,j represents the element corresponding to the i-th row and j-th column of matrix Y (k) ;

||·||F为Frobenius范数,其定义为Qi,j为矩阵Q第i行、第j列所对应的元素值,/>为一个索引矩阵,索引矩阵/>中的0表示输入的自然图像数据/>中的丢失元素,1表示输入的自然图像数据/>中的可观测元素,Ω为支持集Ω,表示未丢失的元素集,α和β分别表示低秩项与全变分正则项的参数,δ的值根据输入的待补全的自然图像数据/>中元素丢失率而定,所述丢失率符号:=表示定义为。||·|| F is the Frobenius norm, which is defined as Q i,j is the element value corresponding to the i-th row and j-th column of matrix Q,/> is an index matrix, index matrix/> The 0 in represents the input natural image data/> The missing element in , 1 represents the input natural image data/> Among the observable elements, Ω is the support set Ω, which represents the set of elements that have not been lost. α and β represent the parameters of the low-rank term and the total variation regular term respectively. The value of δ is based on the input natural image data to be completed/ > depends on the element loss rate, the loss rate Symbol:= means defined as.

以下还提供了若干可选方式,但并不作为对上述总体方案的额外限定,仅仅是进一步的增补或优选,在没有技术或逻辑矛盾的前提下,各可选方式可单独针对上述总体方案进行组合,还可以是多个可选方式之间进行组合。Several optional methods are also provided below, but they are not used as additional limitations on the above-mentioned overall plan. They are only further additions or preferences. On the premise that there are no technical or logical contradictions, each optional method can be independently implemented for the above-mentioned overall plan. Combination can also be a combination between multiple optional methods.

作为优选,所述步骤2利用近似交替惩罚算法迭代求解所述低秩全变分修复模型,并在迭代次数达到N的倍数时利用重启策略重置近似交替惩罚算法中的变量,直至迭代次数达到预设的最大迭代次数,包括:Preferably, step 2 uses an approximate alternating penalty algorithm to iteratively solve the low-rank total variation repair model, and when the number of iterations reaches a multiple of N, a restart strategy is used to reset the variables in the approximate alternating penalty algorithm until the number of iterations reaches Preset maximum number of iterations, including:

步骤2.1、根据近似交替惩罚算法的求解规则,将所述低秩全变分修复模型转化为如下形式,以转化后的形式作为目标函数:Step 2.1. According to the solution rules of the approximate alternating penalty algorithm, transform the low-rank total variation repair model into the following form, and use the transformed form as the objective function:

式中,X和Y分别表示张量和张量/>的矩阵形式;In the formula, X and Y respectively represent tensors and tensor/> matrix form;

步骤2.2、令g(Y)表示f(X)表示/> 表示 Step 2.2, let g(Y) represent f(X) represents/> express

步骤2.3、初始化α,β,ρ0,向量w,向量λ,迭代次数iter=0,λk和wk表示向量λ和w的第k个元素;Step 2.3, initialization α, β, ρ 0 , vector w, vector λ, iteration number iter=0, λ k and w k represent the k-th element of vectors λ and w;

步骤2.4、计算 Step 2.4, Calculate

步骤2.5、计算 Step 2.5, Calculate

步骤2.6、更新 Step 2.6, update

步骤2.7、更新ρiter+1Step 2.7, update ρ iter+1 ;

步骤2.8、判断迭代次数iter是否为N的整数倍,若是则利用重启策略重置近似交替惩罚算法中的变量,重置的变量为ρiter=ρ0否则执行步骤2.9;Step 2.8. Determine whether the number of iterations iter is an integer multiple of N. If so, use the restart strategy to reset the variables in the approximate alternating penalty algorithm. The reset variables are ρ iter0 , Otherwise, go to step 2.9;

步骤2.9、判断迭代次数iter是否达到预设的最大迭代次数,若是则结束迭代,将最新的作为求解得到的补全后的自然图像数据;否则返回步骤2.4继续迭代。Step 2.9. Determine whether the number of iterations iter reaches the preset maximum number of iterations. If so, end the iteration and add the latest as the completed natural image data obtained from the solution; otherwise, return to step 2.4 to continue iteration.

作为优选,所述步骤2.4计算包括:As a preference, step 2.4 calculates include:

式中,ρiter为惩罚参数,并且 为目标函数的约束项,projκ(·)表示凸集上的投影算子,prox表示目标函数的近似算子,其定义如下:In the formula, ρ iter is the penalty parameter, and is the constraint term of the objective function, proj κ (·) represents the projection operator on the convex set, and prox represents the approximate operator of the objective function, which is defined as follows:

根据近似算子的定义,可将改写为:According to the definition of approximation operator, it can be Rewritten as:

式中f表示f(X),引入引理1来求解 In the formula, f represents f(X), and Lemma 1 is introduced to solve it.

引理1:令是一个给定矩阵,则对秩为r的矩阵W的奇异值分解定义如下:Lemma 1: Let is a given matrix, then the singular value decomposition of the matrix W with rank r is defined as follows:

W=UErVT,Er=diag({σi}1≤i≤r)W=UE r V T ,E r =diag({σ i } 1≤i≤r )

式中,diag({σi}1≤i≤r)表示对角矩阵,其i行对应的对角元素为σi,并且σi是矩阵W的第i个奇异值,U为左奇异矩阵,VT为右奇异矩阵;In the formula, diag({σ i } 1≤i≤r ) represents a diagonal matrix, the diagonal element corresponding to the i row is σ i , and σ i is the i-th singular value of the matrix W, and U is the left singular matrix , V T is the right singular matrix;

并且奇异值收缩运算符将服从以下公式:And the singular value contraction operator will obey the following formula:

因此根据奇异值收缩运算符将矩阵W和对角矩阵Er表示为:Therefore, the matrix W and the diagonal matrix E r are expressed according to the singular value shrinkage operator as:

Jξ(W)=UJξ(W)VT,Jξ(Er)=diag{max((σi-ξ),0)} (W)= UJξ (W) VT ( Er )=diag{max(( σi -ξ),0)}

ξ为输入的阈值,通过引理1,可以得到式的解为:ξ is the input threshold. Through Lemma 1, we can get the formula The solution is:

式中,k取值为1或2或3。In the formula, the value of k is 1 or 2 or 3.

作为优选,所述步骤2.5计算包括:As a preference, step 2.5 calculates include:

式中,g表示g(Y),表示对函数/>中变量/>求梯度,且/> In the formula, g represents g(Y), Represents the function/> Medium variable/> Find the gradient, and/>

利用快速梯度下降法求解k取值为1或2或3。Solve using fast gradient descent method The value of k is 1 or 2 or 3.

作为优选,所述步骤2.6更新包括:As a preference, the step 2.6 updates include:

所述步骤2.7更新ρiter+1,包括:The described step 2.7 updates ρ iter+1 , including:

ρiter+1:=(iter+2)ρ0 ρ iter+1 :=(iter+2)ρ 0

式中,iter为迭代次数。In the formula, iter is the number of iterations.

本申请提供的基于重启策略与近似交替惩罚算法的图像补全方法,建立的低秩全变分修复模型从多维度考虑图像修复,并且采用近似交替惩罚算法对低秩全变分修复模型进行求解,以应用于自然图像修复,求解速度快,同时使用了重新策略,即迭代到一定次数,重新给参数赋初值,以显著提高近似交替惩罚算法的性能,在提高修复效率的同时达到较优的修复效果。This application provides an image completion method based on the restart strategy and the approximate alternating penalty algorithm. The established low-rank total variation repair model considers image repair from multiple dimensions, and uses the approximate alternating penalty algorithm to solve the low-rank total variation repair model. , to be applied to natural image repair, the solution speed is fast, and a re-strategy is used, that is, iterating to a certain number of times, re-assigning initial values to the parameters, so as to significantly improve the performance of the approximate alternating penalty algorithm, and achieve better results while improving the repair efficiency. repair effect.

附图说明Description of the drawings

图1为本申请的基于重启策略与近似交替惩罚算法的图像补全方法的流程图。Figure 1 is a flow chart of the image completion method based on the restart strategy and the approximate alternating penalty algorithm of this application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是在于限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein in the description of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

其中一个实施例中,提供一种基于重启策略与近似交替惩罚算法的图像补全方法,能够以高效率、高修复度完成自然图像的修复。In one embodiment, an image completion method based on a restart strategy and an approximate alternating penalty algorithm is provided, which can complete the restoration of natural images with high efficiency and high restoration degree.

本实施例中所指的自然图像应理解为具有重复场景元素的自然景观图像,其为非线条化图像,可以通过图像/视频采集设备,例如相机等获得。The natural image referred to in this embodiment should be understood as a natural landscape image with repeated scene elements, which is a non-lined image and can be obtained through an image/video collection device, such as a camera.

本实施例使用的近似交替惩罚算法(Proximal Alternating PenaltyAlgorithm,PAPA)主要使用经典二次惩罚法,交替最小化方法,内斯特罗夫的加速方法和参数自适应策略方法的新颖组合,来有效求解不光滑的约束凸优化问题,并且在非遍历意义上获得了著名的收敛,iter为迭代次数。The approximate alternating penalty algorithm (PAPA) used in this embodiment mainly uses a novel combination of the classic quadratic penalty method, alternating minimization method, Nesterov's acceleration method and parameter adaptive strategy method to effectively solve the problem non-smooth constrained convex optimization problems, and obtains the famous Convergence, iter is the number of iterations.

二次惩罚法是处理约束问题的经典优化框架,此方法单独使用时通常效率不高,但当其与交替策略结合起来,却可以获得很好的效果。PAPA算法的关键之处在于内斯特罗夫的加速方案中的参数自适应策略,该策略可以加快PAPA算法的收敛速度,并且可以自动更新惩罚项参数和其他参数,无需手动调整。同时,本实施例结合了“重新启动近似中心点(Restarting,RS)”的策略(重启策略),即迭代到一定次数,重新给参数赋初值,避免PAPA算法陷入局部最优,结合重启策略可以显著提高PAPA算法的性能。The quadratic penalty method is a classic optimization framework for dealing with constrained problems. This method is usually inefficient when used alone, but when combined with an alternating strategy, it can achieve good results. The key to the PAPA algorithm is the parameter adaptation strategy in Nesterov's acceleration scheme, which can speed up the convergence of the PAPA algorithm and automatically update the penalty parameters and other parameters without manual adjustment. At the same time, this embodiment combines the strategy of "restarting the approximate center point (Restarting, RS)" (restart strategy), that is, iterating to a certain number of times and re-assigning initial values to the parameters to avoid the PAPA algorithm falling into local optimality. Combined with the restart strategy The performance of the PAPA algorithm can be significantly improved.

如图1所示,本实施例的基于重启策略与近似交替惩罚算法的图像补全方法,包括:As shown in Figure 1, the image completion method based on the restart strategy and the approximate alternating penalty algorithm in this embodiment includes:

步骤1、获取待补全的自然图像数据输入低秩全变分修复模型,其中m、n分别表示自然图像的宽度、高度,3表示自然图像数据的RGB三个通道。根据RGB三个通道可以将自然图像重新排列成一个三维张量,以便于后续的图像修复。Step 1. Obtain the natural image data to be completed Enter the low-rank total variation repair model, where m and n represent the width and height of the natural image respectively, and 3 represents the three RGB channels of the natural image data. The natural image can be rearranged into a three-dimensional tensor according to the three RGB channels to facilitate subsequent image repair.

低秩全变分修复模型(LRTV修复模型)将全变分(Total Variation,TV)正则项加入到张量补全模型中,作为低秩先验的补充结构,以便可以利用视觉数据的局部分段平滑结构。The low-rank total variation inpainting model (LRTV inpainting model) adds the total variation (TV) regular term to the tensor completion model as a supplementary structure to the low-rank prior so that local parts of the visual data can be utilized Segment smooth structure.

本实施例中提供的低秩全变分修复模型,包括:The low-rank total variation repair model provided in this embodiment includes:

针对自然图像补全修复的低秩全变分修复模型定义如下:The low-rank total variation restoration model for natural image completion restoration is defined as follows:

式中,为张量,表示输入的待补全的自然图像数据,/>为张量,表示输出的补全后的自然图像数据,/>表示张量/>的低秩项,本实施例使用核范数来表示低秩项,其定义为/>并且Y(k)表示张量/>的第k维的m×n矩阵,λk表示张量/>的第k维的m×n矩阵的核范数||Y(k)||*的权重系数,/>表示张量/>的全变分正则项,其定义为/>wk表示张量/>的第k维的m×n矩阵的全变分正则项||Y(k)||tv的权重系数,并且||Y(k)||tv的定义如下:In the formula, is a tensor, representing the input natural image data to be completed,/> is a tensor, representing the output completed natural image data,/> Represents tensor/> The low-rank term of , this embodiment uses the nuclear norm to represent the low-rank term, which is defined as/> And Y (k) represents the tensor/> The m×n matrix of the kth dimension, λ k represents the tensor/> The nuclear norm of the k-th dimension m×n matrix ||Y (k) || The weight coefficient of * ,/> Represents tensor/> The total variation regular term of , which is defined as/> w k represents tensor/> The weight coefficient of the total variation regularization term ||Y (k) || tv of the k-th dimension m×n matrix, and ||Y (k) || tv is defined as follows:

式中yi,j表示矩阵Y(k)第i行、第j列所对应的元素。In the formula, yi ,j represents the element corresponding to the i-th row and j-th column of matrix Y (k) .

||·||F为Frobenius范数,其定义为Qi,j为矩阵Q第i行、第j列所对应的元素值,/>为一个索引矩阵,索引矩阵/>中的0表示输入的自然图像数据/>中的丢失元素,1表示输入的自然图像数据/>中的可观测元素,Ω为支持集Ω,表示未丢失的元素集,α和β分别表示低秩项与全变分正则项的参数,δ的值根据输入的待补全的自然图像数据/>中元素丢失率而进行调整,一般丢失率越高,δ的取值越大;丢失率越低,δ的取值越小。例如自然图像数据丢失80%的像素(元素)时,δ取10-3,其中丢失率/>符号:=表示定义为。||·|| F is the Frobenius norm, which is defined as Q i,j is the element value corresponding to the i-th row and j-th column of matrix Q,/> is an index matrix, index matrix/> The 0 in represents the input natural image data/> The missing element in , 1 represents the input natural image data/> Among the observable elements, Ω is the support set Ω, which represents the set of elements that have not been lost. α and β represent the parameters of the low-rank term and the total variation regular term respectively. The value of δ is based on the input natural image data to be completed/ > It is adjusted based on the element loss rate. Generally, the higher the loss rate, the greater the value of δ; the lower the loss rate, the smaller the value of δ. For example, when 80% of pixels (elements) are lost in natural image data, δ is 10 -3 , where the loss rate/> Symbol:= means defined as.

步骤2、利用近似交替惩罚算法迭代求解所述低秩全变分修复模型,并在迭代次数达到N的倍数时利用重启策略重置近似交替惩罚算法中的变量,直至迭代次数达到预设的最大迭代次数。Step 2: Use the approximate alternating penalty algorithm to iteratively solve the low-rank total variation repair model, and use the restart strategy to reset the variables in the approximate alternating penalty algorithm when the number of iterations reaches a multiple of N until the number of iterations reaches the preset maximum Number of iterations.

本实施例采用近似交替惩罚算法结合重启策略求解低秩全变分修复模型,不仅可显著提高求解效率,还可以有效提高自然图像的修复效果。本实施例中提供的一种求解过程如下:This embodiment uses an approximate alternating penalty algorithm combined with a restart strategy to solve the low-rank total variation repair model, which can not only significantly improve the solution efficiency, but also effectively improve the repair effect of natural images. A solution process provided in this embodiment is as follows:

步骤2.1、根据近似交替惩罚算法的求解规则(包括一个约束条件,目标函数中要有两个变量),将所述低秩全变分修复模型转化为如下形式,以转化后的形式作为目标函数:Step 2.1. According to the solution rules of the approximate alternating penalty algorithm (including a constraint, there must be two variables in the objective function), transform the low-rank total variation repair model into the following form, and use the transformed form as the objective function. :

式中,X和Y分别表示张量和张量/>的矩阵形式。In the formula, X and Y respectively represent tensors and tensor/> matrix form.

步骤2.2、令g(Y)表示f(X)表示/> 表示 Step 2.2, let g(Y) represent f(X) represents/> express

步骤2.3、初始化α,β,ρ0,向量w,向量λ,迭代次数iter=0。其中张量/>包含了/>张量/>包含了/>张量/>包含了/>其中k为1~3。并且本实施例中设置/>低秩项参数α设置为0.009,全变分正则项的参数β设置为1.2,ρ0设置为0.5,w,λ为一维向量,初值分别设置为[0.4,0.4,0.2]和[1,1,1],λk和wk表示向量λ和w的第k个元素。Step 2.3, initialization α, β, ρ 0 , vector w, vector λ, iteration number iter=0. where tensor/> Contains/> Tensor/> Contains/> Tensor/> Contains/> Among them, k is 1 to 3. And in this embodiment, it is set/> The parameter α of the low-rank term is set to 0.009, the parameter β of the total variation regular term is set to 1.2, ρ 0 is set to 0.5, w and λ are one-dimensional vectors, and the initial values are set to [0.4, 0.4, 0.2] and [1 respectively. ,1,1], λ k and w k represent the k-th element of the vectors λ and w.

需要说明的是,以上为本实施例提供的一种参数设置,在实际使用过程中,可根据自然图像的丢失率,或者图像修复需求对参数初值的设置进行调整。It should be noted that the above is a parameter setting provided in this embodiment. During actual use, the setting of the initial value of the parameter can be adjusted according to the loss rate of natural images or image repair requirements.

步骤2.4、计算包括:Step 2.4, Calculate include:

式中,该公式使用了经典的二次惩罚方法,ρiter为惩罚参数,二次惩罚函数/> 为目标函数的约束项,projκ(·)表示凸集上的投影算子,由于低秩全变分修复模型为凸优化问题,因此这里的凸集指低秩全变分修复模型解空间所在的集合。In the formula, This formula uses the classic quadratic penalty method, ρ iter is the penalty parameter, and the quadratic penalty function/> is the constraint term of the objective function, proj κ (·) represents the projection operator on the convex set. Since the low-rank total variation repair model is a convex optimization problem, the convex set here refers to the solution space of the low-rank total variation repair model. collection.

prox表示目标函数的近似算子(proximal operator),其定义如下:prox represents the approximate operator of the target function (proximal operator), which is defined as follows:

proxγf(x)表示存在唯一值v为函数f在变量x处的近似算子。prox γf (x) means that there is a unique value v that is an approximation operator of function f at variable x.

根据近似算子的定义,可将改写为:According to the definition of approximation operator, it can be Rewritten as:

式中f表示f(X),本实施例引入引理1求解即求解公式(4)、(5)、(6):In the formula, f represents f(X). In this embodiment, Lemma 1 is introduced to solve the problem. That is, solve formulas (4), (5), and (6):

引理1:令是一个给定矩阵,则对秩为r的矩阵W的奇异值分解定义如下:Lemma 1: Let is a given matrix, then the singular value decomposition of the matrix W with rank r is defined as follows:

式中,diag({σi}1≤i≤r)表示对角矩阵,即Er为对角矩阵,其i行对应的对角元素为σi,同时σi是矩阵W的第i个奇异值,U为左奇异矩阵,VT为右奇异矩阵;In the formula, diag({σ i } 1≤i≤r ) represents a diagonal matrix, that is, E r is a diagonal matrix, the diagonal element corresponding to its i row is σ i , and σ i is the i-th element of matrix W Singular values, U is the left singular matrix, V T is the right singular matrix;

并且奇异值收缩运算符将服从以下公式:And the singular value contraction operator will obey the following formula:

因此根据奇异值收缩运算符将矩阵W和对角矩阵Er表示为:Therefore, the matrix W and the diagonal matrix E r are expressed according to the singular value shrinkage operator as:

Jξ(W)=UJξ(W)VT,Jξ(Er)=diag{max((σi-ξ),0)} (11)J ξ (W)=UJ ξ (W)V T , J ξ (E r )=diag{max((σ i -ξ),0)} (11)

ξ为输入的阈值,通过引理1,可以得到式的解为:ξ is the input threshold. Through Lemma 1, we can get the formula The solution is:

式中,k取值为1或2或3。In the formula, the value of k is 1 or 2 or 3.

步骤2.5、计算包括:Step 2.5, Calculate include:

式中,g表示表示对函数/>中变量/>求梯度,且/> In the formula, g represents Represents the function/> Medium variable/> Find the gradient, and/>

利用快速梯度下降法求解k取值为1或2或3。本实施例中使用的快速梯度下降法为现有技术中的方法,例如使用Beck等人提出的快速梯度下降法来求解TV正则项的近似算子,求解过程不再进行赘述。Solve using fast gradient descent method The value of k is 1 or 2 or 3. The fast gradient descent method used in this embodiment is a method in the prior art. For example, the fast gradient descent method proposed by Beck et al. is used to solve the approximate operator of the TV regular term. The solution process will not be described again.

步骤2.6、更新包括:Step 2.6, update include:

步骤2.7、更新ρiter+1,包括:Step 2.7, update ρ iter+1 , including:

ρiter+1:=(iter+2)ρ0 (17)ρ iter+1 :=(iter+2)ρ 0 (17)

步骤2.8、判断迭代次数iter是否为N的整数倍,若是则利用重启策略重置近似交替惩罚算法中的变量,重置的变量为ρiter=ρ0否则执行步骤2.9。其中N可以根据待补全的自然图像的像素点损失率或者想要达到的修复效果进行调节,本实施例中优选设置为50。Step 2.8. Determine whether the number of iterations iter is an integer multiple of N. If so, use the restart strategy to reset the variables in the approximate alternating penalty algorithm. The reset variables are ρ iter0 , Otherwise, proceed to step 2.9. N can be adjusted according to the pixel loss rate of the natural image to be completed or the desired repair effect. In this embodiment, it is preferably set to 50.

步骤2.9、判断迭代次数iter是否达到预设的最大迭代次数,若是则结束迭代,将最新的作为求κ解得到的补全后的自然图像数据;否则返回步骤2.4继续迭代。Step 2.9. Determine whether the number of iterations iter reaches the preset maximum number of iterations. If so, end the iteration and add the latest as the completed natural image data obtained by finding the κ solution; otherwise, return to step 2.4 to continue iteration.

步骤3、输出求解得到的补全后的自然图像数据,即输出最新的 Step 3. Output the completed natural image data obtained by solving the problem, that is, output the latest

自然图像的修复具有一定的挑战性,通过LRTV模型可以有效的对自然图像进行修复,但用一般的基于原始-对偶分裂的算法如ADMM,PDS等,求解效率过低,修复效果较差,因此本申请提出了用重启策略与近似交替惩罚算法来求解LRTV模型,并将其应用于自然图像的修复,以得到较优的求解效率和修复效果。The restoration of natural images is challenging. The LRTV model can be used to effectively restore natural images. However, the general algorithms based on primal-dual splitting, such as ADMM and PDS, have low solution efficiency and poor restoration effect. Therefore, this application proposes to use a restart strategy and an approximate alternating penalty algorithm to solve the LRTV model, and apply it to the restoration of natural images to obtain better solution efficiency and restoration effect.

需要说明的是,本实施例中存在普通字母与希腊字母的表示,大写字母与小写字母的表示,各表示方式均有不同含义,例如κ与k所表达的含义并不相同;又如X、x所表达的含义也不相同。It should be noted that in this embodiment, there are representations of ordinary letters and Greek letters, and representations of uppercase letters and lowercase letters. Each representation has a different meaning. For example, κ and k have different meanings; another example is The meanings expressed by X and x are also different.

以本实施例基于重启策略与近似交替惩罚算法(PAPA-RS算法)以及现有的ADMM、PDS算法为实验对象进行修复实验研究。This embodiment is based on the restart strategy and approximate alternating penalty algorithm (PAPA-RS algorithm) and the existing ADMM and PDS algorithms as the experimental objects to conduct repair experimental research.

修复对象为损失60%、70%、80%像素点的三类自然图像,每类设置3张自然图像,均以本申请中的低秩全变分修复模型为LRTV模型,分别使用PAPA-RS算法、ADMM算法、PDS算法求解LRTV模型。每种算法运行在相同性能的计算机设备上,并且运行环境以及次数等相同。The repair objects are three types of natural images with a loss of 60%, 70%, and 80% of pixels. Each type is set with 3 natural images. The low-rank total variation repair model in this application is used as the LRTV model, and PAPA-RS is used respectively. algorithm, ADMM algorithm, and PDS algorithm to solve the LRTV model. Each algorithm runs on computer equipment with the same performance, and the running environment and times are the same.

本实验对每类中的每张自然图像均运行多次,取均值后作为最终的试验数据。记录试验数据如表1、表2所示。表1为在60%、70%、80%丢失率下PAPA-RS,ADMM,PDS三种算法对lena,baboon,house三张图修复的PSNR(峰值信噪比)值,表2为在60%,70%,80%丢失率下PAPA-RS,ADMM,PDS三种算法对lena,baboon,house三张图修复所用时间。This experiment was run multiple times for each natural image in each category, and the average was taken as the final experimental data. Record the test data as shown in Table 1 and Table 2. Table 1 shows the PSNR (peak signal-to-noise ratio) values of the three images of lena, baboon, and house repaired by PAPA-RS, ADMM, and PDS under the loss rates of 60%, 70%, and 80%. The time it takes for PAPA-RS, ADMM, and PDS to repair the three images of lena, baboon, and house under the loss rate of %, 70%, and 80%.

表1 PSNR值Table 1 PSNR values

图名:image name: 丢失率Loss rate PAPA-RSPAPA-RS ADMMADMM PDSPDS lenalena 60%60% 30.8330.83 29.0229.02 29.1729.17 lenalena 70%70% 28.5428.54 27.3227.32 27.6427.64 lenalena 80%80% 26.1226.12 25.0425.04 25.1225.12 baboonbaboon 60%60% 24.0724.07 23.0123.01 23.5723.57 baboonbaboon 70%70% 22.5122.51 21.9221.92 21.7521.75 baboonbaboon 80%80% 20.1320.13 19.5219.52 19.3819.38 househouse 60%60% 31.2431.24 30.9330.93 30.6730.67 househouse 70%70% 29.4729.47 28.6528.65 28.7428.74 househouse 80%80% 26.3826.38 25.2825.28 25.1725.17

表2修复时间Table 2 Repair time

图名:image name: 丢失率Loss rate PAPA-RSPAPA-RS ADMMADMM PDSPDS lenalena 60%60% 5.76s5.76s 31s31s 21.20s21.20s lenalena 70%70% 9.18s9.18s 29.85s29.85s 35.27s35.27s lenalena 80%80% 13.81s13.81s 32.81s32.81s 44.72s44.72s baboonbaboon 60%60% 5.95s5.95s 33.91s33.91s 24.54s24.54s baboonbaboon 70%70% 9.32s9.32s 32.50s32.50s 32.24s32.24s baboonbaboon 80%80% 14.51s14.51s 33.01s33.01s 41.97s41.97s househouse 60%60% 6.64s6.64s 28.47s28.47s 26.98s26.98s househouse 70%70% 10.36s10.36s 31.14s31.14s 38.06s38.06s househouse 80%80% 15.01s15.01s 31.32s31.32s 45.54s45.54s

根据表1和表2中的实验数据可以看出,在自然图像的丢失率相同的情况下,本申请的PAPA-RS算法修复后的PSNR值最高,并且修复所用时间显著缩短;针对不同丢失率的自然图像的修复,本申请的PAPA-RS算法依旧在3种算法中的PSNR值最高、修复时间最短。According to the experimental data in Table 1 and Table 2, it can be seen that when the loss rate of natural images is the same, the PSNR value after repair by the PAPA-RS algorithm of this application is the highest, and the repair time is significantly shortened; for different loss rates For the repair of natural images, the PAPA-RS algorithm of this application still has the highest PSNR value and the shortest repair time among the three algorithms.

实验结果表明,本发明提出的自然图像补全方法可以有效的修复损失大量像素点的自然图像,并且其求解效率明显高于ADMM,PDS等算法。Experimental results show that the natural image completion method proposed by the present invention can effectively repair natural images that have lost a large number of pixels, and its solution efficiency is significantly higher than algorithms such as ADMM and PDS.

在另一实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构可以包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现上述基于重启策略与近似交替惩罚算法的图像补全方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In another embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure may include a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The network interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements the above image completion method based on the restart strategy and the approximate alternating penalty algorithm. The display screen of the computer device may be a liquid crystal display or an electronic ink display. The input device of the computer device may be a touch layer covered on the display screen, or may be a button, trackball or touch pad provided on the computer device shell. , it can also be an external keyboard, trackpad or mouse, etc.

应该理解的是,虽然图1的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图1中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although various steps in the flowchart of FIG. 1 are shown in sequence as indicated by arrows, these steps are not necessarily executed in the order indicated by arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figure 1 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is not necessarily sequential, but may be performed in turn or alternately with other steps or sub-steps of other steps or at least part of the stages.

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, All should be considered to be within the scope of this manual.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims (5)

1. The image complement method based on the restarting strategy and the approximate alternation punishment algorithm is characterized by comprising the following steps of:
step 1, acquiring natural image data to be complementedInputting a low-rank total variation repair model, wherein m and n respectively represent the width and the height of a natural image, and 3 represents three RGB channels of natural image data;
step 2, iteratively solving the low-rank total variation repair model by using an approximate alternation punishment algorithm, and resetting variables in the approximate alternation punishment algorithm by using a restarting strategy when the iteration times reach multiples of N until the iteration times reach a preset maximum iteration times;
step 3, outputting the complemented natural image data obtained by solving;
wherein, the low-rank total variation repair model comprises:
the low-rank total variation repair model for natural image complement repair is defined as follows:
in the method, in the process of the invention,for tensors, representing the input natural image data to be complemented, < >>Representing the output complement natural image data as tensors, < >>Representing tensor->Is defined asAnd Y is (k) Representing tensor->M x n matrix, lambda of the k-th dimension of (2) k Representing tensor->Weight coefficient of the kernel norm of the m x n matrix of the k-th dimension, +.>Representing tensor->Is defined asw k Representing tensor->Weight coefficients of the full variation regularization term of the m×n matrix of the k-th dimension, and ||y (k) || tv Is defined as follows:
in which y i,j Representation matrix Y (k) Elements corresponding to the ith row and the jth column;
||·|| F is the Frobenius norm, defined asQ i,j For the element values corresponding to the ith row and the jth column of the matrix Q, < >>θ∈{0,1} m×n×3 For an index matrix, 0 in the index matrix θ represents input natural image data +.>Is a missing element of 1,1 represents the input natural image data +.>Wherein omega is a support set omega, the non-lost element set is represented, alpha and beta respectively represent parameters of a low-rank term and a total variation regularization term, and the value of delta is based on inputNatural image data to be complemented +.>The loss rate of the element is dependent on the loss rate +.>Symbol: = representation is defined as.
2. The image complement method based on the restart strategy and the approximate alternation penalty algorithm according to claim 1, wherein the step 2 of iteratively solving the low-rank total variation repair model by using the approximate alternation penalty algorithm, and resetting variables in the approximate alternation penalty algorithm by using the restart strategy when the iteration number reaches a multiple of N until the iteration number reaches a preset maximum iteration number comprises:
2.1, converting the low-rank total variation repair model into the following form according to a solving rule of an approximate alternation punishment algorithm, and taking the converted form as an objective function:
s.t.X=Y
wherein X and Y each represent tensorsAnd tensor->Is a matrix form of (a);
step 2.2, let g (Y) denotef (X) represents-> Representation->
Step 2.3, initializingα,β,ρ 0 Vector w, vector λ, iteration number iter=0, λ k And w k The kth element representing vectors λ and w;
step 2.4, calculating
Step 2.5, calculating
Step 2.6, updating
Step 2.7, update ρ iter+1
Step 28, judging whether the iteration number iter is an integer multiple of N, if so, resetting the variable in the approximate alternation punishment algorithm by using a restarting strategy, wherein the reset variable is ρ iter =ρ 0Otherwise, executing the step 2.9;
step 2.9, judging whether the iteration number item reaches the preset maximum iteration number, if so, ending the iteration and updatingNumber of natural images after completion obtained as a result of solvingAccording to the above; otherwise, returning to the step 2.4 to continue iteration.
3. The image complement method based on the restart strategy and the approximate alternation penalty algorithm according to claim 2, wherein the step 2.4 calculatesComprising the following steps:
in the method, in the process of the invention,ρ iter is a penalty parameter, and as a constraint term for the objective function, projκ (·) represents the projection operator on the convex set, prox an approximation operator representing an objective function, defined as follows:
according to the definition of the approximation operator, the method canThe rewriting is as follows:
where f represents f (X), introducing a lemma 1 to solve
Lemma 1: order theIs a given matrix, the singular value decomposition for matrix W of rank r is defined as follows:
W=UE r V T ,E r =diag({σ i } 1≤i≤r )
in the formula, diag ({ sigma) i } 1≤i≤r ) Representing a diagonal matrix with a diagonal element sigma corresponding to row i i And sigma i Is the ith singular value of matrix W, U is the left singular matrix, V T Is a right singular matrix;
and the singular value contraction operator will obey the following formula:
thus, the matrix W and the diagonal matrix E are scaled according to the singular value contraction operator r Expressed as:
J ξ (W)=UJ ξ (W)V T ,J ξ (E r )=diag{max((σ i -ξ),0)}
xi is the threshold value of the input, and the equation can be obtained by the lemma 1The solution of (2) is:
wherein k takes on the value of 1 or 2 or 3.
4. The image complement method based on the restart strategy and the approximate alternation penalty algorithm according to claim 3, wherein the step 2.5 calculatesComprising the following steps:
wherein g represents g (Y), representation of the function->Medium variableGradient is calculated, and->
Solving by using a rapid gradient descent methodk takes on the value 1 or 2 or 3.
5. The image complement method based on the restart strategy and the approximate alternation penalty algorithm according to claim 2, wherein the step 2.6 updatesComprising the following steps:
said step 2.7 updates ρ iter+1 Comprising:
ρ iter+1 :=(iter+2)ρ 0
where iter is the number of iterations.
CN202010749675.1A 2020-07-30 2020-07-30 Image complement method based on restarting strategy and approximate alternation punishment algorithm Active CN112085666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010749675.1A CN112085666B (en) 2020-07-30 2020-07-30 Image complement method based on restarting strategy and approximate alternation punishment algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010749675.1A CN112085666B (en) 2020-07-30 2020-07-30 Image complement method based on restarting strategy and approximate alternation punishment algorithm

Publications (2)

Publication Number Publication Date
CN112085666A CN112085666A (en) 2020-12-15
CN112085666B true CN112085666B (en) 2024-03-26

Family

ID=73735745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010749675.1A Active CN112085666B (en) 2020-07-30 2020-07-30 Image complement method based on restarting strategy and approximate alternation punishment algorithm

Country Status (1)

Country Link
CN (1) CN112085666B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139920B (en) * 2021-05-12 2023-05-12 闽南师范大学 Ancient book image restoration method, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010138536A1 (en) * 2009-05-27 2010-12-02 Yin Zhang Method and apparatus for spatio-temporal compressive sensing
CN110298798A (en) * 2019-06-20 2019-10-01 浙江工业大学 A kind of image repair method based on the completion of low-rank tensor Yu discrete full variation
CN111260571A (en) * 2020-01-11 2020-06-09 浙江工业大学 Depth image restoration method based on non-convex low-rank low gradient

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010138536A1 (en) * 2009-05-27 2010-12-02 Yin Zhang Method and apparatus for spatio-temporal compressive sensing
CN110298798A (en) * 2019-06-20 2019-10-01 浙江工业大学 A kind of image repair method based on the completion of low-rank tensor Yu discrete full variation
CN111260571A (en) * 2020-01-11 2020-06-09 浙江工业大学 Depth image restoration method based on non-convex low-rank low gradient

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙涛 ; 李东升 ; .基于非凸的全变分和低秩混合正则化的图像去模糊模型和算法.计算机学报.(04),第59-68页. *

Also Published As

Publication number Publication date
CN112085666A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
Zhang et al. Gaussian mixture model clustering with incomplete data
CN110969250B (en) Neural network training method and device
Hoeltgen et al. An optimal control approach to find sparse data for Laplace interpolation
CN113240596B (en) A color video restoration method and system based on high-order tensor singular value decomposition
WO2022062164A1 (en) Image classification method using partial differential operator-based general-equivariant convolutional neural network model
CN107016649A (en) A kind of vision data complementing method estimated based on local low-rank tensor
Yang et al. A fast non-smooth nonnegative matrix factorization for learning sparse representation
Zhang et al. Effective tensor completion via element-wise weighted low-rank tensor train with overlapping ket augmentation
CN110751599A (en) Visual tensor data completion method based on truncated nuclear norm
Zhang et al. Scalable proximal Jacobian iteration method with global convergence analysis for nonconvex unconstrained composite optimizations
CN115170418B (en) Low-rank high-dimensional image filling model conforming to degradation and filling method and system thereof
Han et al. Sparse and truncated nuclear norm based tensor completion
CN118096529B (en) Datamation fusion algorithm for improving spatial resolution of hyperspectral image
Xu et al. Factorized tensor dictionary learning for visual tensor data completion
CN112085666B (en) Image complement method based on restarting strategy and approximate alternation punishment algorithm
Liu et al. Image inpainting algorithm based on tensor decomposition and weighted nuclear norm
CN114564766B (en) AI generation method for visual product appearance
Dong et al. Robust low rank subspace segmentation via joint ℓ 21-norm minimization
CN109614581B (en) Non-negative matrix factorization clustering method based on dual local learning
CN109447147B (en) Image Clustering Method Based on Double-Graph Sparse Deep Matrix Decomposition
CN110210691B (en) Resource recommendation methods, devices, storage media and equipment
WO2025175742A1 (en) Rapid multiphysics inversion method and apparatus for power device, device and storage medium
CN109741258A (en) Reconstruction-based image super-resolution methods
CN111951183A (en) A low-rank total variational hyperspectral image inpainting method based on proximal alternation penalty algorithm
Lee et al. Parallel block sequential closed-form matting with fan-shaped partitions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant