diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m')
-rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m deleted file mode 100755 index f993d09..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/blur.m +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
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 | |||
13 | function res = blur(im, nlevs, filt) | ||
14 | |||
15 | %------------------------------------------------------------ | ||
16 | %% OPTIONAL ARGS: | ||
17 | |||
18 | if (exist('nlevs') ~= 1) | ||
19 | nlevs = 1; | ||
20 | end | ||
21 | |||
22 | if (exist('filt') ~= 1) | ||
23 | filt = 'binom5'; | ||
24 | end | ||
25 | |||
26 | %------------------------------------------------------------ | ||
27 | |||
28 | res = upBlur(blurDn(im,nlevs,filt)); \ No newline at end of file | ||