view sinks/@sink/or.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
% or - parallel sink combinator
function s=or(s1,s2), 
	c1=1:channels(s1);
	c2=channels(s1) + (1:channels(s2));
	s=sinkbinop(@vertsplit,@plus,s1,s2);
	function [y1,y2]=vertsplit(x)
		y1=x(c1,:);
		y2=x(c2,:);
	end
end