Skip to content

Instantly share code, notes, and snippets.

@yohhoy
Last active November 1, 2023 20:41
  • Star 36 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
RGB <=> YCbCr(YPbPr) color space conversion
@Vanilagy
Copy link

Color spaces are the most niche, rabbit holey thing ever, I swear

@danigc98
Copy link

They really are. I feel I will never gain my time back from learning this stuff.

@zhanwang-sky
Copy link

e for BT.2020 should be 1.4746, it can be calculated by the following formula:
e = (1 - a) / 0.5,
d = (1 - c) / 0.5

@yohhoy
Copy link
Author

yohhoy commented Jun 8, 2023

e for BT.2020 should be 1.4746,

Fixed. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment