%function subsample, just decimating the input image
function g1 = subsample(g0)

[C,R]=size(g0);
g1=g0(2:2:C,2:2:R);
