summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m')
-rwxr-xr-xSD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m7
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 @@
1function J = reduce(I)
2
3[nr,nc,nb] = size(I);
4for j=1:nb,
5 tmp = gauss_lowpass(I(:,:,j));
6 J(:,:,j) = tmp(1:2:nr,1:2:nc);
7end \ No newline at end of file