This is a discussion on Convert YUV to RGB within the C# Programming forums, part of the Software Development category; I want to convert an image from YUV to RGB and vice versa... can someone help...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| I want to convert an image from YUV to RGB and vice versa... can someone help |
| Sponsored Links |
| |||
| i think this helps.. Algorithm..formula available ..pls search in google RGB-YUV for ( i=0 ; i<8 ; i++ ){ for ( j=0 ; j<8 ; j++ ){ y[i][j]= 0.299 *r[i][j]+0.587 *g[i][j]+0.114 *b[i][j] ; u[i][j]=-0.1687*r[i][j]-0.3313*g[i][j]+0.5 *b[i][j]+128; v[i][j]= 0.5 *r[i][j]-0.4187*g[i][j]-0.0813*b[i][j]+128; } } YUV-RGB for ( i=0 ; i<8 ; i++ ){ for ( j=0 ; j<8 ; j++ ){ r[i][j]=y[i][j] +1.402 *(v[i][j]-128); g[i][j]=y[i][j]-0.34414*(u[i][j]-128)-0.71414*(v[i][j]-128); b[i][j]=y[i][j]+1.772 *(u[i][j]-128) ; } } }
__________________ The MOSS Master of Solution Service |
| |||
| ok..thanks...i try this to implement in C# and let u know |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert int[] into byte[] using C# | bluesky | C# Programming | 2 | 08-23-2007 01:18 AM |
| How to convert C source to C# ? | oxygen | C# Programming | 1 | 07-30-2007 04:34 AM |
| How can you convert them to another format? | devarajan.v | PHP Programming | 1 | 07-26-2007 10:33 AM |
| Convert XML to JSON in PHP | ramkumaraol | PHP Programming | 0 | 07-17-2007 12:10 AM |
| File convert | varghese | PHP Programming | 0 | 07-11-2007 04:11 AM |