annotate arrows/@asampler/construct.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 672052bd81f8
children
rev   line source
samer@0 1 function u=construct(s,sizes_in)
samer@0 2 u=mkunit(s);
samer@0 3 sz=s.sz; fn=s.fn;
samer@0 4 u.sizes_out = guess_sizes(fn,sz);
samer@0 5 u.process = @proc;
samer@0 6
samer@0 7 function out=proc, out=fn(sz); end
samer@0 8 end
samer@0 9
samer@0 10 function sz_out=guess_sizes(fn,sz)
samer@0 11 out = fn(sz);
samer@0 12 sz_out = {size(out)};
samer@0 13 end
samer@0 14