function [ Y ] = grayscale( frame )

     Y = 0.299 * double( frame(:,:,1) ) + 0.587 * double( frame(:,:,2) ) + 0.114 * double( frame(:,:,3) );

end

