⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tveq_phantom_example.asv

📁 基于内点法的解l2_l1和l2_TV优化问题的matlab代码
💻 ASV
字号:
% tveq_phantom_example.m%% Phantom reconstruction from samples on 22 radial lines in the Fourier% plane.%% Written by: Justin Romberg, Caltech% Email: jrom@acm.caltech.edu% Created: October 2005%path(path, './Optimization');path(path, './Measurements');path(path, './Data');% Phantom n = 256;N = n*n;X = phantom(n);x = X(:);subplot(1,2,1);imagesc(X)colormap(gray)% number of radial lines in the Fourier domainL = 22;% Fourier samples we are given[M,Mh,mh,mhi] = LineMask(L,n);OMEGA = mhi;A = @(z) A_fhp(z, OMEGA);At = @(z) At_fhp(z, OMEGA, n);% measurementsy = A(x);% min l2 reconstruction (backprojection)xbp = At(y);Xbp = reshape(xbp,n,n);% recoverytictvI = sum(sum(sqrt([diff(X,1,2) zeros(n,1)].^2 + [diff(X,1,1); zeros(1,n)].^2 )));disp(sprintf('Original TV = %8.3f', tvI));xp = tveq_logbarrier(xbp, A, At, y, 1e-1, 2, 1e-8, 600);Xtv = reshape(xp, n, n);tocsubplot(1,2,2);imagesc(Ip)colormap(gray)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -