plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | xyza11808/MATLAB-master | plot_hufftree.m | .m | MATLAB-master/sometoolbox/toolbox_signal/plot_hufftree.m | 753 | utf_8 | 54b574423bf657b12797928ae8dfb44d | function plot_hufftree(T,p)
% plot_hufftree - plot a huffman tree
%
% plot_hufftree(T);
%
% Copyright (c) 2008 Gabriel Peyre
hold on;
plot_tree(T{1},[0,0],1);
hold off;
axis tight;
axis off;
%%
function plot_tree(T,x,j)
tw = 20;
lw = 1.5;
ms = 20;
if not(iscell(T))
de = [-.02 -.2];
% display a string
... |
github | xyza11808/MATLAB-master | perform_histogram_matching.m | .m | MATLAB-master/sometoolbox/toolbox_signal/perform_histogram_matching.m | 6,153 | utf_8 | 76201fc1b27229274b2f146b02d9ad6c | function x = perform_histogram_matching(x, y, options)
% perform_histogram_matching - match the histogram of two image.
%
% x = perform_histogram_matching(x, y, nb_bins);
% or
% x = perform_histogram_matching(x, y, options);
%
% Perform an equalization of x so that it histogram
% matches the histogram of y.
%... |
github | xyza11808/MATLAB-master | perform_huffcoding.m | .m | MATLAB-master/sometoolbox/toolbox_signal/perform_huffcoding.m | 1,415 | utf_8 | 14e2f27762605bf8d76370d61348938d | function y = perform_huffcoding(x,T,dir)
% perform_huffcoding - perform huffman coding
%
% y = perform_huffcoding(x,T,dir);
%
% dir=+1 for coding
% dir=-1 for decoding
%
% T is a Huffman tree, computed with compute_hufftree
%
% Copyright (c) 2008 Gabriel Peyre
if dir==1
%%% CODING %%%
C = huffman_ge... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_signal/toolbox/load_image.m | 15,285 | utf_8 | 29ddd92392125ce415ec27e0a90b6a3e | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | perform_bregman_l1.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/perform_bregman_l1.m | 30,356 | utf_8 | 9b24d52e8a09ba53a227bc8fbc8a08d8 | function Out = perform_bregman_l1(n,A,b,mu,M,opts,varargin)
% Solve the problem
% min ||x||_1, subject to Ax = b
% by calling the solver FPC for solving multiple instances of
% min mu*||x||_1 + 0.5*||Ax-b^k||^2 .
% (FPC can be substituted by other solvers for the same subproblem)
%
% Technical Report:
% W. Yin... |
github | xyza11808/MATLAB-master | callback_fft.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/callback_fft.m | 1,815 | utf_8 | d2cbd486232bc3f7a4a6e537092d87a1 | function y = callback_fft(x,dir,options)
% callback_fft - callback for sparsity with FFT
%
% y = callback_fft(x,dir,options);
%
% Works in 1D and 2D. Orthogonal transforms.
%
% Copyright (c) 2008 Gabriel Peyre
options.null = 0;
%% Detect dimension
if size(x,1)==1 || size(x,2)==1
ndims = 1;
else
ndims =... |
github | xyza11808/MATLAB-master | perform_analysis_regularization.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/perform_analysis_regularization.m | 2,585 | utf_8 | c15e65a8b4b77823cd42e992ac708563 | function [g,g_list,E] = perform_analysis_regularization(f, G, options)
% perform_analysis_regularization - perform a sparse regularization
%
% [g,g_list,E] = perform_analysis_regularization(f, A, options);
%
% Method solves, given f of length n, for
% min_g E(g) = 1/2*|f-g|^2 + lambda * |A*g|_1
% where A is a... |
github | xyza11808/MATLAB-master | perform_dictionary_learning.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/perform_dictionary_learning.m | 11,227 | utf_8 | 7d719ce3e479bb813629d6651d16f2a3 | function [D,X,E] = perform_dictionary_learning(Y,options)
% perform_dictionary_learning - learn a dictionnary using K-SVD algorithm
%
% [D,X,E] = perform_dictionary_learning(Y,options)
%
% Y is a matrix of size (n,m) containing m column examplar
% vector in R^n.
%
% D is a dictionnary matrix of size (n,K) ... |
github | xyza11808/MATLAB-master | callback_sensing_rand.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/callback_sensing_rand.m | 8,560 | utf_8 | ec331293eb41751690568ae087228bef | function y = callback_sensing_rand(x, dir, options)
% callback_sensing_rand - perform random sensing
%
% y = callback_sensing_rand(x, dir, options);
%
% compute y=K*x (dir=1) or y=K^{*}*x (dir=-1) or y=K^{+}*x (pseudo inverse)
% where K is a random matrix.
%
% You need to set options.n and options.p the dime... |
github | xyza11808/MATLAB-master | compute_redundant_dictionary.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/compute_redundant_dictionary.m | 3,507 | utf_8 | e2fcfa753b9fcfb6c56a1acb1dbf01d6 | function [D,info] = compute_redundant_dictionary(name,n,options)
% compute_redundant_dictionary - compute several redundant dictionaries (matrices)
%
% [D,info] = compute_redundant_dictionary(name,n,options);
%
% n is the dimension
% options.q controls the redundancy
% info is a struct continaining information... |
github | xyza11808/MATLAB-master | perform_mca.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/perform_mca.m | 6,874 | utf_8 | f5c4b3fc3e6b267294c05d8f6ec46911 | function ML = perform_mca(M, components, options)
% perform_mca - perform MCA decomposition
%
% ML = perform_mca(M, components, options);
%
% ML(:,:,i) is the layer optained by sparse decomposition in
% dictionary Di described by components{i}.
%
% components is a cell array of structure.
% cpt = com... |
github | xyza11808/MATLAB-master | compute_synthetic_dictionary.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/compute_synthetic_dictionary.m | 5,246 | utf_8 | 30de6dc1f7a7b49db0d9b4ae9489fb86 | function D = compute_synthetic_dictionary(name, w, options)
% compute_synthetic_dictionary - compute a synthetic dictionary
%
% D = compute_synthetic_dictionary(name, w, options);
%
% w is the width of the patches.
% names is 'edges', 'oscillations', 'lines' or 'crossings'.
%
% Copyright (c) 2007 Gabriel Peyre... |
github | xyza11808/MATLAB-master | perform_debiasing.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/perform_debiasing.m | 2,313 | utf_8 | 89cb6ddcc4c67a5af08b981e00c08149 | function [x1,err] = perform_debiasing(A,x,y, options)
% perform_debiasing - remove bias by orthogonal projection
%
% x1 = perform_debiasing(A,x,y, options);
%
% Compute x1 with same support I=find(abs(x)>Thresh) as x that minimize
% min | y - A(:,I)*x(I) |
% Thresh is set in options.Thresh
%
% Usefull to... |
github | xyza11808/MATLAB-master | perform_windowed_fourier_transform.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_windowed_fourier_transform.m | 5,038 | utf_8 | 96c27071ef4e8304b6051ed54d7ad8b8 | function y = perform_windowed_fourier_transform(x,w,q,n, options)
% perform_windowed_fourier_transform - compute a local Fourier transform
%
% Forward transform:
% MF = perform_windowed_fourier_transform(M,w,q,n, options);
% Backward transform:
% M = perform_windowed_fourier_transform(MF,w,q,n, options);
%
% w ... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/load_image.m | 15,285 | utf_8 | 29ddd92392125ce415ec27e0a90b6a3e | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | grab_inpainting_mask.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/grab_inpainting_mask.m | 3,553 | utf_8 | e1b2c4077e57645a8b91a2bc47fd1245 | function [U,point_list] = grab_inpainting_mask(M, options, mode)
% grab_inpainting_mask - create a mask from user input
%
% U = grab_inpainting_mask(M, options);
%
% options.r is the radius for selection (default r=5).
%
% Selection stops with right click.
%
% Copyright (c) 2006 Gabriel Peyre
if nargin==3 &&... |
github | xyza11808/MATLAB-master | perform_atrou_transform.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_atrou_transform.m | 22,678 | utf_8 | cfe1fb87ecec1828afae34d13e65247c | function y = perform_atrou_transform(x,Jmin,options)
% perform_atrou_transform - compute the "a trou" wavelet transform,
% i.e. without subsampling.
%
% w_list = perform_atrou_transform(M,Jmin,options);
%
% 'w_list' is a cell array, w_list{ 3*(j-Jmin)+q }
% is an imagette of same size as M containing the full... |
github | xyza11808/MATLAB-master | perform_dct_transform.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_dct_transform.m | 7,750 | utf_8 | 07f7ce84cf4f6dfc91ad645a17eab05c | function y = perform_dct_transform(x,dir)
% perform_dct_transform - discrete cosine transform
%
% y = perform_dct_transform(x,dir);
%
% Copyright (c) 2006 Gabriel Peyre
if size(x,1)==1 || size(x,2)==1
% 1D transform
if dir==1
y = dct(x);
else
y = idct(x);
end
else
if dir==1
... |
github | xyza11808/MATLAB-master | perform_thresholding.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_thresholding.m | 2,482 | utf_8 | 0f3a43687bf3809b0789cace4871a1e6 | function y = perform_thresholding(x, t, type)
% perform_thresholding - perform hard or soft thresholding
%
% y = perform_thresholding(x, t, type);
%
% type is either 'hard' or 'soft' or 'semisoft'
% t is the threshold
%
% works also for complex data, and for cell arrays.
%
% if type is 'strict' then it keeps... |
github | xyza11808/MATLAB-master | cgsolve.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/cgsolve.m | 1,626 | utf_8 | 144fb53044ae853bc0d1d7f6cf8f8f3d | % cgsolve.m
%
% Solve a symmetric positive definite system Ax = b via conjugate gradients.
%
% Usage: [x, res, iter] = cgsolve(A, b, tol, maxiter, verbose)
%
% A - Either an NxN matrix, or a function handle.
%
% b - N vector
%
% tol - Desired precision. Algorithm terminates when
% norm(Ax-b)/norm(b) < tol .
%
% ma... |
github | xyza11808/MATLAB-master | SolveOMP.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/SolveOMP.m | 5,334 | utf_8 | 50c607f82966ae4dfe088df58cdd667d | function [sols, iters, activationHist] = SolveOMP(A, y, N, maxIters, lambdaStop, solFreq, verbose, OptTol)
% SolveOMP: Orthogonal Matching Pursuit
% Usage
% [sols, iters, activationHist] = SolveOMP(A, y, N, maxIters, lambdaStop, solFreq, verbose, OptTol)
% Input
% A Either an explicit nxN matrix, with rank(A)... |
github | xyza11808/MATLAB-master | l1eq_pd.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/l1eq_pd.m | 5,308 | utf_8 | c2d14a529c067d730ebee8140ec5ecc4 | % l1eq_pd.m
%
% Solve
% min_x ||x||_1 s.t. Ax = b
%
% Recast as linear program
% min_{x,u} sum(u) s.t. -u <= x <= u, Ax=b
% and use primal-dual interior point method
%
% Usage: xp = l1eq_pd(x0, A, At, b, pdtol, pdmaxiter, cgtol, cgmaxiter)
%
% x0 - Nx1 vector, initial point.
%
% A - Either a handle to a function t... |
github | xyza11808/MATLAB-master | perform_tv_correction.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_tv_correction.m | 985 | utf_8 | e9637dd038c9c859b0c6dedd242fecae | function y = perform_tv_correction(x,T)
% perform_tv_correction - perform correction of the image to that it minimizes the TV norm.
%
% y = perform_tv_correction(x,T);
%
% Perform correction using thresholding of haar wavelet coefficients on 1
% scale.
%
% Copyright (c) 2006 Gabriel Peyre
n = size(x,1);
Jmin ... |
github | xyza11808/MATLAB-master | perform_windowed_dct_transform.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_windowed_dct_transform.m | 2,282 | utf_8 | 9c456075e56465427a4442c1e5c9afc8 | function y = perform_windowed_dct_transform(x,w,q,n, options)
% perform_windowed_dct_transform - compute a local DCT transform
%
% Forward transform:
% MF = perform_windowed_dct_transform(M,w,q,n, options);
% Backward transform:
% M = perform_windowed_dct_transform(MF,w,q,n, options);
%
% w is the width of the ... |
github | xyza11808/MATLAB-master | mad.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/mad.m | 7,680 | utf_8 | 1fff5e4e7dffd038def5d5f2dfbdf111 | function y = mad(x,flag)
%MAD Mean/median absolute deviation.
% Y = MAD(X) returns the mean absolute deviation of the values in X. For
% vector input, Y is MEAN(ABS(X-MEAN(X)). For a matrix input, Y is a row
% vector containing the mean absolute deviation of each column of X. For
% N-D arrays, MAD operates ... |
github | xyza11808/MATLAB-master | perform_wavelet_transform.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/perform_wavelet_transform.m | 59,300 | utf_8 | aadab6eccdc50bc2c3749612b67f01ce | function y = perform_wavelet_transform(x, Jmin, dir, options)
% perform_wavelet_transform - wrapper to wavelab Wavelet transform (1D/2D and orthogonal/biorthogonal).
%
% y = perform_wavelet_transform(x, Jmin, dir, options);
%
% 'x' is either a 1D or a 2D array.
% 'Jmin' is the minimum scale (i.e. the coarse chan... |
github | xyza11808/MATLAB-master | pdco.m | .m | MATLAB-master/sometoolbox/toolbox_sparsity/toolbox/pdco.m | 54,786 | utf_8 | 24b840a986d1c21cadf453a476c677e6 | function [x,y,z,inform,PDitns,CGitns,time] = ...
pdco( Fname,Aname,b,bl,bu,d1,d2,options,x0,y0,z0,xsize,zsize )
%-----------------------------------------------------------------------
% pdco.m: Primal-Dual Barrier Method for Convex Objectives (23 Sep 2003)
%--------------------------------------------------------... |
github | xyza11808/MATLAB-master | perform_lifting_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_lifting_transform.m | 5,079 | utf_8 | fdc05363aed0ebacef01aa3481571b3b | function x = perform_lifting_transform(x, Jmin, dir, options)
% perform_lifting_transform - peform fast lifting transform
%
% y = perform_lifting_transform(x, Jmin, dir, options);
%
% Implement 1D and 2D symmetric wavelets with symmetric boundary treatements, using
% a lifting implementation.
%
% h = options.f... |
github | xyza11808/MATLAB-master | perform_wavelet_matching.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_wavelet_matching.m | 5,655 | utf_8 | ce80d6388fa6824a0f269c8a29c4f023 | function [M1,MW,MW1] = perform_wavelet_matching(M1,M,options)
% perform_wavelet_matching - match multiscale histograms
%
% M1 = perform_wavelet_matching(M1,M,options);
%
% M1 is the image to synthesize.
% M is the exemplar image.
%
% This function match the histogram of the image and the histogram
% of each s... |
github | xyza11808/MATLAB-master | perform_quicunx_wavelet_transform_ti.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_quicunx_wavelet_transform_ti.m | 3,927 | utf_8 | b81d7eec362739361304b4e77817f9d6 | function M = perform_quicunx_wavelet_transform_ti(M,Jmin,options)
% perform_quicunx_wavelet_transform_ti - translation invariant quincunx wavelets
%
% Forward
% MW = perform_quicunx_wavelet_transform_ti(M,Jmin,options);
% Backward
% M = perform_quicunx_wavelet_transform_ti(MW,Jmin,options);
%
% The implementatio... |
github | xyza11808/MATLAB-master | perform_curvelet_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_curvelet_transform.m | 33,246 | utf_8 | 9c82e3221e8056fc4fc0cde004f8b9f6 | function y = perform_curvelet_transform(x,options)
% perform_curvelet_transform - a wrapper to curvlab
%
% M = perform_curvelet_transform(MW,options);
%
% Forward and backward curvelet transform
% You must provide options.n (width of the image).
%
% Visit www.curvelab.org for the full code.
options.null = 0... |
github | xyza11808/MATLAB-master | perform_atrou_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_atrou_transform.m | 22,852 | utf_8 | 605fbe84f3ddbcce5d2c0303211f1cf0 | function y = perform_atrou_transform(x,Jmin,options)
% perform_atrou_transform - compute the "a trou" wavelet transform,
%
% This function is depreciated, use perform_wavelet_transform instead.
%
% Copyright (c) 2006 Gabriel Peyre
% w_list = perform_atrou_transform(M,Jmin,options);
%
% 'w_list' is a cell arr... |
github | xyza11808/MATLAB-master | perform_spiht_coding.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_spiht_coding.m | 16,143 | utf_8 | bbf7584fbfe12a1a574c6c3fb4dda891 | function [y,nbr_bits] = perform_spiht_coding(x,options)
% perform_spiht_coding - SPIHT coding of wavelet coefficients
%
% Coding :
% options.Jmin = ??; % minimum scale of the transform
% options.nb_bits = ??; % target number of bits
% [stream,nbr_bits] = perform_spiht_coding(MW,options);
% Decoding :
% ... |
github | xyza11808/MATLAB-master | perform_blsgsm_denoising.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_blsgsm_denoising.m | 41,741 | utf_8 | d7adcb441f0d91f470957d7d1083332f | function y = perform_blsgsm_denoising(x, options)
% perform_blsgsm_denoising - denoise an image using BLS-GSM
%
% y = perform_blsgsm_denoising(x, options);
%
% BLS-GSM stands for "Bayesian Least Squares - Gaussian Scale Mixture".
%
% This function is a wrapper for the code of J.Portilla.
%
% You can change the ... |
github | xyza11808/MATLAB-master | perform_segmentation.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_segmentation.m | 5,024 | utf_8 | 838e39d3911cf7fa55e00ec1a6c11952 | function [B,err] = perform_segmentation(E,options)
% perform_segmentation - perform image segmentation
%
% B = perform_segmentation(E,options);
%
% E is an (n,n,k) set of k dimensional features vectors (one per pixel in
% the image).
%
% options.segmentation_method can be
% 'simple': E(:,:,k) should be ... |
github | xyza11808/MATLAB-master | perform_histogram_matching_wavelet.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_histogram_matching_wavelet.m | 4,341 | utf_8 | 1f7cf68a51b4ca4deaf54ffa969abf33 | function MW_src = perform_histogram_matching_wavelet(MW_src,MW_tgt, Jmin, options)
% perform_histogram_matching_wavelet - match the histogram of a wavelet transform
%
% Matching of wavelet coefficients only:
% options.dotransform=0
% MW_src = perform_histogram_matching_wavelet(MW_src,MW_tgt,Jmin,options);
% Matchi... |
github | xyza11808/MATLAB-master | perform_steerable_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_steerable_transform.m | 61,143 | utf_8 | fbf4501806c57d95bb1c271e398b67e2 | function y = perform_steerable_transform(x, Jmin,options)
% perform_steerable_transform - steerable pyramidal transform
%
% y = perform_steerable_transform(x, Jmin,options);
%
% This is just a convenient wrapper to the original steerable
% matlab toolbox of Simoncelli that can be downloaded from
% http://... |
github | xyza11808/MATLAB-master | perform_quincunx_wavelet_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_quincunx_wavelet_transform.m | 22,839 | utf_8 | e01512b3a656cfe1c0122eb5fc21efc2 | function [y,quincunx_filters] = perform_quincunx_wavelet_transform(x,Jmin,dir,options)
% perform_quincunx_wavelet_transform - compute quincunx transform
%
% Forward transform
% [MW,options.quincunx_filters] = perform_quincunx_wavelet_transform(M,Jmin,+1,options);
% Backward transform
% M = perform_quincunx_wavelet... |
github | xyza11808/MATLAB-master | perform_waveatoms_transform.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/perform_waveatoms_transform.m | 24,620 | utf_8 | a14b7c361a63a2e3e55c96f6fbb09d09 | function y = perform_waveatoms_transform(x,dir, options)
% perform_waveatoms_transform - interface to WaveAtom transform
%
% y = perform_waveatoms_transform(x,dir, options);
%
% The waveatom toolbox can be downloaded from
% http://www.waveatom.org/
%
% Copyright (c) 2007 Gabriel Peyre
options.null = 0;
is... |
github | xyza11808/MATLAB-master | load_signal.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/toolbox/load_signal.m | 11,947 | utf_8 | db55dbee0917dfa39660ddb07583f1e6 | function y = load_signal(name, n, options)
% load_signal - load a 1D signal
%
% y = load_signal(name, n, options);
%
% name is a string that can be :
% 'regular' (options.alpha gives regularity)
% 'step', 'rand',
% 'gaussiannoise' (options.sigma gives width of filtering in pixels),
% [natural signals]
% 't... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/toolbox/load_image.m | 20,214 | utf_8 | c1f0eb21d7f790fdd942c22d38d6995b | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | perform_thresholding.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/toolbox/perform_thresholding.m | 2,482 | utf_8 | 0f3a43687bf3809b0789cace4871a1e6 | function y = perform_thresholding(x, t, type)
% perform_thresholding - perform hard or soft thresholding
%
% y = perform_thresholding(x, t, type);
%
% type is either 'hard' or 'soft' or 'semisoft'
% t is the threshold
%
% works also for complex data, and for cell arrays.
%
% if type is 'strict' then it keeps... |
github | xyza11808/MATLAB-master | histo.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/toolbox/histo.m | 1,835 | utf_8 | e76d8956cd1d59f518a8146dc5145f9b | % [N,X] = histo(MTX, nbinsOrBinsize, binCenter);
%
% Compute a histogram of (all) elements of MTX. N contains the histogram
% counts, X is a vector containg the centers of the histogram bins.
%
% nbinsOrBinsize (optional, default = 101) specifies either
% the number of histogram bins, or the negative of the binsize.
%... |
github | xyza11808/MATLAB-master | den2d_block.m | .m | MATLAB-master/sometoolbox/toolbox_wavelets/tests/den2d_block.m | 1,928 | utf_8 | 0aa067a0c4d149e8023606d571505c47 | function imden=den2d_block(x,qmf,thd,L,sigma)
if (exist('x')~=1), error('Provide input image'); end;
if (exist('qmf')~=1), qmf = MakeONFilter('Symmlet',6); end;
if (exist('thd')~=1), thd = 4.5; end;
[nx ny] = size(x);
if nx~=ny
disp('Matrix must be square');
return;
end
n = nx;
J = nextpow2(n);
if (exist... |
github | xyza11808/MATLAB-master | compute_nearest_neighbors.m | .m | MATLAB-master/sometoolbox/toolbox_dimreduc/compute_nearest_neighbors.m | 3,965 | utf_8 | a0de45b47880b61de33db5696f7bebb3 | function [idx,D]=compute_nearest_neighbors(varargin)
% compute_nearest_neighbor - Linear k-nearest neighbor (KNN) search
% IDX = knnsearch(Q,R,K) searches the reference data set R (n x d array
% representing n points in a d-dimensional space) to find the k-nearest
% neighbors of each query point represented by eahc ro... |
github | xyza11808/MATLAB-master | ltsa.m | .m | MATLAB-master/sometoolbox/toolbox_dimreduc/ltsa.m | 2,557 | utf_8 | 94dac3883230c2516b2be8658194f681 | % ltsa - local tangent planes alignement
%
% [T,NI] = ltsa(X,d,K);
%
% X is the (d,n) n data points in R^d.
% d is the output dimensionnality.
% K is the number of nearest neighbors.
%
% Written by Zhenyue Zhang & Hongyuan Zha, 2004.
% Reference: http://epubs.siam.org/sam-bin/dbq/article/41915
function [T,NI] ... |
github | xyza11808/MATLAB-master | hlle.m | .m | MATLAB-master/sometoolbox/toolbox_dimreduc/hlle.m | 5,498 | utf_8 | 9a3f50514b074892f571b35bc3566f28 | function [Y, mse] = HLLE(X,k,d)
%HLLE Runs the standard Hessian LLE implementation of Hessian Eigenmaps
%
% X is the high-dimensional data to be processed
% k is the number of nearest neighbor points to be used
% if k is a scalar, same size used at all points. if k is a vector of
% length N, neighborhood N... |
github | xyza11808/MATLAB-master | qslim.m | .m | MATLAB-master/sometoolbox/toolbox_graph/qslim.m | 13,152 | utf_8 | 2ab54ac7408e720642cbe21d8b6927bd | function [NFV,smf_fname] = qslim(FV,varargin);
%QSLIM - Mesh simplification, wrapper function for Garland's QSLIM executable program
% function [NFV,smf_fname] = qslim(FV,varargin);
% varargin should be entered in pairs '<option>','<arg>'.
% Valid pairs used in this wrapper are:
%
% '-t', <n>
%
% Specify the desired... |
github | xyza11808/MATLAB-master | perform_triangle_flipping.m | .m | MATLAB-master/sometoolbox/toolbox_graph/perform_triangle_flipping.m | 1,848 | utf_8 | b6a78203795416882735031895a76703 | function face = perform_triangle_flipping(face, flips, options)
% perform_triangle_flipping - apply a sequence of flips to a triangulation
%
% face = perform_triangle_flipping(face, flips, options);
%
% Flip that are not topologically valid (either on a boundary edge or a
% flip that creates a double face) are s... |
github | xyza11808/MATLAB-master | perform_point_picking.m | .m | MATLAB-master/sometoolbox/toolbox_graph/perform_point_picking.m | 4,121 | utf_8 | 9c43a474845c0bc92e5d215f6eda9a88 | function perform_point_picking( PointCloud, face )
% function perform_point_picking( PointCloud, face );
%
% This function shows a 3D point cloud or a mesh and lets the user click select one
% of the points by clicking on it. The selected point will be highlighted
% and its index in the point cloud will be... |
github | xyza11808/MATLAB-master | select3d.m | .m | MATLAB-master/sometoolbox/toolbox_graph/select3d.m | 10,864 | utf_8 | 64f6b58cf8db75c3508f68035be9892e | function [pout, vout, viout, facevout, faceiout] = select3d(obj)
%SELECT3D(H) Determines the selected point in 3-D data space.
% P = SELECT3D determines the point, P, in data space corresponding
% to the current selection position. P is a point on the first
% patch or surface face intersected along the selection ... |
github | xyza11808/MATLAB-master | compute_parameterization.m | .m | MATLAB-master/sometoolbox/toolbox_graph/compute_parameterization.m | 7,662 | utf_8 | 1215e4168de2b431e1d81f0ea8df0af0 | function vertex1 = compute_parameterization(vertex,face, options)
% compute_parameterization - compute a planar parameterization
%
% vertex1 = compute_parameterization(vertex,face, options);
%
% options.method can be:
% 'parameterization': solve classical parameterization, the boundary
% is specifi... |
github | xyza11808/MATLAB-master | perform_dijkstra_propagation_old.m | .m | MATLAB-master/sometoolbox/toolbox_graph/perform_dijkstra_propagation_old.m | 4,965 | utf_8 | ca5b091b67041559476ea2e63c92f254 | function D = perform_dijkstra_propagation_old( G , S )
% dijkstra - Find shortest paths in graphs
%
% D = dijkstra_fast( G , S );
%
% use the full or sparse matrix G in which
% an entry (i,j) represents the arc length between nodes i and j in a
% graph. In a full matrix, the value INF represents the absence of a... |
github | xyza11808/MATLAB-master | compute_boundary.m | .m | MATLAB-master/sometoolbox/toolbox_graph/compute_boundary.m | 1,847 | utf_8 | 28c06ac30beb789fa90a2e484ba3f3a7 | function boundary=compute_boundary(face, options)
% compute_boundary - compute the vertices on the boundary of a 3D mesh
%
% boundary=compute_boundary(face);
%
% Copyright (c) 2007 Gabriel Peyre
options.null = 0;
verb = getoptions(options, 'verb', 1);
if size(face,1)<size(face,2)
face=face';
end
nvert=max(m... |
github | xyza11808/MATLAB-master | compute_geometric_laplacian.m | .m | MATLAB-master/sometoolbox/toolbox_graph/compute_geometric_laplacian.m | 5,583 | utf_8 | 3d9b6480df20fdff10d38f34983646cb | function L = compute_geometric_laplacian(vertex,face,type)
% compute_geometric_laplacian - return a laplacian
% of a given triangulation (can be combinatorial or geometric).
%
% L = compute_geometric_laplacian(vertex,face,type);
%
% Type is either :
% - 'combinatorial' : combinatorial laplacian, doesn't t... |
github | xyza11808/MATLAB-master | check_face_vertex.m | .m | MATLAB-master/sometoolbox/toolbox_graph/check_face_vertex.m | 669 | utf_8 | c940a837f5afef7c3a7f7aed3aff9f7a | function [vertex,face] = check_face_vertex(vertex,face, options)
% check_face_vertex - check that vertices and faces have the correct size
%
% [vertex,face] = check_face_vertex(vertex,face);
%
% Copyright (c) 2007 Gabriel Peyre
vertex = check_size(vertex,2,4);
face = check_size(face,3,4);
%%%%%%%%%%%%%%%%%%%%%%%... |
github | xyza11808/MATLAB-master | plot_graph.m | .m | MATLAB-master/sometoolbox/toolbox_graph/plot_graph.m | 2,140 | utf_8 | 337033b66fe405903639bcac59c2b34d | function h = plot_graph(A,xy, options)
% plot_graph - display a 2D or 3D graph.
%
% plot_graph(A,xy, options);
%
% options.col set the display (e.g. 'k.-')
%
% Copyright (c) 2006 Gabriel Peyre
if size(xy,1)>size(xy,2)
xy = xy';
end
if nargin<3
options.null = 0;
end
if not(isstruct(options))
col = op... |
github | xyza11808/MATLAB-master | perform_delaunay_flipping.m | .m | MATLAB-master/sometoolbox/toolbox_graph/perform_delaunay_flipping.m | 2,420 | utf_8 | 7c5e250e94e9e69d99c556c805b4d2fe | function [face, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options)
% perform_delaunay_flipping - compute Dalaunay triangulation via flipping
%
% [face1, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options);
%
% Set options.display_flips = 1 for graphical display.
%
% face is turned in... |
github | xyza11808/MATLAB-master | check_incircle_edge.m | .m | MATLAB-master/sometoolbox/toolbox_graph/check_incircle_edge.m | 1,633 | utf_8 | dca2fc799d9cf120df9156a15c47b5fa | function ic = check_incircle_edge(vertex, face, edge)
% check_incicle_edge - compute "empty circle" property for a set of edges
%
% ic = check_incicle_edge(vertex,face, edge);
%
% ic(i)==1 if edge(:,i) is delaunay valid (boundary or empty circles or non convex).
% It thus should be flipped if ic(i)==0.
%
% Cop... |
github | xyza11808/MATLAB-master | perform_faces_reorientation.m | .m | MATLAB-master/sometoolbox/toolbox_graph/perform_faces_reorientation.m | 2,816 | utf_8 | 2cf3d5c1ad6ea271b524352db5492c2c | function faces = perform_faces_reorientation(vertex,faces, options)
% perform_faces_reorientation - reorient the faces with respect to the center of the mesh
%
% faces = perform_faces_reorientation(vertex,faces, options);
%
% try to find a consistant reorientation for faces of a mesh.
%
% if options.method = 'fast... |
github | xyza11808/MATLAB-master | plot_spherical_triangulation.m | .m | MATLAB-master/sometoolbox/toolbox_graph/plot_spherical_triangulation.m | 1,397 | utf_8 | fde5d8ffb7898bb232257895ced3d53d | function plot_spherical_triangulation(svertex,face, options)
% plot_spherical_triangulation - display a nice spherical triangulation
%
% plot_spherical_triangulation(svertex,face,options);
%
% Copyright (c) 2008 Gabriel Peyre
options.null = 0;
hold on;
% draw a background sphere
[X,Y,Z] = sphere(30);
surf(X,Y... |
github | xyza11808/MATLAB-master | compute_mesh_weight.m | .m | MATLAB-master/sometoolbox/toolbox_graph/compute_mesh_weight.m | 2,783 | utf_8 | 435dabe64ab50ca5bf2c467bcbad6ab8 | function W = compute_mesh_weight(vertex,face,type,options)
% compute_mesh_weight - compute a weight matrix
%
% W = compute_mesh_weight(vertex,face,type,options);
%
% W is sparse weight matrix and W(i,j)=0 is vertex i and vertex j are not
% connected in the mesh.
%
% type is either
% 'combinatorial': W(i... |
github | xyza11808/MATLAB-master | perform_analysis_regularization.m | .m | MATLAB-master/sometoolbox/toolbox_graph/toolbox/perform_analysis_regularization.m | 2,585 | utf_8 | c15e65a8b4b77823cd42e992ac708563 | function [g,g_list,E] = perform_analysis_regularization(f, G, options)
% perform_analysis_regularization - perform a sparse regularization
%
% [g,g_list,E] = perform_analysis_regularization(f, A, options);
%
% Method solves, given f of length n, for
% min_g E(g) = 1/2*|f-g|^2 + lambda * |A*g|_1
% where A is a... |
github | xyza11808/MATLAB-master | perform_synthesis_quilting.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/perform_synthesis_quilting.m | 7,921 | utf_8 | fc6fbcafd272566bd5b598484e7cee24 | function Y = perform_synthesis_quilting(X, tilesize, n, overlap, err, initial_patch)
% perform_synthesis_quilting - perform image synthesis
%
% Y = perform_synthesis_quilting(X, tilesize, n, overlap, err, initial_patch);
%
% The method is described in
% ``Image Quilting for Texture Synthesis and Transfer''
... |
github | xyza11808/MATLAB-master | perform_wavelet_matching.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/perform_wavelet_matching.m | 4,232 | utf_8 | c08affe005c098a67fc7fbda0a77237e | function [M1,MW,MW1] = perform_wavelet_matching(M1,M,options)
% perform_wavelet_matching - match multiscale histograms
%
% M1 = perform_wavelet_matching(M1,M,options);
%
% M1 is the image to synthesize.
% M is the exemplar image.
%
% This function match the histogram of the image and the histogram
% of each s... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/load_image.m | 12,012 | utf_8 | 0d866081cfad971458454b090f88b88a | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'disk', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horizontal', 'line_diagonal', 'line_c... |
github | xyza11808/MATLAB-master | perform_histogram_equalization.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/perform_histogram_equalization.m | 7,968 | utf_8 | bcc84159668c38454a24a2574e13ac2b | function x = perform_histogram_equalization(x,y,options)
% perform_histogram_equalization - perform histogram equalization
%
% x = perform_histogram_equalization(x,y,options);
%
% Change the values of x so that its ordered values match
% the ordered values of y.
%
% You can set
% options.cols=1 to operat... |
github | xyza11808/MATLAB-master | perform_blsgsm_denoising.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/perform_blsgsm_denoising.m | 41,741 | utf_8 | d7adcb441f0d91f470957d7d1083332f | function y = perform_blsgsm_denoising(x, options)
% perform_blsgsm_denoising - denoise an image using BLS-GSM
%
% y = perform_blsgsm_denoising(x, options);
%
% BLS-GSM stands for "Bayesian Least Squares - Gaussian Scale Mixture".
%
% This function is a wrapper for the code of J.Portilla.
%
% You can change the ... |
github | xyza11808/MATLAB-master | perform_wavelet_transform.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/perform_wavelet_transform.m | 59,300 | utf_8 | e8e2345bea076f17e48244b8b6032e5b | function y = perform_wavelet_transform(x, Jmin, dir, options)
% perform_wavelet_transform - wrapper to wavelab Wavelet transform (1D/2D and orthogonal/biorthogonal).
%
% y = perform_wavelet_transform(x, Jmin, dir, options);
%
% 'x' is either a 1D or a 2D array.
% 'Jmin' is the minimum scale (i.e. the coarse chan... |
github | xyza11808/MATLAB-master | medfilt2.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/ordfilt2/medfilt2.m | 4,298 | utf_8 | 2f9ee6bd1f0fd3f65cee6fc0bf7aa331 | function b = medfilt2(varargin)
%MEDFILT2 Perform 2-D median filtering.
% B = MEDFILT2(A,[M N]) performs median filtering of the matrix
% A in two dimensions. Each output pixel contains the median
% value in the M-by-N neighborhood around the corresponding
% pixel in the input image. MEDFILT2 pads the image wit... |
github | xyza11808/MATLAB-master | padarray.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/ordfilt2/padarray.m | 7,390 | utf_8 | ad554f05b6c0c117031cdf6087ebd493 | function b = padarray(varargin)
%PADARRAY Pad an array.
% B = PADARRAY(A,PADSIZE) pads array A with PADSIZE(k) number of zeros
% along the k-th dimension of A. PADSIZE should be a vector of
% positive integers.
%
% B = PADARRAY(A,PADSIZE,PADVAL) pads array A with PADVAL (a scalar)
% instead of with zeros.
%
... |
github | xyza11808/MATLAB-master | checkstrs.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/ordfilt2/checkstrs.m | 3,195 | utf_8 | 36e062c317332a97c137135d33211b38 | function out = checkstrs(in, valid_strings, function_name, ...
variable_name, argument_position)
%CHECKSTRS Check validity of option string.
% OUT = CHECKSTRS(IN,VALID_STRINGS,FUNCTION_NAME,VARIABLE_NAME, ...
% ARGUMENT_POSITION) checks the validity of the option string IN. It
% returns ... |
github | xyza11808/MATLAB-master | ordfilt2.m | .m | MATLAB-master/sometoolbox/toolbox_nlmeans/toolbox/ordfilt2/ordfilt2.m | 4,116 | utf_8 | 838600252657cc181b5bf790c402f1f1 | function B = ordfilt2(varargin)
%ORDFILT2 Perform 2-D order-statistic filtering.
% B=ORDFILT2(A,ORDER,DOMAIN) replaces each element in A by the
% ORDER-th element in the sorted set of neighbors specified by
% the nonzero elements in DOMAIN.
%
% B = ORDFILT2(A,ORDER,DOMAIN,S), where S is the same size as
% D... |
github | xyza11808/MATLAB-master | compute_butterfly_neighbors.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/compute_butterfly_neighbors.m | 1,398 | utf_8 | 0a690efe10cc4cbba37565df43f15a2f | function [e,v,g] = compute_butterfly_neighbors(k, nj)
% compute_butterfly_neighbors - compute local neighbors of a vertex
%
% [e,v,g] = compute_butterfly_neighbors(k, nj);
%
% This is for internal use.
%
% e are the 2 direct edge neighbors
% v are the 2 indirect neighbors
% g are the fare neighbors
%
% You nee... |
github | xyza11808/MATLAB-master | load_spherical_function.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/load_spherical_function.m | 1,810 | utf_8 | 1999ea966df43f6770f67d42cee2a6f7 | function f = load_spherical_function(name, pos, options)
% load_spherical_function - load a function on the sphere
%
% f = load_spherical_function(name, pos, options);
%
% Copyright (c) 2007 Gabriel Peyre
if iscell(pos)
pos = pos{end};
end
if size(pos,1)>size(pos,2)
pos = pos';
end
x = pos(1,:); x = x(:... |
github | xyza11808/MATLAB-master | perform_spherial_planar_sampling.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/perform_spherial_planar_sampling.m | 2,866 | utf_8 | ac03fdc06793e0ace6f8ab1ff1a4fcf6 | function posw = perform_spherial_planar_sampling(pos_sphere, sampling_type)
% perform_spherial_planar_sampling - project sampling location from sphere to a square
%
% posw = perform_spherial_planar_sampling(pos_sphere, type)
%
% 'type' can be 'area' or 'gnomonic'.
%
% This is used to produced spherical geometry im... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/toolbox/load_image.m | 18,777 | utf_8 | 46b5ed29e3aa2b0736eb6fb78a3ed113 | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | check_face_vertex.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/toolbox/check_face_vertex.m | 646 | utf_8 | fe3c5da3b1ca8f15eb7eed61acfc2259 | function [vertex,face] = check_face_vertex(vertex,face, options)
% check_face_vertex - check that vertices and faces have the correct size
%
% [vertex,face] = check_face_vertex(vertex,face);
%
% Copyright (c) 2007 Gabriel Peyre
vertex = check_size(vertex);
face = check_size(face);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
f... |
github | xyza11808/MATLAB-master | compute_mesh_weight.m | .m | MATLAB-master/sometoolbox/toolbox_wavelet_meshes/toolbox/compute_mesh_weight.m | 2,820 | utf_8 | c90377b7ee516f5f952ce8c31dcfd43b | function W = compute_mesh_weight(vertex,face,type,options)
% compute_mesh_weight - compute a weight matrix
%
% W = compute_mesh_weight(vertex,face,type,options);
%
% W is sparse weight matrix and W(i,j)=0 is vertex i and vertex j are not
% connected in the mesh.
%
% type is either
% 'combinatorial': W(i... |
github | xyza11808/MATLAB-master | plot_tensor_field.m | .m | MATLAB-master/sometoolbox/toolbox_diffc/plot_tensor_field.m | 5,546 | utf_8 | 0093e94208de38e598035f46e209501b | function h = plot_tensor_field(H, M, options)
% plot_tensor_field - display a tensor field
%
% h = plot_tensor_field(H, M, options);
%
% options.sub controls sub-sampling
% options.color controls color
%
% Copyright (c) 2006 Gabriel Peyre
if nargin<3
options.null = 0;
end
if not( isstruct(options) )
s... |
github | xyza11808/MATLAB-master | compute_structure_tensor.m | .m | MATLAB-master/sometoolbox/toolbox_diffc/compute_structure_tensor.m | 4,901 | utf_8 | 71ecdec5fe7093c95415bfd7f3a5f235 | function H = compute_structure_tensor(M,sigma1,sigma2, options)
% compute_structure_tensor - compute the structure tensor
%
% T = compute_structure_tensor(M,sigma1,sigma2);
%
% sigma1 is pre smoothing width (in pixels).
% sigma2 is post smoothing width (in pixels).
%
% Follows the ideas of
% U. Kothe, "Edge ... |
github | xyza11808/MATLAB-master | plot_tensor_field_nb.m | .m | MATLAB-master/sometoolbox/toolbox_diffc/plot_tensor_field_nb.m | 4,941 | utf_8 | c29eb674b2af4479f7bac48f98348e88 | function h = plot_tensor_field(H, M, options)
% plot_tensor_field - display a tensor field
%
% h = plot_tensor_field(H, M, options);
%
% options.sub controls sub-sampling
% options.color controls color
%
% Copyright (c) 2006 Gabriel Peyre
if nargin<3
options.null = 0;
end
if not( isstruct(options) )
s... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_diffc/toolbox/load_image.m | 19,769 | utf_8 | 606e80a4bb35e22f0cb732fa6195500b | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | compute_periodic_poisson.m | .m | MATLAB-master/sometoolbox/toolbox_diffc/toolbox/compute_periodic_poisson.m | 855 | utf_8 | 52f67b893134bee2f5ec735f55733e1f | function G = compute_periodic_poisson(d, symmetrize)
% compute_periodic_poisson - solve poisson equation
%
% G = compute_periodic_poisson(d,symmetrize);
%
% Solve
% Delta(G) = d
% with periodic boundary condition.
% G has zero mean.
%
% Set symmetrize=1 (default 0) if the data divergence d is not peri... |
github | xyza11808/MATLAB-master | perform_windowed_fourier_transform.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_windowed_fourier_transform.m | 6,202 | utf_8 | bbb87e7a70bc93ae51e18e2691849448 | function y = perform_windowed_fourier_transform(x,w,q,n, options)
% perform_windowed_fourier_transform - compute a local Fourier transform
%
% Forward transform:
% MF = perform_windowed_fourier_transform(M,w,q,n, options);
% Backward transform:
% M = perform_windowed_fourier_transform(MF,w,q,n, options);
%
% w ... |
github | xyza11808/MATLAB-master | load_hdr.m | .m | MATLAB-master/sometoolbox/toolbox_image/load_hdr.m | 4,928 | utf_8 | cdf17b3681f4c6902ed0f7de2ad31f7d | function [img, fileinfo] = read_hdr(filename)
% load_hdr - loading a radiance RBGE file.
%
% [img, fileinfo] = read_rle_rgbe(filename);
%
% Written by Lawrence A. Taplin (taplin@cis.rit.edu)
%
% Based loosely on the c-code RGBE implementation written by Bruce Walters
% http://www.graphics.cornell.edu/~bjw/rgbe.html
... |
github | xyza11808/MATLAB-master | load_image.m | .m | MATLAB-master/sometoolbox/toolbox_image/load_image.m | 20,769 | utf_8 | 1e7385317f656bdec8213321748edab7 | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'line_horiz... |
github | xyza11808/MATLAB-master | grab_inpainting_mask.m | .m | MATLAB-master/sometoolbox/toolbox_image/grab_inpainting_mask.m | 3,717 | utf_8 | c160d95ddbbe80a15f290993fd6bac1a | function [U,point_list] = grab_inpainting_mask(M, options)
% grab_inpainting_mask - create a mask from user input
%
% U = grab_inpainting_mask(M, options);
%
% Select set of point in an image (useful to select a region for
% inpainting). The set of point is U==Inf.
%
% options.r is the radius for selection (de... |
github | xyza11808/MATLAB-master | change_color_mode.m | .m | MATLAB-master/sometoolbox/toolbox_image/change_color_mode.m | 7,483 | utf_8 | 184fcadc594ac09e3b2a2086820890bb | function [M,ColorP] = change_color_mode(M,dir,options)
% change_color_mode - change of color representation
%
% M = change_color_mode(M,dir,options);
%
% switch between RGB and another color mode.
%
% options.color_mode can be:
% 'rgb' (no change), 'hsv', 'ycbcr', 'pca'
%
% For PCA you should proceed like th... |
github | xyza11808/MATLAB-master | compute_ssim_index.m | .m | MATLAB-master/sometoolbox/toolbox_image/compute_ssim_index.m | 18,516 | utf_8 | 8f8a1253f9cbb32e75b2c552827cfa1f | function [mssim, ssim_map] = compute_ssim_index(img1, img2, K, window, L)
%========================================================================
%SSIM Index, Version 1.0
%Copyright(c) 2003 Zhou Wang
%All Rights Reserved.
%
%The author is with Howard Hughes Medical Institute, and Laboratory
%for Computational Vision... |
github | xyza11808/MATLAB-master | perform_tv_hilbert_projection.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_tv_hilbert_projection.m | 3,727 | utf_8 | f96d06428439140dc4dc1f0182805595 | function [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options)
% Aujol & Chambolle projection for solving TV-K regularization
%
% [u,v,px,py] = perform_tv_hilbert_projection(f,kernel,lam,options);
%
% Solve the image separation problem :
% u = argmin_u |f-u|_K^2 + lam*|u|_TV
%
% f = u+v
% u i... |
github | xyza11808/MATLAB-master | perform_tv_correction.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_tv_correction.m | 985 | utf_8 | e9637dd038c9c859b0c6dedd242fecae | function y = perform_tv_correction(x,T)
% perform_tv_correction - perform correction of the image to that it minimizes the TV norm.
%
% y = perform_tv_correction(x,T);
%
% Perform correction using thresholding of haar wavelet coefficients on 1
% scale.
%
% Copyright (c) 2006 Gabriel Peyre
n = size(x,1);
Jmin ... |
github | xyza11808/MATLAB-master | compute_periodic_poisson.m | .m | MATLAB-master/sometoolbox/toolbox_image/compute_periodic_poisson.m | 855 | utf_8 | 52f67b893134bee2f5ec735f55733e1f | function G = compute_periodic_poisson(d, symmetrize)
% compute_periodic_poisson - solve poisson equation
%
% G = compute_periodic_poisson(d,symmetrize);
%
% Solve
% Delta(G) = d
% with periodic boundary condition.
% G has zero mean.
%
% Set symmetrize=1 (default 0) if the data divergence d is not peri... |
github | xyza11808/MATLAB-master | perform_quincunx_interpolation.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_quincunx_interpolation.m | 1,537 | utf_8 | 6d747ffd41f26abbb6804e53fb57335d | function Mi = perform_quincunx_interpolation(M,vm)
% perform_quincunx_interpolation - interpolate data on a quincunx grid
%
% Mi = perform_quincunx_interpolation(M,vm);
%
% M is a 2D image where only pixels M(i+j,i-j) are available
% (checkboard subsampling)
%
% vm is 2, 4 or 6
%
% Copyright (c) 2008 Gabri... |
github | xyza11808/MATLAB-master | perform_windowed_dct_transform.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_windowed_dct_transform.m | 2,282 | utf_8 | 9c456075e56465427a4442c1e5c9afc8 | function y = perform_windowed_dct_transform(x,w,q,n, options)
% perform_windowed_dct_transform - compute a local DCT transform
%
% Forward transform:
% MF = perform_windowed_dct_transform(M,w,q,n, options);
% Backward transform:
% M = perform_windowed_dct_transform(MF,w,q,n, options);
%
% w is the width of the ... |
github | xyza11808/MATLAB-master | perform_windowed_dct4_transform.m | .m | MATLAB-master/sometoolbox/toolbox_image/perform_windowed_dct4_transform.m | 14,528 | utf_8 | 14fb4b703d9af03093b3a48e38dceded | function y = perform_windowed_dct4_transform(x, w, dir, options)
% perform_windowed_dct4_transform - orthogonal local DCT
%
% y = perform_windowed_dct4_transform(x, w, dir, options);
%
% This is an orthogonal transform, with x2 overlap,
% note that the low frequencies are removes if options.remove_lowfreq = 1.
%
... |
github | xyza11808/MATLAB-master | perform_dct_transform.m | .m | MATLAB-master/sometoolbox/toolbox_image/toolbox/perform_dct_transform.m | 7,750 | utf_8 | 07f7ce84cf4f6dfc91ad645a17eab05c | function y = perform_dct_transform(x,dir)
% perform_dct_transform - discrete cosine transform
%
% y = perform_dct_transform(x,dir);
%
% Copyright (c) 2006 Gabriel Peyre
if size(x,1)==1 || size(x,2)==1
% 1D transform
if dir==1
y = dct(x);
else
y = idct(x);
end
else
if dir==1
... |
github | xyza11808/MATLAB-master | dump_struct.m | .m | MATLAB-master/sometoolbox/toolbox_misc/dump_struct.m | 1,389 | utf_8 | 746b6d65b8fc8c67e8cb806c235f5e6a | function fid = dump_struct(s,fid,header)
% dump_struct - dump the content of a struct to a file
%
% dump_struct(s,fid, header);
%
% Copyright (c) 2008 Gabriel Peyre
if nargin<3
header = '';
end
if isstr(fid)
fid = fopen(fid, 'a');
if fid<=0
error(['File ' fid ' does not exist.']);
end
en... |
github | xyza11808/MATLAB-master | iat_flow2rgb.m | .m | MATLAB-master/alignment/misc/iat_flow2rgb.m | 4,136 | utf_8 | fad3338a55cc2825fbace1f585065e42 | function rgb = iat_flow2rgb( fx, fy, dispRange )
% RGBIM = IAT_FLOW2RGB( FX, FY, DISPRANGE )
%
% IAT_FLOW2RGB creates a color image RGBIM from the dense displacements (flows)
% FX and FY. The angle of each displacement vector is translated to a color
% through a specific colomap. DISPRANGE is an optional parameter tha... |
github | xyza11808/MATLAB-master | DIRT_Registration.m | .m | MATLAB-master/alignment/dirt/DIRT_Registration.m | 24,483 | utf_8 | cee4718fbdb5ea31e4166bf6ae7ea2fd | function reg = DIRT_Registration(tI, pre, varargin)
% reg = DIRT_Registration(tI, pre, ...)
%
% Register the target image tI to the source image sI in pre, using the
% pixels in some region of interest in pre. The registration model is:
% sI[q] = P(tI[G(q)]) + noise
% where P is a photometric transformation and G a ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.