Code covered by the BSD License
-
Basis Pursuit Denoising with ...
-
Basis Pursuit with Douglas Ra...
-
Constrained Total Variation P...
-
Total Variation Denoising
-
clamp(x,a,b)
-
compute_correlation_error(His...
-
compute_dual_prox(ProxF)
compute_dual_prox - compute the proximal operator of the dual
-
compute_gaussian_filter(n,s,N...
compute_gaussian_filter - compute a 1D or 2D Gaussian filter.
-
compute_operator_norm(A,n)
compute_operator_norm - compute operator norm
-
crop(M,n,c)
crop - crop an image to reduce its size
-
div(Px,Py, options)
div - divergence operator
-
getoptions(options, name, v, ...
getoptions - retrieve options parameter
-
grad(M, options)
grad - gradient, forward differences
-
image_resize(M,p1,q1,r1)
image_resize - resize an image using bicubic interpolation
-
imageplot(M,str, a,b,c)
imageplot - diplay an image and a title
-
load_image(type, n, options)
load_image - load benchmark images.
-
perform_admm(x, K, KS, ProxF...
perform_admm - preconditionned ADMM method
-
perform_blurring(M, sigma, op...
perform_blurring - gaussian blurs an image
-
perform_convolution(x,h, boun...
perform_convolution - compute convolution with centered filter.
-
perform_dr(x,ProxF,ProxG,opti...
perform_dr - Douglas Rachford algorithm
-
perform_fb(x, ProxF, GradG, L...
perform_admm - preconditionned ADMM method
-
perform_fb_strongly(x, K, KS,...
perform_admm - preconditionned ADMM method
-
perform_l1ball_projection(x,l...
perform_l1ball_projection - compute the projection on the L1 ball
-
perform_soft_thresholding(x, ...
perform_soft_thresholding - soft thresholding
-
perform_wavortho_transf(f,Jmi...
perform_wavortho_transf - compute orthogonal wavelet transform
-
progressbar(n,N,w)
progressbar - display a progress bar
-
rescale(x,a,b)
-
s2v(s,a)
s2v - structure array to vector
-
publish_all.m
-
test_fbstrongly_analysis.m
-
View all files
from
Toolbox Sparse Optmization
by Gabriel Peyre
Optimization codes for sparsity related signal processing
|
| progressbar(n,N,w) |
function progressbar(n,N,w)
% progressbar - display a progress bar
%
% progressbar(n,N,w);
%
% displays the progress of n out of N.
% n should start at 1.
% w is the width of the bar (default w=20).
%
% Copyright (c) Gabriel Peyr 2006
if nargin<3
w = 20;
end
% progress char
cprog = '.';
cprog1 = '*';
% begining char
cbeg = '[';
% ending char
cend = ']';
p = min( floor(n/N*(w+1)), w);
global pprev;
if isempty(pprev)
pprev = -1;
end
if not(p==pprev)
ps = repmat(cprog, [1 w]);
ps(1:p) = cprog1;
ps = [cbeg ps cend];
if n>1
% clear previous string
fprintf( repmat('\b', [1 length(ps)]) );
end
fprintf(ps);
end
pprev = p;
if n==N
fprintf('\n');
end
|
|
Contact us at files@mathworks.com