- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I am new to ipp, I am trying to add the RGB values of a planar color image to a single plane.
ie I have a 3 plane color image with R0,R1, R2... G0,G1,G2,... B0,B1,B2,...
now I need to sum these color maps so that i get R0+G0+B0, R1+G1+B1, R2+G2+B2,.....
Is there any Ipp function for the same ?
Thanks in Advance
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may utilize IPP by converting indirect, using YUV422 as an intermediate common format for IPP.
first: convert your planar RGB into YUV422 using (ippiRGBToYUV422_8u_P3)
then: convert the resulted YUV422 plans into your target packed RGB using (ippiYUV422ToRGB_8u_P3C3)
refer to Image and Video Processing manual, I hope this works for you.
Regards,
Tamer Assad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will try the above solutions and see if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I use the function ippiSumWindowColumn by any chance for the same purpose for summing up the RGB values from the 3 channels?
Not sure how this functionality works..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sribug,
Converting your planar RGB into packed RGB is a sort operation applied on the indexes.
Assuming that your source planar RGB is: {R0, R1, G0, G1, B0, B1}
The target Packed RGB should be: {R0, G0, B0, R1, G1, B1}
IPP doesnt have a function name for this conversion; Fortunately, ippiCopy() can do it for you directly.
See IPP manual, Image and Video Processing-> Image Data Exchange and Initialization Functions-> Copy()
You just need to utilize Case 7: Composing color image from separate planes
Regards,
Tamer Assad
- 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