function L=luminocity(C)
% luminocity - Compute perceived brightness of colours
%
% luminocity :: [[N,3]] -> [[N]].

if size(C,2)~=3 && size(C,1)==3, C=C'; end
L=C*[.298936021 .58704307445 .114020904255]';
