Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
6656 Discussions

IPP Function to convert from raw 8-bit RGB to 24-bit full RGB values?

jwmcfar
Beginner
265 Views
We've got a raw image buffer coming from one of our cameras.
The data is in a raw RGB format. IIRC, this is a pretty standard format where each pixel only picks up one color, and stores that in an 8-bit value.
I believe it's stored in the following pixel order:
RGRGRGRG.... and so on for that row
GBGBGBGB.... and so on for the next row.
Is there an IPP library function that will take theses 8 bit values and automatically expand them to the full 24-bit RGB value?
It'd be something pretty simple to write a function for, but I wanted to make sure I'm not duplicating work.
0 Kudos
4 Replies
Vladimir_Dudnik
Employee
265 Views

I'm not completely understood the format. Is it kind of down-sampled image format (As I can see G is twice more than R or B)?

Vladimir

napoleon9th
Beginner
265 Views
Maybe the third row is BRBRBRBR...., and then again RGRG..., GBGB..., BRBR..., and so on! ;)

Message Edited by Napoleon9th on 12-20-2005 07:13 PM

Vladimir_Dudnik
Employee
265 Views

May be yes may be no. How to look for IPP function if it is not clear what data format?

I'm sure wedon't have special function for every possible format. Probably you can use some combination of IPP functions. Basically, as I can see,you need to split interleaved color channels into planes and after that to interleave them again in RGBRGBRGB order.

Vladimir

Message Edited by vdudnik on 12-20-2005 09:56 AM

support2
Beginner
265 Views

BAYER Format ?

As described it seems coherent with one of the four BAYER mosaic format.

#define

PatternOrigin_poGB 0 // Bayer Image starts with a GBGB row

#define

PatternOrigin_poGR 1 // Bayer Image starts with a GRGR row

#define

PatternOrigin_poBG 2 // Bayer Image starts with a BGBG row

#define

PatternOrigin_poRG 3 // Bayer Image starts with a RGRG row

SRSR

Reply