- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 rowSRSR
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page