Mercurial > hg > ishara
view arrows/asubsample.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 672052bd81f8 |
children |
line wrap: on
line source
% asubsample - Arrow to subsample input sequence. % % asubsample :: natural -> arrow({A},{box(A)},natural). function o=asubsample(N) o=loop(@barrier,@(sz)0); function [y,s]=barrier(x,s) if s==0, y={x}; s=N-1; else s=s-1; y={}; end end end