From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m (limited to 'SD-VBS/common/toolbox/toolbox_basic/pyramid/reduce.m') 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 @@ +function J = reduce(I) + +[nr,nc,nb] = size(I); +for j=1:nb, + tmp = gauss_lowpass(I(:,:,j)); + J(:,:,j) = tmp(1:2:nr,1:2:nc); +end \ No newline at end of file -- cgit v1.2.2