资源简介
bregman 恢复算法,可以恢复一维,二维的图像等信号,不过具体公式请自己算,根据bregman的推导就可以算,很简单!
代码片段和文件信息
function [xx_wtimesnrsnr_loop]=SplitBregmanCosparse(yAOmegaparams)% use in image
%The function solves problem:
% sol=argmin_x||W.*Omega*x||_1 s.t.
% ||y-Ax||_2<=epsilon
%Using Split Bregman to solve this problem by convert into unconstrainted
%form:
% sol=argmin_x||W.*Omega*x||_1+mu/2*||y-Ax||_2^2
%reference to BregmanCookbook chapter5
%input: y is the mixing signalM*T
% A is the mixing matrixM*Nhere it is a eye matrix
% Omega is the analysis operator
% params.mu is the fidelity term‘s weight param in the objective
% params.it is the max number ot iteration of SB algorithm
% params.tol is about the stopping criterion below:
% norm(sol(:)-sol_pre(:)1)/norm(sol_pre(:)1)>tol
% params.lambda is the penalty function weight param in iteration
%
%output: sol is the solution of the problem use Split Bregman algorithm
% sol_w is the solution of the problem use weighted Split Bregman algorithm
%initiation
mu=params.mu;
lambda_1=params.lambda_1;
lambda_2=params.lambda_2;
it_SB=params.it_SB;
tol_SB=params.tol_SB;
if isfield(params‘W_method‘) %如果符合,返回逻辑1.
W_method=params.W_method;
else %否则,其他.
W_method=‘W1‘;
end
%初始化
epsilon=10;
[MN]=size(A);
sb=size(y2);% # of sampling bins
u=zeros(size(A2)sb);
d=zeros(size(Omega*u));
b=zeros(size(Omega*u));
temp1=inv(mu*A‘*A+lambda_1*Omega‘*Omega);
temp2=mu*A‘*y;
%迭代 更新顺序:u-d-b.
K=0; T=0;
weights=1;
x_pre=u;
it_T=100;
while T T=T+1;
tic;
while K K=K+1;
u_pre=u;
if isfield(params‘x_t‘) && T==2
x_t=params.x_t;
snr_loop(K)=20*log10(norm(x_t)/(norm(u_pre-x_t)));
end
u=temp1*(temp2+lambda
- 上一篇:正弦模型的matlab程序
- 下一篇:混沌计算程序包+matlab代码
相关资源
- 压缩感知(Compressed Sensing CS)matlab代
- 合成孔径雷达成像csChirp Scaling算法M
- Split bregman 算法MATLAB源代码
- matlab图像压缩感知
- robotics toolbox 8.0工具箱
- 基于运动想象脑电信号的多特征融合
- 图像分块BCS稀疏表示与重建
- matlab robotics toolbox
- 贝叶斯压缩感知matlab源代码
- Robotics Modelling Planning and Control
- simmechanics完整版教程
- MATLAB Text Analytics Toolbox官方教程
- 自适应全变分图像去噪模型及其快速
- Computational Statistics Handbook with MATLAB统
- matlab statsstatistics工具箱
- Robotics工具箱用户手册
- 全桥ZVZCS 软开关变换器仿真及报告
- matlab statistics learning toolbox
- ElasticSearch 技术解析与实战 kindle电子
- Computational Fourier Optics _ a MATLAB tutori
- MechanicsOfCompositeMaterialsWithMatlab.pdf 英文
- matlab开发-CSF批次模拟过滤器
- 超分辨率matlab源码pocs-superresolution_v
- Matlab高阶统计量工具箱(高阶谱)H
- SimMechanics教程
- matlab robotics toolboox_10.2教程
- 基于MATLAB&CCS;实现代码生成及
- 贝叶斯压缩感知matlab函数包
- MATLAB工具箱robotics toolbox 9.10
- Wheeled Mobile Robotics From Fundamentals Towa
评论
共有 条评论