summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-19 23:09:30 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 02:40:39 -0400
commitf618466c25d43f3bae9e40920273bf77de1e1149 (patch)
tree460e739e2165b8a9c37a9c7ab1b60f5874903543 /SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m
parent47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff)
initial sd-vbs
initial sd-vbs add sd-vbs sd-vbs
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m28
1 files changed, 28 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m
new file mode 100755
index 0000000..f993d09
--- /dev/null
+++ b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m
@@ -0,0 +1,28 @@
1% RES = blur(IM, LEVELS, FILT)
2%
3% Blur an image, by filtering and downsampling LEVELS times
4% (default=1), followed by upsampling and filtering LEVELS times. The
5% blurring is done with filter kernel specified by FILT (default =
6% 'binom5'), which can be a string (to be passed to namedFilter), a
7% vector (applied separably as a 1D convolution kernel in X and Y), or
8% a matrix (applied as a 2D convolution kernel). The downsampling is
9% always by 2 in each direction.
10
11% Eero Simoncelli, 3/04.
12
13function res = blur(im, nlevs, filt)
14
15%------------------------------------------------------------
16%% OPTIONAL ARGS:
17
18if (exist('nlevs') ~= 1)
19 nlevs = 1;
20end
21
22if (exist('filt') ~= 1)
23 filt = 'binom5';
24end
25
26%------------------------------------------------------------
27
28res = upBlur(blurDn(im,nlevs,filt)); \ No newline at end of file