04-23-2010 02:55 PM
04-23-2010 03:00 PM
When you set the camera to do the debayering for you, it interpolates the single 8 bit RAW value into a 3-tuple: 8 bits for Red, 8 bits for Blue, and 8 bits for Green.
So indeed it's the camera doing it.
If the bandwidth consumption (and related lower framerate) are more than you want, disable on-camera debayering and do it on the PC instead.
04-26-2010 01:31 AM
04-26-2010 11:08 AM
IMAQdx will generally do some conversion on the various pixel formats sent by the camera to get them into a proper format for a Vision image datatype. For some pixel formats, this may mean swapping endianness, unpacking bits, or shifting the data around.
For a BayerRG8 format, the camera is sending a 8-bit mono image and the driver is going to (by default) automatically do the Bayer conversion to a color image. Other cameras might expose a pixel format directly of an RGB or YUV format, in which case it is the camera itself doing the bayer conversion before sending it to IMAQdx.
In this case, you could disable IMAQdx's Bayer decoding (turn the bayer decoding attribute to "Off" rather than "Auto") and get the raw 8-bit mono image if you want. Usually the monochrome image is fairly useless since it has the bayer pattern applied. Some cameras might have a monochrome mode available where they will internally debayer the image, then convert it back to monochrome so that the bayer filter is effectively removed.
What is your objective you are trying to do here?
Eric
04-28-2010 07:27 AM
01-10-2013 06:39 PM
Hi, Eric,
I am trying to capture raw Bayer output but keep getting RGB data instead.
Which VI do you use and where do you "disable IMAQdx's Bayer decoding"?
Thanks.
Tim
01-10-2013 11:13 PM
Hi Tim,
It is an attribute that can be changed like any other IMAQdx or camera setting. The easiest option is to just go to the camera in MAX, go to the Bayer tab, and set the decoding to "none". You can then click the Save button at the top to save these as the default settings. Then when you use it in LabVIEW it will start with those settings.
The programatic way in LabVIEW would be to use the property nodes and set the BayerPattern attribute to the string 'None'. There are lots of examples in this forum that should show how to access the attributes in LabVIEW.
Eric
01-11-2013 05:18 PM
Hi, Eric,
I looked in MAX (ver 5.1.0f0) and the Bayer pane is grayed out.
I found an example "Grab and Bayer Decoding.vi" which uses Bayer attibutes.
But I still see color image even when the pattern is set to NONE.
Tim
01-11-2013 05:56 PM
Hi, Nasgul,
Are you using LV? If so, which IMAQdx VI are you using?
I keep getting color images with the low level Grab Raw Data.VI, even though the camera only outputs Bayer image.
Tim
01-11-2013 09:21 PM
Can you show a screenshot in MAX showing the Acquisition tab on the camera?
Eric