Skip to content

Instantly share code, notes, and snippets.

@strezh
Created January 22, 2014 13:53
Show Gist options
  • Save strezh/8559088 to your computer and use it in GitHub Desktop.
Save strezh/8559088 to your computer and use it in GitHub Desktop.
RGB2YUV
Y = char( 0.257*R + 0.504*G + 0.098*B + 16);
U = char( 0.439*R - 0.368*G - 0.071*B + 128);
V = char(-0.148*R - 0.291*G + 0.439*B + 128);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment