Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int R,G,B;
- B = 1.164*(Y - 16)+ 2.018*(U - 128);
- G = 1.164*(Y - 16) - 0.813*(V - 128) - 0.391*(U - 128);
- R = 1.164*(Y - 16) + 1.596*(V - 128);
- setPixel(i, j+height/2, R, G, B);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement