10-28-2009 03:58 AM
I have a Bumblebee2 Stereo Camera from PointGrey Research Inc. This camera must be used in Format_7 Mode 3 to obtain both stereo images at the same time. The resulting image has 640x480 16-bit values, where the first 8 bits comes from one image and the last 8 bits from the other. The camera is connected to a CVS unit via Firewire, limiting me to IMAQdx VIs
If I use the IMAQdx Get Image VI, it outputs an RGB image from Bayer demosaicing, but due to the demosaicing the additional bits of the 16-bit image have been lost.
If I use the IMAQdx Get Image Data VI (to get the raw data) it outputs the 16-bit values which I can easily split to 2 640x480 8-bit arrays. However, there doesn't seem to be an equivalent to the IMAQ Bayer Color Decode VI in IMAQdx. Obviously, Bayer demosaicing IS available, since IMAQdx Get Image makes use of it, but it doesn't seem that I'm able to access it for the usage I envision (input the 'grayscale' image and the Bayer pattern and output the RGB image). Any help?
Solved! Go to Solution.
10-28-2009 03:42 PM
Hey,
Have you looked at 'IMAQ Bayer Color Decode.vi'? It allows you to pass it a grayscale image (encoded with bayer data) and specify the bayer pattern desired and it returns an RGB image derived from the decoded bayer information. It's not a function of IMAQdx, but it should do the trick
Good Luck,
10-28-2009 07:10 PM
10-30-2009 10:28 AM
Hey,
I've written a couple of VI's that behave like the IMAQ Bayer Decode and IMAQ Create Bayer LUT, but don't require IMAQ. Try these out and let me know if that works for you. It should do the trick
Take Care,
10-30-2009 10:38 AM
Thanks BullDozier! Its close to midnight Friday here, so I'll check this out on Monday and come back to this thread.
11-03-2009 10:45 PM
11-04-2009 04:13 PM
Is there a reason you password protected these VI's? I would have liked to check out the internals. Thanks for posting them, and I would like to see them included in the default distribution of IMAQdx if possible.
Also, you don't mention the LabVIEW version these are made with, although I was able to open them in LabVIEW 8.2, for what it is worth.
Thanks,
Chris Davis
11-04-2009 04:28 PM
03-02-2010 05:19 PM
Lost and Found,
I am trying to do the same as you, however when I use the IMAQdx Get Image Data it is outputting an 8 bit array not a 16 bit array. Would you be able to explain your solution a little better or perhaps post an example? Thank you very much!
Brandon
03-03-2010 01:44 AM