EasyManua.ls Logo

Point Grey Flea3 FL3-U3 - BAYER_TILE_MAPPING: 1040 H; Example: Accessing Raw Bayer Data Using Flycapture2

Point Grey Flea3 FL3-U3
173 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Point Grey Flea3 USB 3.0 Technical Reference 7 Imaging Parameters and Control
Title Article
Different color processing algorithms
Knowledge Base Article 33
Writing color processing software and color interpolation algorithms
Knowledge Base Article 37
How is color processing performed on my camera's images?
Knowledge Base Article 89
Related Knowledge Base Articles
7.11.2 BAYER_TILE_MAPPING: 1040h
This 32-bit read only register specifies the sense of the cameras’ Bayer tiling. Various colors are indicated by the ASCII
representation of the first letter of their name.
Color ASCII
Red (R) 52h
Green (G) 47h
Blue (B) 42h
Monochrome (Y) 59h
For example, 0x52474742 is RGGB and 0x59595959 is YYYY.
Because color models support on- board color processing, the camera reports YYYY tiling when
operating in any non-raw Bayer data format. For more information, see Bayer Color Processing on
previous page.
Field Bit Description
Bayer_Sense_A [0-7] ASCII representation of the first letter of the color of pixel (0,0) in the Bayer tile.
Bayer_Sense_B [8-15] ASCII representation of the first letter of the color of pixel (0,1) in the Bayer tile.
Bayer_Sense _C [16-24] ASCII representation of the first letter of the color of pixel (1,0) in the Bayer tile.
Bayer_Sense _D [25-31] ASCII representation of the first letter of the color of pixel (1,1) in the Bayer tile.
Format
7.11.3 Example: Accessing Raw Bayer Data using FlyCapture2
Using the FlyCapture 2 SDK, raw image data can be accessed programmatically via the getData method of the
Image class. In Raw8 modes, the first byte represents the pixel at [row 0, column 0], the second byte at [row 0,
column 1], and so on.
Read the BAYER_TILE_MAPPING register 0x1040 to determine the current Bayer output format (RGGB, GRBG, and so
on). Using a Bayer format of RGGB, for example, thegetData method returns the following (assuming char*
data = rawImage.GetData(); and an Image object rawImage):
n data[0] = Row 0, Column 0 = red pixel (R)
n data[1] = Row 0, Column 1 = green pixel (G)
n data[640] = Row 1, Column 0 = green pixel (G)
n data[641] = Row 1, Column 1 = blue pixel (B)
Revised 9/27/2012
Copyright ©2011-2012 Point Grey Research Inc.
118

Table of Contents

Related product manuals