- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
you can consider to useIPP functions like ippiBGRToYCbCr411_8u_AC4P3R or ippiBGRToYCbCr420_8u_AC4P3R
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the response.
I guess I'm not 100% sure. I need the image to be in YUV420 format so I've been using calls like ippiRGBToYUV420. Is there much of a difference b/w YUV420 and YCbCr420?
Perhaps I'm doing something wrong but I can'ty get ippiBGRToYCbCr420_8u_AC4P3R to compile. "error C3861: 'ippiBGRToYCbCr420_8u_AC4P3R': identifier not found, even with argument-dependent lookup". ??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I found and fixed my compile problem. It works but the resulting image is more "washed-out" than if I removed the alpha channel using ippiCopy_8u_AC4C3R and then converted using ippiRGBToYUV420_8u_C3P3R. Do you have a guess why this might be?
thanks,
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Brian,
what do you mean under "washed-out"? Could you please attache sample of incorrect frame (and correct one if you have).
Thanks,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I attached my code as blend_snippet
The "washed out" bitmap (output_ycbcr.bmp)was created using ippiBGRToYCbCr420_8u_AC4P3R
The other bitmap (output_copy_removes_alpha.bmp) uses a copy to remove the alpha and then converts using ippiRGBToYUV420_8u_C3P3R.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
// Cb = -0.148*R' - 0.291*G' + 0.439*B' + 128
// Cr = 0.439*R' - 0.368*G' - 0.071*B' + 128
// U = -0.147*R' - 0.289*G' + 0.436*B' = 0.492*(B' - Y' )
// V = 0.615*R' - 0.515*G' - 0.100*B' = 0.877*(R' - Y' )
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page