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
pengsun/MultiClassLogitBoost-master
pGSExtSamp2VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pGSExtSamp2VTLogitBoost.m
1,689
utf_8
ac101f433933a845b8362cadd8716553
classdef pGSExtSamp2VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size, rs,rf,rc] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = si...
github
pengsun/MultiClassLogitBoost-master
pGSVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pGSVTLogitBoost.m
1,468
utf_8
94dc59539fb5bee50d0c4dd56a7b0a41
classdef pGSVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); v...
github
pengsun/MultiClassLogitBoost-master
pCoSamp2VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pCoSamp2VTLogitBoost.m
2,528
utf_8
0861a0077e262ec695b1fd3eba323b62
classdef pCoSamp2VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rf,rb,wrb] = parse_input(varargin{:}); if (isempty(var_cat_mask)) ...
github
pengsun/MultiClassLogitBoost-master
pAOSOLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pAOSOLogitBoost.m
1,860
utf_8
a6d5a312f3ca333bbaa0b30caaaed282
classdef pAOSOLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); v...
github
pengsun/MultiClassLogitBoost-master
pVbExtSamp12VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pVbExtSamp12VTLogitBoost.m
2,648
utf_8
5c02d6e685273ab779abd196773acc84
classdef pVbExtSamp12VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,rc, wrs,wrc] = parse_input(varargin{:}); if (isempty(var_cat_m...
github
pengsun/MultiClassLogitBoost-master
VTDropoutLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/VTDropoutLogitBoost.m
1,490
utf_8
c91e5dc75af1da96db7e75ca951861ad
classdef VTDropoutLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); ...
github
pengsun/MultiClassLogitBoost-master
pCoSampVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pCoSampVTLogitBoost.m
2,516
utf_8
14c502c86992b6dc728bb47be3f96e15
classdef pCoSampVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rf,rb,wrb] = parse_input(varargin{:}); if (isempty(var_cat_mask)) ...
github
pengsun/MultiClassLogitBoost-master
pAvgSampVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pAvgSampVTLogitBoost.m
3,107
utf_8
c6343e43bc73f83c447a67c53e8d18f4
classdef pAvgSampVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,rc, wrs,wrc,... Tdot] = parse_input(varargin{:}); if (is...
github
pengsun/MultiClassLogitBoost-master
pVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pVTLogitBoost.m
1,456
utf_8
6ce37970fbda239a0169ea14d0cdd944
classdef pVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); var...
github
pengsun/MultiClassLogitBoost-master
pVbExtSamp12SkimVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pVbExtSamp12SkimVTLogitBoost.m
2,666
utf_8
6f0c6f1d211f26e41dda81817818f419
classdef pVbExtSamp12SkimVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,rc, wrs,wrc] = parse_input(varargin{:}); if (isempty(var_c...
github
pengsun/MultiClassLogitBoost-master
pAOSOGradBoostVb.m
.m
MultiClassLogitBoost-master/matlab/pAOSOGradBoostVb.m
3,000
utf_8
30ebba2645923e3feafb9b0ce864c3b1
classdef pAOSOGradBoostVb % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,wrs] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nv...
github
pengsun/MultiClassLogitBoost-master
VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/VTLogitBoost.m
1,450
utf_8
57ec050cf116264e29b0a42c9921a3df
classdef VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); var_...
github
pengsun/MultiClassLogitBoost-master
pAOSOGradAutostepBoost.m
.m
MultiClassLogitBoost-master/matlab/pAOSOGradAutostepBoost.m
2,557
utf_8
2edb4b77986c8b26d87c05914f583340
classdef pAOSOGradAutostepBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,wrs] = parse_input(varargin{:}); if (isempty(var_cat_mask)) ...
github
pengsun/MultiClassLogitBoost-master
pVbExtSamp6VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pVbExtSamp6VTLogitBoost.m
1,730
utf_8
96f9a815114f3ba8269321c274e5d1f7
classdef pVbExtSamp6VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size, rs,rf,rc] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = si...
github
pengsun/MultiClassLogitBoost-master
ConsVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/ConsVTLogitBoost.m
1,474
utf_8
315d574f5330c1bcb38741558d4f568a
classdef ConsVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size(X,1); ...
github
pengsun/MultiClassLogitBoost-master
pExtSamp3VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pExtSamp3VTLogitBoost.m
1,677
utf_8
1192d25bc2d6ba2f79b1da13deba08a3
classdef pExtSamp3VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size, rs,rf,rc] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size...
github
pengsun/MultiClassLogitBoost-master
pExtSamp4VTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pExtSamp4VTLogitBoost.m
1,677
utf_8
9f08bd93a0dc51c7ed80d7e5dcdd3a0f
classdef pExtSamp4VTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size, rs,rf,rc] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar = size...
github
pengsun/MultiClassLogitBoost-master
pAOSOLogitBoostV2Vb.m
.m
MultiClassLogitBoost-master/matlab/pAOSOLogitBoostV2Vb.m
3,048
utf_8
7f1ef401342ae00435a1f492418c10da
classdef pAOSOLogitBoostV2Vb % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,wrs] = parse_input(varargin{:}); if (isempty(var_cat_mask)) ...
github
pengsun/MultiClassLogitBoost-master
pVbExtSamp13AOSOVTLogitBoost.m
.m
MultiClassLogitBoost-master/matlab/pVbExtSamp13AOSOVTLogitBoost.m
2,741
utf_8
687ef1e257ad7c918f2c2d7661a771a2
classdef pVbExtSamp13AOSOVTLogitBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,rc, wrs,wrc] = parse_input(varargin{:}); if (isempty(var_c...
github
pengsun/MultiClassLogitBoost-master
pAOSOGradBoost.m
.m
MultiClassLogitBoost-master/matlab/pAOSOGradBoost.m
2,461
utf_8
a06ac9e37f310f27a384d94a15ff9b84
classdef pAOSOGradBoost % Summary of this class goes here % Detailed explanation goes here properties ptr; end methods function obj = train(obj,X,Y, varargin) [var_cat_mask,T,J,v, node_size,... rs,rf,wrs] = parse_input(varargin{:}); if (isempty(var_cat_mask)) nvar...
github
jtyuan/deblur-master
compute_Igain_map.m
.m
deblur-master/compute_Igain_map.m
1,166
utf_8
38a2cc7d6ee85336387a314e847102fa
function [ Igain ] = compute_Igain_map ( Nd, alpha ) %COMPUTE_IGAIN_MAP Compute gain map used in gain-controlled RL % % Nd - The imaged as the source of gain map calculation % alpha - The param determines the influence of gain map lmax = 10; gsize = [5 5]; sig = 0.5; [ h, w, d ] = size(Nd); % Prepare G...
github
jtyuan/deblur-master
MatrixConvolve.m
.m
deblur-master/MatrixConvolve.m
2,945
utf_8
42f67866a2df0c81379f093157b9f1ef
%-------------------------------------------------------------------------- % Son Hua, NUS % 2010-05-25 % % Special matrix representating an image that provides fast convolution % operation via the mtimes operator * % % This class is used for kernel estimation only. % Kernel estimation equation: I \corr I \conv K = I ...
github
jtyuan/deblur-master
FAST_NLM_II.m
.m
deblur-master/FAST_NLM_II.m
4,587
utf_8
4d8786ebccc34ab10b68a402717d57d1
function DenoisedImg = FAST_NLM_II(NoisyImg,PatchSizeHalf,WindowSizeHalf,Sigma) % ------------------------------------------------------------------------- % Function FAST_NLM_II (Fast Non-Local Mean Image Denoising using Integral Image) % Implemented method from the paper % "FAST NONLOCAL FILTERING APPLIED TO ELE...
github
jtyuan/deblur-master
jbfilter2.m
.m
deblur-master/jbfilter2.m
3,505
utf_8
ce7628101e5fe45c1839c893df152de2
% JBFILTER2 Two dimensional Joint bilateral filtering. % This function implements 2-D bilateral filtering using % the method outlined in, however with weights calculated according % to another image. % % C. Tomasi and R. Manduchi. Bilateral Filtering for % Gray and Color Images. In Proceedi...
github
jtyuan/deblur-master
l1_ls_nonneg.m
.m
deblur-master/l1_ls_matlab/l1_ls_nonneg.m
7,989
utf_8
14cde0736a7277c96518a0c1f6ff7082
function [x,status,history] = l1_ls_nonneg(A,varargin) % % l1-Regularized Least Squares Problem Solver % % l1_ls solves problems of the following form: % % minimize ||A*x-y||^2 + lambda*sum(x_i), % subject to x_i >= 0, i=1,...,n % % where A and y are problem data and x is variable (described below). %...
github
jtyuan/deblur-master
l1_ls.m
.m
deblur-master/l1_ls_matlab/l1_ls.m
8,414
utf_8
592cd5d633c7f3e474bcad9309e4ea07
function [x,status,history] = l1_ls(A,varargin) % % l1-Regularized Least Squares Problem Solver % % l1_ls solves problems of the following form: % % minimize ||A*x-y||^2 + lambda*sum|x_i|, % % where A and y are problem data and x is variable (described below). % % CALLING SEQUENCES % [x,status,history] = l1...
github
jtyuan/deblur-master
sp3Filters.m
.m
deblur-master/denoise/matlabPyrTools/sp3Filters.m
17,188
utf_8
a3514d77e5a92b96d96197ebad343395
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
jtyuan/deblur-master
buildWpyr.m
.m
deblur-master/denoise/matlabPyrTools/buildWpyr.m
2,644
utf_8
e741b2037d9a1358d4de94580ebcc4bf
% [PYR, INDICES] = buildWpyr(IM, HEIGHT, FILT, EDGES) % % Construct a separable orthonormal QMF/wavelet pyramid on matrix (or vector) IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(IM,FILT). You can also specify 'auto' to use this value. % % FILT (optional) can be a st...
github
jtyuan/deblur-master
reconLpyr.m
.m
deblur-master/denoise/matlabPyrTools/reconLpyr.m
2,049
utf_8
657b8012a1ed06b6573496855309b2ae
% RES = reconLpyr(PYR, INDICES, LEVS, FILT2, EDGES) % % Reconstruct image from Laplacian pyramid, as created by buildLpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each subband. This is compatible with the MatLab Wavelet t...
github
jtyuan/deblur-master
mkDisc.m
.m
deblur-master/denoise/matlabPyrTools/mkDisc.m
1,428
utf_8
c6acae0ac1aa738b7ef094eb2ac60f52
% IM = mkDisc(SIZE, RADIUS, ORIGIN, TWIDTH, VALS) % % Make a "disk" image. SIZE specifies the matrix size, as for % zeros(). RADIUS (default = min(size)/4) specifies the radius of % the disk. ORIGIN (default = (size+1)/2) specifies the % location of the disk center. TWIDTH (in pixels, default = 2) % specifies th...
github
jtyuan/deblur-master
spyrHigh.m
.m
deblur-master/denoise/matlabPyrTools/spyrHigh.m
189
utf_8
3132a747e0c7bf1879bb32e4d5fda257
% RES = spyrHigh(PYR, INDICES) % % Access the highpass residual band from a steerable pyramid. % Eero Simoncelli, 6/96. function res = spyrHigh(pyr,pind) res = pyrBand(pyr, pind, 1);
github
jtyuan/deblur-master
mkImpulse.m
.m
deblur-master/denoise/matlabPyrTools/mkImpulse.m
529
utf_8
cf6f3809cb123791501bb0e92845a0c6
% IM = mkImpulse(SIZE, ORIGIN, AMPLITUDE) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing a single non-zero entry, at position ORIGIN (defaults to % ceil(size/2)), of value AMPLITUDE (defaults to 1). % Eero Simoncelli, 6/96. function [res] = mkImpulse(sz, origin, amplitude) sz = s...
github
jtyuan/deblur-master
rconv2.m
.m
deblur-master/denoise/matlabPyrTools/rconv2.m
1,435
utf_8
da3a54d6c7b1ac17c78eab0a4a7648d9
% RES = RCONV2(MTX1, MTX2, CTR) % % Convolution of two matrices, with boundaries handled via reflection % about the edge pixels. Result will be of size of LARGER matrix. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument:...
github
jtyuan/deblur-master
mkR.m
.m
deblur-master/denoise/matlabPyrTools/mkR.m
775
utf_8
504bc90f67c72730edc4a9d86630bdf2
% IM = mkR(SIZE, EXPT, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a radial ramp function, raised to power EXPT % (default = 1), with given ORIGIN (default = (size+1)/2, [1 1] = % upper left). All but the first argument are optional. % Eero Simoncelli, 6/96....
github
jtyuan/deblur-master
blur.m
.m
deblur-master/denoise/matlabPyrTools/blur.m
1,731
utf_8
a2dc57fdfe85f98549b2f7ddf721c298
% RES = blur(IM, LEVELS, FILT) % % Blur an image, by filtering and downsampling LEVELS times % (default=1), followed by upsampling and filtering LEVELS times. The % blurring is done with filter kernel specified by FILT (default = % 'binom5'), which can be a string (to be passed to namedFilter), a % vector (applied sep...
github
jtyuan/deblur-master
pyrBand.m
.m
deblur-master/denoise/matlabPyrTools/pyrBand.m
395
utf_8
39c1e3772426a1362119d302d9767a24
% RES = pyrBand(PYR, INDICES, BAND_NUM) % % Access a subband from a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 6/96. function res = pyrBand(pyr, pind, band) re...
github
jtyuan/deblur-master
kurt2.m
.m
deblur-master/denoise/matlabPyrTools/kurt2.m
551
utf_8
cd20c1a5155cba8de454011552ec4f2a
% K = KURT2(MTX,MEAN,VAR) % % Sample kurtosis (fourth moment divided by squared variance) % of a matrix. Kurtosis of a Gaussian distribution is 3. % MEAN (optional) and VAR (optional) make the computation faster. % Eero Simoncelli, 6/96. function res = kurt2(mtx, mn, v) if (exist('mn') ~= 1) mn = mean(mean(mtx)...
github
jtyuan/deblur-master
buildSpyr.m
.m
deblur-master/denoise/matlabPyrTools/buildSpyr.m
2,064
utf_8
b0caf60e63a52aa734956dd74ea39f95
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSpyr(IM, HEIGHT, FILTFILE, EDGES) % % Construct a steerable pyramid on matrix IM. Convolutions are % done with spatial filters. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is maxPyrHt(size(IM),size(FILT)). % You can also specify 'auto' ...
github
jtyuan/deblur-master
setPyrBand.m
.m
deblur-master/denoise/matlabPyrTools/setPyrBand.m
1,049
utf_8
76554eb735e969097a4723a508facd37
% NEWPYR = setPyrBand(PYR, INDICES, NEWBAND, BAND_NUM) % % Insert an image (BAND) into a pyramid (gaussian, laplacian, QMF/wavelet, % or steerable). Subbands are numbered consecutively, from finest % (highest spatial frequency) to coarsest (lowest spatial frequency). % Eero Simoncelli, 1/03. function pyr = setPyrB...
github
jtyuan/deblur-master
var2.m
.m
deblur-master/denoise/matlabPyrTools/var2.m
390
utf_8
de26727e055081aa670024c273f0e885
% V = VAR2(MTX,MEAN) % % Sample variance of a matrix. % Passing MEAN (optional) makes the calculation faster. function res = var2(mtx, mn) if (exist('mn') ~= 1) mn = mean2(mtx); end if (isreal(mtx)) res = sum(sum(abs(mtx-mn).^2)) / max((prod(size(mtx)) - 1),1); else res = sum(sum(real(mtx-mn).^2)) + i*sum(su...
github
jtyuan/deblur-master
reconSFpyrLevs.m
.m
deblur-master/denoise/matlabPyrTools/reconSFpyrLevs.m
2,016
utf_8
ff83a4f3d2f0927dcaa8851535e6b20a
% RESDFT = reconSFpyrLevs(PYR,INDICES,LOGRAD,XRCOS,YRCOS,ANGLE,NBANDS,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSFpyr, and is not usually % called directly. % Eero Simoncelli, 5/97. function resdft = reconSFpyrLevs(pyr,pind,log_rad,Xr...
github
jtyuan/deblur-master
rcosFn.m
.m
deblur-master/denoise/matlabPyrTools/rcosFn.m
1,122
utf_8
36283e0a34f1baf7ea2c5e6cb23aab89
% [X, Y] = rcosFn(WIDTH, POSITION, VALUES) % % Return a lookup table (suitable for use by INTERP1) % containing a "raised cosine" soft threshold function: % % Y = VALUES(1) + (VALUES(2)-VALUES(1)) * % cos^2( PI/2 * (X - POSITION + WIDTH)/WIDTH ) % % WIDTH is the width of the region over which the tra...
github
jtyuan/deblur-master
wpyrLev.m
.m
deblur-master/denoise/matlabPyrTools/wpyrLev.m
729
utf_8
77f309b76f98f3421e786fde4fe2d429
% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL) % % Access a level from a separable QMF/wavelet pyramid. % Return as an SxB matrix, B = number of bands, S = total size of a band. % Also returns an Bx2 matrix containing dimensions of the subbands. % Eero Simoncelli, 6/96. function [lev,ind] = wpyrLev(pyr,pind,level) if ((p...
github
jtyuan/deblur-master
binomialFilter.m
.m
deblur-master/denoise/matlabPyrTools/binomialFilter.m
309
utf_8
47b67219b2519bd65a435f3df318d41a
% KERNEL = binomialFilter(size) % % Returns a vector of binomial coefficients of order (size-1) . % Eero Simoncelli, 2/97. function [kernel] = binomialFilter(sz) if (sz < 2) error('size argument must be larger than 1'); end kernel = [0.5 0.5]'; for n=1:sz-2 kernel = conv([0.5 0.5]', kernel); end
github
jtyuan/deblur-master
cconv2.m
.m
deblur-master/denoise/matlabPyrTools/cconv2.m
1,325
utf_8
8e564b623ba5cebd51e585eac6c66ba8
% RES = CCONV2(MTX1, MTX2, CTR) % % Circular convolution of two matrices. Result will be of size of % LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % argument: % CTR origin % 0 DIM/2 (defaul...
github
jtyuan/deblur-master
reconSCFpyr.m
.m
deblur-master/denoise/matlabPyrTools/reconSCFpyr.m
4,475
utf_8
a0a6a06af4b5c9f7aa195bb8188fc754
% RES = reconSCFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % The inverse of buildSCFpyr: Reconstruct image from its complex steerable pyramid representation, % in the Fourier domain. % % The image is reconstructed by forcing the complex subbands to be analytic % (zero on half of the 2D Fourier plane, as they are supossed...
github
jtyuan/deblur-master
buildSCFpyr.m
.m
deblur-master/denoise/matlabPyrTools/buildSCFpyr.m
2,713
utf_8
d94b4004138b50b6651511e8ba6ccb93
% [PYR, INDICES, STEERMTX, HARMONICS] = buildSCFpyr(IM, HEIGHT, ORDER, TWIDTH) % % This is a modified version of buildSFpyr, that constructs a % complex-valued steerable pyramid using Hilbert-transform pairs % of filters. Note that the imaginary parts will *not* be steerable. % % To reconstruct from this representati...
github
jtyuan/deblur-master
showIm.m
.m
deblur-master/denoise/matlabPyrTools/showIm.m
6,111
utf_8
15fbbf55e2fd54e3f48ca936e23c3f32
% RANGE = showIm (MATRIX, RANGE, ZOOM, LABEL, NSHADES ) % % Display a MatLab MATRIX as a grayscale image in the current figure, % inside the current axes. If MATRIX is complex, the real and imaginary % parts are shown side-by-side, with the same grayscale mapping. % % If MATRIX is a string, it should be the name of...
github
jtyuan/deblur-master
pyrLow.m
.m
deblur-master/denoise/matlabPyrTools/pyrLow.m
287
utf_8
b3514ec06e2e106d7b61e534cac20a8e
% RES = pyrLow(PYR, INDICES) % % Access the lowpass subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function res = pyrLow(pyr,pind) band = size(pind,1); res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) );
github
jtyuan/deblur-master
pgmRead.m
.m
deblur-master/denoise/matlabPyrTools/pgmRead.m
1,259
utf_8
6f07c13cf0f5d8930a46ac0d778bf86f
% IM = pgmRead( FILENAME ) % % Load a pgm image into a MatLab matrix. % This format is accessible from the XV image browsing utility. % Only works for 8bit gray images (raw or ascii) % Hany Farid, Spring '96. Modified by Eero Simoncelli, 6/96. function im = pgmRead( fname ); [fid,msg] = fopen( fname, 'r' ); ...
github
jtyuan/deblur-master
upConv.m
.m
deblur-master/denoise/matlabPyrTools/upConv.m
2,779
utf_8
34137e966f38700416bfb0ebb72663ee
% RES = upConv(IM, FILT, EDGES, STEP, START, STOP, RES) % % Upsample matrix IM, followed by convolution with matrix FILT. These % arguments should be 1D or 2D matrices, and IM must be larger (in % both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string determinin...
github
jtyuan/deblur-master
mean2.m
.m
deblur-master/denoise/matlabPyrTools/mean2.m
97
utf_8
cacc007ef6e32ba40a1e0da3b3d80a0e
% M = MEAN2(MTX) % % Sample mean of a matrix. function res = mean2(mtx) res = mean(mean(mtx));
github
jtyuan/deblur-master
range2.m
.m
deblur-master/denoise/matlabPyrTools/range2.m
523
utf_8
b9f23c3a4f73bf568a1b5793f516aa80
% [MIN, MAX] = range2(MTX) % % Compute minimum and maximum values of MTX, returning them as a 2-vector. % Eero Simoncelli, 3/97. function [mn, mx] = range2(mtx) %% NOTE: THIS CODE IS NOT ACTUALLY USED! (MEX FILE IS CALLED INSTEAD) fprintf(1,'WARNING: You should compile the MEX version of "range2.c",\n found...
github
jtyuan/deblur-master
buildSCFpyrLevs.m
.m
deblur-master/denoise/matlabPyrTools/buildSCFpyrLevs.m
2,187
utf_8
26747285064a0eaa2f3db75013e80849
% [PYR, INDICES] = buildSCFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSCFpyr, and is not usually called directly. % Original code: Eero Simoncelli, 5/97. % Modified by Javier Portilla to generate complex b...
github
jtyuan/deblur-master
clip.m
.m
deblur-master/denoise/matlabPyrTools/clip.m
814
utf_8
13c82937ba69d5bc8c94b2ccca783e1b
% [RES] = clip(IM, MINVALorRANGE, MAXVAL) % % Clip values of matrix IM to lie between minVal and maxVal: % RES = max(min(IM,MAXVAL),MINVAL) % The first argument can also specify both min and max, as a 2-vector. % If only one argument is passed, the range defaults to [0,1]. function res = clip(im, minValOrRange, m...
github
jtyuan/deblur-master
upBlur.m
.m
deblur-master/denoise/matlabPyrTools/upBlur.m
1,213
utf_8
7b07d26940520537edb6e8dc25b72242
% RES = upBlur(IM, LEVELS, FILT) % % Upsample and blur an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution kern...
github
jtyuan/deblur-master
nextFig.m
.m
deblur-master/denoise/matlabPyrTools/nextFig.m
363
utf_8
94a66b00983cd3840ff1cc88f118a022
% nextFig (MAXFIGS, SKIP) % % Make figure number mod((GCF+SKIP), MAXFIGS) the current figure. % MAXFIGS is optional, and defaults to 2. % SKIP is optional, and defaults to 1. % Eero Simoncelli, 2/97. function nextFig(maxfigs, skip) if (exist('maxfigs') ~= 1) maxfigs = 2; end if (exist('skip') ~= 1) skip = 1;...
github
jtyuan/deblur-master
zconv2.m
.m
deblur-master/denoise/matlabPyrTools/zconv2.m
1,164
utf_8
cd266795530db4cb146c1038383316f3
% RES = ZCONV2(MTX1, MTX2, CTR) % % Convolution of two matrices, with boundaries handled as if the larger mtx % lies in a sea of zeros. Result will be of size of LARGER vector. % % The origin of the smaller matrix is assumed to be its center. % For even dimensions, the origin is determined by the CTR (optional) % arg...
github
jtyuan/deblur-master
mkZonePlate.m
.m
deblur-master/denoise/matlabPyrTools/mkZonePlate.m
633
utf_8
d88329c8d374e54e124222c825679768
% IM = mkZonePlate(SIZE, AMPL, PHASE) % % Make a "zone plate" image: % AMPL * cos( r^2 + PHASE) % SIZE specifies the matrix size, as for zeros(). % AMPL (default = 1) and PHASE (default = 0) are optional. % Eero Simoncelli, 6/96. function [res] = mkZonePlate(sz, ampl, ph) sz = sz(:); if (size(sz,1) == 1) sz ...
github
jtyuan/deblur-master
steer2HarmMtx.m
.m
deblur-master/denoise/matlabPyrTools/steer2HarmMtx.m
1,803
utf_8
35816be985c308717168260dc97419d8
% MTX = steer2HarmMtx(HARMONICS, ANGLES, REL_PHASES) % % Compute a steering matrix (maps a directional basis set onto the % angular Fourier harmonics). HARMONICS is a vector specifying the % angular harmonics contained in the steerable basis/filters. ANGLES % (optional) is a vector specifying the angular position of...
github
jtyuan/deblur-master
mkAngularSine.m
.m
deblur-master/denoise/matlabPyrTools/mkAngularSine.m
845
utf_8
78a5e0afe3fef5c42804516e2ea1ccc8
% IM = mkAngularSine(SIZE, HARMONIC, AMPL, PHASE, ORIGIN) % % Make an angular sinusoidal image: % AMPL * sin( HARMONIC*theta + PHASE), % where theta is the angle about the origin. % SIZE specifies the matrix size, as for zeros(). % AMPL (default = 1) and PHASE (default = 0) are optional. % Eero Simoncelli, 2/97....
github
jtyuan/deblur-master
mkRamp.m
.m
deblur-master/denoise/matlabPyrTools/mkRamp.m
1,110
utf_8
28989822e19c604a816a287a4bee873d
% IM = mkRamp(SIZE, DIRECTION, SLOPE, INTERCEPT, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a ramp function, with given gradient DIRECTION % (radians, CW from X-axis, default = 0), SLOPE (per pixel, default = % 1), and a value of INTERCEPT (default = 0) at the...
github
jtyuan/deblur-master
histoMatch.m
.m
deblur-master/denoise/matlabPyrTools/histoMatch.m
858
utf_8
8936fc2eadacc591ecdffe5967726780
% RES = histoMatch(MTX, N, X) % % Modify elements of MTX so that normalized histogram matches that % specified by vectors X and N, where N contains the histogram counts % and X the histogram bin positions (see histo). % Eero Simoncelli, 7/96. function res = histoMatch(mtx, N, X) if ( exist('histo') == 3 ) [oN, oX]...
github
jtyuan/deblur-master
subMtx.m
.m
deblur-master/denoise/matlabPyrTools/subMtx.m
420
utf_8
c660029ce728dcb8c540c9cf419fa7bc
% MTX = subMtx(VEC, DIMENSIONS, START_INDEX) % % Reshape a portion of VEC starting from START_INDEX (optional, % default=1) to the given dimensions. % Eero Simoncelli, 6/96. function mtx = subMtx(vec, sz, offset) if (exist('offset') ~= 1) offset = 1; end vec = vec(:); sz = sz(:); if (size(sz,1) ~= 2) error('D...
github
jtyuan/deblur-master
showLpyr.m
.m
deblur-master/denoise/matlabPyrTools/showLpyr.m
5,421
utf_8
0646b94ae144cf6160a44f50e67f8dd5
% RANGE = showLpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a Laplacian (or Gaussian) pyramid, specified by PYR and % INDICES (see buildLpyr), in the current figure. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled by % LEVEL_SCALE_F...
github
jtyuan/deblur-master
sp1Filters.m
.m
deblur-master/denoise/matlabPyrTools/sp1Filters.m
9,435
utf_8
81cfbf726744492bee2374b9b564ebdf
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
jtyuan/deblur-master
spyrHt.m
.m
deblur-master/denoise/matlabPyrTools/spyrHt.m
305
utf_8
06e83c1f45c1a99e242fa7ea37093a11
% [HEIGHT] = spyrHt(INDICES) % % Compute height of steerable pyramid with given index matrix. % Eero Simoncelli, 6/96. function [ht] = spyrHt(pind) nbands = spyrNumBands(pind); % Don't count lowpass, or highpass residual bands if (size(pind,1) > 2) ht = (size(pind,1)-2)/nbands; else ht = 0; end
github
jtyuan/deblur-master
spyrBand.m
.m
deblur-master/denoise/matlabPyrTools/spyrBand.m
819
utf_8
7d15b24244e521c9e85c68b3037f569b
% [LEV,IND] = spyrBand(PYR,INDICES,LEVEL,BAND) % % Access a band from a steerable pyramid. % % LEVEL indicates the scale (finest = 1, coarsest = spyrHt(INDICES)). % % BAND (optional, default=1) indicates which subband % (1 = vertical, rest proceeding anti-clockwise). % Eero Simoncelli, 6/96. function res =...
github
jtyuan/deblur-master
wpyrBand.m
.m
deblur-master/denoise/matlabPyrTools/wpyrBand.m
873
utf_8
12e08d90ccd6261b737e2d3c5ac5b1e7
% RES = wpyrBand(PYR, INDICES, LEVEL, BAND) % % Access a subband from a separable QMF/wavelet pyramid. % % LEVEL (optional, default=1) indicates the scale (finest = 1, % coarsest = wpyrHt(INDICES)). % % BAND (optional, default=1) indicates which subband (1=horizontal, % 2=vertical, 3=diagonal). % Eero Simoncelli...
github
jtyuan/deblur-master
skew2.m
.m
deblur-master/denoise/matlabPyrTools/skew2.m
478
utf_8
b304767117ab43e408c5757ab9e3402d
% S = SKEW2(MTX,MEAN,VAR) % % Sample skew (third moment divided by variance^3/2) of a matrix. % MEAN (optional) and VAR (optional) make the computation faster. function res = skew2(mtx, mn, v) if (exist('mn') ~= 1) mn = mean2(mtx); end if (exist('v') ~= 1) v = var2(mtx,mn); end if (isreal(mtx)) res = mean(...
github
jtyuan/deblur-master
imStats.m
.m
deblur-master/denoise/matlabPyrTools/imStats.m
1,217
utf_8
aab8c3264c5939806bbca5657c925734
% imStats(IM1,IM2) % % Report image (matrix) statistics. % When called on a single image IM1, report min, max, mean, stdev, skew, % and kurtosis (4th moment about the mean, divided by squared variance) % % When called on two images (IM1 and IM2), report min, max, mean, % stdev of the difference, and also SNR (relative...
github
jtyuan/deblur-master
innerProd.m
.m
deblur-master/denoise/matlabPyrTools/innerProd.m
314
utf_8
e2ea166f9b3ddbc08cb54ef697343d06
% RES = innerProd(MTX) % % Compute (MTX' * MTX) efficiently (i.e., without copying the matrix) % % NOTE: This function used to call a MEX function (C code) to avoid copying, but % newer versions of matlab have eliminated the overhead of the % simpler form below. function res = innerProd(mtx) res = mtx' * mtx;
github
jtyuan/deblur-master
reconSFpyr.m
.m
deblur-master/denoise/matlabPyrTools/reconSFpyr.m
3,114
utf_8
ebb08817efc597692b9026a84e2a6906
% RES = reconSFpyr(PYR, INDICES, LEVS, BANDS, TWIDTH) % % Reconstruct image from its steerable pyramid representation, in the Fourier % domain, as created by buildSFpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each subband...
github
jtyuan/deblur-master
corrDn.m
.m
deblur-master/denoise/matlabPyrTools/corrDn.m
2,272
utf_8
cce615994bded51a721560b782ea9eef
% RES = corrDn(IM, FILT, EDGES, STEP, START, STOP) % % Compute correlation of matrices IM with FILT, followed by % downsampling. These arguments should be 1D or 2D matrices, and IM % must be larger (in both dimensions) than FILT. The origin of filt % is assumed to be floor(size(filt)/2)+1. % % EDGES is a string dete...
github
jtyuan/deblur-master
vectify.m
.m
deblur-master/denoise/matlabPyrTools/vectify.m
186
utf_8
1da0e519af06d6baaff1decc40dc3702
% [VEC] = columnize(MTX) % % Pack elements of MTX into a column vector. Just provides a % function-call notatoin for the operation MTX(:) function vec = columnize(mtx) vec = mtx(:);
github
jtyuan/deblur-master
maxPyrHt.m
.m
deblur-master/denoise/matlabPyrTools/maxPyrHt.m
603
utf_8
019e5ce9d036a893ec979c63f51ff54a
% HEIGHT = maxPyrHt(IMSIZE, FILTSIZE) % % Compute maximum pyramid height for given image and filter sizes. % Specifically: the number of corrDn operations that can be sequentially % performed when subsampling by a factor of 2. % Eero Simoncelli, 6/96. function height = maxPyrHt(imsz, filtsz) imsz = imsz(:); filtsz =...
github
jtyuan/deblur-master
buildSpyrLevs.m
.m
deblur-master/denoise/matlabPyrTools/buildSpyrLevs.m
861
utf_8
a5fa1e98161a8137e666c1406c28a748
% [PYR, INDICES] = buildSpyrLevs(LOIM, HEIGHT, LOFILT, BFILTS, EDGES) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSpyr, and is not usually called directly. % Eero Simoncelli, 6/96. function [pyr,pind] = buildSpyrLevs(lo0,ht,lofilt,bfilts,edges); if (ht <= 0) py...
github
jtyuan/deblur-master
showSpyr.m
.m
deblur-master/denoise/matlabPyrTools/showSpyr.m
5,213
utf_8
bc643d88c491a55c0a0abb5e86c91757
% RANGE = showSpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a steerable pyramid, specified by PYR and INDICES % (see buildSpyr), in the current figure. The highpass band is not shown. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled...
github
jtyuan/deblur-master
histo.m
.m
deblur-master/denoise/matlabPyrTools/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
jtyuan/deblur-master
lplot.m
.m
deblur-master/denoise/matlabPyrTools/lplot.m
1,009
utf_8
87c83936af0b318d55077862065b56df
% lplot(VEC, XRANGE) % % Plot VEC, a vector, in "lollipop" format. % XRANGE (optional, default = [1,length(VEC)]), should be a 2-vector % specifying the X positions (for labeling purposes) of the first and % last sample of VEC. % Mark Liberman, Linguistics Dept, UPenn, 1994. function lplot(x,xrange) if (exist('...
github
jtyuan/deblur-master
blurDn.m
.m
deblur-master/denoise/matlabPyrTools/blurDn.m
1,364
utf_8
d528010bfd2b4c50e7dbb2aede757214
% RES = blurDn(IM, LEVELS, FILT) % % Blur and downsample an image. The blurring is done with filter % kernel specified by FILT (default = 'binom5'), which can be a string % (to be passed to namedFilter), a vector (applied separably as a 1D % convolution kernel in X and Y), or a matrix (applied as a 2D % convolution ke...
github
jtyuan/deblur-master
reconSpyrLevs.m
.m
deblur-master/denoise/matlabPyrTools/reconSpyrLevs.m
1,126
utf_8
1f10e3cea5d79a4f4a30d979f3bb1298
% RES = reconSpyrLevs(PYR,INDICES,LOFILT,BFILTS,EDGES,LEVS,BANDS) % % Recursive function for reconstructing levels of a steerable pyramid % representation. This is called by reconSpyr, and is not usually % called directly. % Eero Simoncelli, 6/96. function res = reconSpyrLevs(pyr,pind,lofilt,bfilts,edges,levs,bands)...
github
jtyuan/deblur-master
mkSine.m
.m
deblur-master/denoise/matlabPyrTools/mkSine.m
1,725
utf_8
35c6d83f70860ab6defcbdcf7366d89e
% IM = mkSine(SIZE, PERIOD, DIRECTION, AMPLITUDE, PHASE, ORIGIN) % or % IM = mkSine(SIZE, FREQ, AMPLITUDE, PHASE, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of a 2D sinusoid, with given PERIOD (in pixels), % DIRECTION (radians, CW from X-axis, default = 0),...
github
jtyuan/deblur-master
buildSFpyrLevs.m
.m
deblur-master/denoise/matlabPyrTools/buildSFpyrLevs.m
1,891
utf_8
52ab858761411b2a5a75e7de641259cf
% [PYR, INDICES] = buildSFpyrLevs(LODFT, LOGRAD, XRCOS, YRCOS, ANGLE, HEIGHT, NBANDS) % % Recursive function for constructing levels of a steerable pyramid. This % is called by buildSFpyr, and is not usually called directly. % Eero Simoncelli, 5/97. function [pyr,pind] = buildSFpyrLevs(lodft,log_rad,Xrcos,Yrcos,angl...
github
jtyuan/deblur-master
pixelAxes.m
.m
deblur-master/denoise/matlabPyrTools/pixelAxes.m
1,983
utf_8
1b2a2bfddd425fee2ccd276f3948cec7
% [ZOOM] = pixelAxes(DIMS, ZOOM) % % Set the axes of the current plot to cover a multiple of DIMS pixels, % thereby eliminating screen aliasing artifacts when displaying an % image of size DIMS. % % ZOOM (optional, default='same') expresses the desired number of % samples displayed per screen pixel. It should be a ...
github
jtyuan/deblur-master
pyrBandIndices.m
.m
deblur-master/denoise/matlabPyrTools/pyrBandIndices.m
589
utf_8
28f90484526c294bdb24bdbf8014012d
% RES = pyrBandIndices(INDICES, BAND_NUM) % % Return indices for accessing a subband from a pyramid % (gaussian, laplacian, QMF/wavelet, steerable). % Eero Simoncelli, 6/96. function indices = pyrBandIndices(pind,band) if ((band > size(pind,1)) | (band < 1)) error(sprintf('BAND_NUM must be between 1 and number o...
github
jtyuan/deblur-master
pointOp.m
.m
deblur-master/denoise/matlabPyrTools/pointOp.m
1,207
utf_8
f3b4f566bebca0b7f56477785bb89fc5
% RES = pointOp(IM, LUT, ORIGIN, INCREMENT, WARNINGS) % % Apply a point operation, specified by lookup table LUT, to image IM. % LUT must be a row or column vector, and is assumed to contain % (equi-spaced) samples of the function. ORIGIN specifies the % abscissa associated with the first sample, and INCREMENT specifi...
github
jtyuan/deblur-master
reconWpyr.m
.m
deblur-master/denoise/matlabPyrTools/reconWpyr.m
3,992
utf_8
859a606f214bce204ce3c9ea18c0fc87
% RES = reconWpyr(PYR, INDICES, FILT, EDGES, LEVS, BANDS) % % Reconstruct image from its separable orthonormal QMF/wavelet pyramid % representation, as created by buildWpyr. % % PYR is a vector containing the N pyramid subbands, ordered from fine % to coarse. INDICES is an Nx2 matrix containing the sizes of % each sub...
github
jtyuan/deblur-master
showWpyr.m
.m
deblur-master/denoise/matlabPyrTools/showWpyr.m
5,491
utf_8
4bc0b260425f553810ae04afced17fda
% RANGE = showWpyr (PYR, INDICES, RANGE, GAP, LEVEL_SCALE_FACTOR) % % Display a separable QMF/wavelet pyramid, specified by PYR and INDICES % (see buildWpyr), in the current figure. % % RANGE is a 2-vector specifying the values that map to black and % white, respectively. These values are scaled by % LEVEL_SCALE_FAC...
github
jtyuan/deblur-master
imGradient.m
.m
deblur-master/denoise/matlabPyrTools/imGradient.m
1,547
utf_8
b13a85bea09c3f4e0c1e6140c9a31f7a
% [dx, dy] = imGradient(im, edges) % % Compute the gradient of the image using smooth derivative filters % optimized for accurate direction estimation. Coordinate system % corresponds to standard pixel indexing: X axis points rightward. Y % axis points downward. EDGES specify boundary handling (see corrDn % for opt...
github
jtyuan/deblur-master
lpyrHt.m
.m
deblur-master/denoise/matlabPyrTools/lpyrHt.m
233
utf_8
dd0b45926abda2b3fe9aaec0a4f4d214
% [HEIGHT] = lpyrHt(INDICES) % % Compute height of Laplacian pyramid with given its INDICES matrix. % See buildLpyr.m % Eero Simoncelli, 6/96. function [ht] = lpyrHt(pind) % Don't count lowpass residual band ht = size(pind,1)-1;
github
jtyuan/deblur-master
buildGpyr.m
.m
deblur-master/denoise/matlabPyrTools/buildGpyr.m
1,931
utf_8
3f1cfe5507fe34b51d71a87d955abbf5
% [PYR, INDICES] = buildGpyr(IM, HEIGHT, FILT, EDGES) % % Construct a Gaussian pyramid on matrix IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is 1+maxPyrHt(size(IM),size(FILT)). % You can also specify 'auto' to use this value. % % FILT (optional) can be a string naming a standar...
github
jtyuan/deblur-master
shift.m
.m
deblur-master/denoise/matlabPyrTools/shift.m
438
utf_8
2ac42b171e4ca683ef1d361eaf331870
% [RES] = shift(MTX, OFFSET) % % Circular shift 2D matrix samples by OFFSET (a [Y,X] 2-vector), % such that RES(POS) = MTX(POS-OFFSET). function res = shift(mtx, offset) dims = size(mtx); offset = mod(-offset,dims); res = [ mtx(offset(1)+1:dims(1), offset(2)+1:dims(2)), ... mtx(offset(1)+1:dims(1), 1:o...
github
jtyuan/deblur-master
namedFilter.m
.m
deblur-master/denoise/matlabPyrTools/namedFilter.m
3,207
utf_8
8f45ef65fca60f53e0f734c4f1ae01bf
% KERNEL = NAMED_FILTER(NAME) % % Some standard 1D filter kernels. These are scaled such that % their L2-norm is 1.0. % % binomN - binomial coefficient filter of order N-1 % haar: - Haar wavelet. % qmf8, qmf12, qmf16 - Symmetric Quadrature Mirror Filters [Johnston80] % daub2,daub3,daub4 -...
github
jtyuan/deblur-master
buildLpyr.m
.m
deblur-master/denoise/matlabPyrTools/buildLpyr.m
2,632
utf_8
b62aad457634fd598b373448741860cd
% [PYR, INDICES] = buildLpyr(IM, HEIGHT, FILT1, FILT2, EDGES) % % Construct a Laplacian pyramid on matrix (or vector) IM. % % HEIGHT (optional) specifies the number of pyramid levels to build. Default % is 1+maxPyrHt(size(IM),size(FILT)). You can also specify 'auto' to % use this value. % % FILT1 (optional) can be a s...
github
jtyuan/deblur-master
mkAngle.m
.m
deblur-master/denoise/matlabPyrTools/mkAngle.m
788
utf_8
126297224256c6e9077dc58f4094c39a
% IM = mkAngle(SIZE, PHASE, ORIGIN) % % Compute a matrix of dimension SIZE (a [Y X] 2-vector, or a scalar) % containing samples of the polar angle (in radians, CW from the % X-axis, ranging from -pi to pi), relative to angle PHASE (default = % 0), about ORIGIN pixel (default = (size+1)/2). % Eero Simoncelli, 6/96. fu...
github
jtyuan/deblur-master
wpyrHt.m
.m
deblur-master/denoise/matlabPyrTools/wpyrHt.m
270
utf_8
18e1a724afee99389db70484333eb05a
% [HEIGHT] = wpyrHt(INDICES) % % Compute height of separable QMF/wavelet pyramid with given index matrix. % Eero Simoncelli, 6/96. function [ht] = wpyrHt(pind) if ((pind(1,1) == 1) | (pind(1,2) ==1)) nbands = 1; else nbands = 3; end ht = (size(pind,1)-1)/nbands;
github
jtyuan/deblur-master
sp0Filters.m
.m
deblur-master/denoise/matlabPyrTools/sp0Filters.m
6,140
utf_8
0c5cd7bafff21efacd2a8ec71af90f49
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
jtyuan/deblur-master
sp5Filters.m
.m
deblur-master/denoise/matlabPyrTools/sp5Filters.m
6,949
utf_8
305fb0c0ca0709fc34ca6c5b4bb91712
% Steerable pyramid filters. Transform described in: % % @INPROCEEDINGS{Simoncelli95b, % TITLE = "The Steerable Pyramid: A Flexible Architecture for % Multi-Scale Derivative Computation", % AUTHOR = "E P Simoncelli and W T Freeman", % BOOKTITLE = "Second Int'l Conf on Image Processing", % ADDRESS = "Washington, DC"...
github
jtyuan/deblur-master
steer.m
.m
deblur-master/denoise/matlabPyrTools/steer.m
1,990
utf_8
3db4dd948e0ece7c7237330b7d4f191e
% RES = STEER(BASIS, ANGLE, HARMONICS, STEERMTX) % % Steer BASIS to the specfied ANGLE. % % BASIS should be a matrix whose columns are vectorized rotated copies of a % steerable function, or the responses of a set of steerable filters. % % ANGLE can be a scalar, or a column vector the size of the basis. % % HARMO...