Blame view

src/g_stabilize/g_down.m 155 Bytes
7d7ce63d   Daniel Bourgault   First commit
1
function[ f ] = g_down( f, L );
0f098f65   Dany Dumont   g_stabilize a ete...
2

7d7ce63d   Daniel Bourgault   First commit
3
blur = [1 2 1]/4;
0f098f65   Dany Dumont   g_stabilize a ete...
4

7d7ce63d   Daniel Bourgault   First commit
5
for k = 1 : L
0f098f65   Dany Dumont   g_stabilize a ete...
6
7
    f = conv2( conv2( f, blur, 'same' ), blur', 'same' );
    f = f(1:2:end,1:2:end);
7d7ce63d   Daniel Bourgault   First commit
8
end