SUNY Geneseo Department of Mathematics
Wednesday, October 15
Math 230 01
Fall 2014
Prof. Doug Baldwin
C = chromakey( S, B, r )
% Build matrix w/ 1 where S has color r
M = S == r
% Substitute pixels from B into S where M = 1
C = S.*(1-M) + B.*M
reshape
function