diff options
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m')
-rwxr-xr-x | SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m b/SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m new file mode 100755 index 0000000..6837e8a --- /dev/null +++ b/SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m | |||
@@ -0,0 +1,7 @@ | |||
1 | function J = reduce(I) | ||
2 | |||
3 | [nr,nc,nb] = size(I); | ||
4 | for j=1:nb, | ||
5 | tmp = gauss_lowpass(I(:,:,j)); | ||
6 | J(:,:,j) = tmp(1:2:nr,1:2:nc); | ||
7 | end \ No newline at end of file | ||