summaryrefslogtreecommitdiffstats
path: root/all_pairs
Commit message (Expand)AuthorAge
* Reorganize and commit all the modified TACLeBench code and run scriptsJoshua Bakita2019-10-07
t/cgit.cgi/mc2-scripts-and-benchmarks.git/blame/?h=rtas21-ae&id=d98d0006e4486782f727a1e2a4c1c92641e7bc7f'>root/SD-VBS/common/toolbox/toolbox_basic/filter_hist/BfilterS.m
blob: 4eb4fd66bfe3c51d1f4f37aa8f6c3c7a8ffcf762 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                             
function output = Bfilters(img,H,w)
%
%  function output = Bfilter(img,H,w)
%

sze = size(img);
w_h = round(0.5*(w-1));

Y = fft(reshape(img,1,sze(1)*sze(2)));
C = Y.*conj(H);
c = real(ifft(C));
o = reshape(c,sze(1),sze(2));

output(1:w_h(1),1:w_h(2)) = o(sze(1)-w_h(1)+1:sze(1),sze(2)-w_h(2)+1:sze(2));