Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set up the transformation from the RAW Bayer output to 32-bit color in either the Max or LabVIEW.

Hi all,
i install my hardware and i have problems...
 
frame grabber :   PCI 1428  CameraLink
Camera           :   Basler 202 KC   CameraLink, Color
Driver               :  NI IMAQ 3.5
Software          :  LabView 8 + Vision Module 7.1.1 + Vision Assistant
Camera File    :  Basler 202k   ( THERE IS NO Basler 202KC Camera File!!!)
 
i have been told that Basler202k & Basler202kc has the same camera file
and i need to :
 set up the transformation from the RAW Bayer output to 32-bit color in either the Max or LabVIEW.
 
But i dont know how to set up this transformation in Max or LabView
and my Imaq is grayscale 😞
 
Please Help.
 
Thanks.
Best Regards,
 
Mor
 
 
0 Kudos
Message 1 of 7
(6,207 Views)

Hi Mor,

There is no bayer decode feature in MAX so you will need to use LabVIEW to view this image properly.  The Basler 202k camera file should work with your Basler 202kc camera.  You will need to use two VIs to decode your RAW Bayer image.  Both are found under Functions->Vision and Motion->Image Acquisition.

  1. IMAQ Create Bayer LUT.vi
  2. IMAQ Bayer Color Decode.vi

You will need to know the R, G, and B gain of your Basler camera.  Feed those gains into the IMAQ Create Bayer LUT.  Take the Output Luts and connect it to the Input Luts of the IMAQ Bayer Color Decode.  The image output of the IMAQ Bayer Color Decode, granted you have the correct gains and Bayer pattern, will be the decoded color representation of your grayscale image. 

Please refer to the Snap with Bayer Decoding example for a sample setup.  In LabVIEW go to Help->Find Examples.  Browse according to Task to Hardware Input and Output->IMAQ->Color.

If you are unable to find your camera's RGB gains in the camera documentation or by running the example, you can find them using the NI White Balancing Utility.  This utility is found in the  \National Instruments\Vision folder.

I hope this helps get you on your way.

Regards,

Ryan F.

Message Edited by RyanF on 02-03-2006 02:01 PM

Message 2 of 7
(6,186 Views)
Dear Ryan,
 
Thanks for the reply.  The RAW Bayer decoding is integrated into NI-IMAQ for IEEE-1394.  Does NI have any plans to integrate the RAW Bayer decoding into NI-IMAQ?
 
-Robert Eastlund
Robert Eastlund
Graftek Imaging, Inc.
Phone: (512) 416-1099 x101
Email: eastlund@graftek.com
0 Kudos
Message 3 of 7
(6,170 Views)
Robert,
 
I believe NI is looking into integrating RAW Bayer Decoding into a future release of NI-IMAQ.
 
Regards,
Ryan F.
0 Kudos
Message 4 of 7
(6,161 Views)

Dear Ryan and Robert,

Thank you for your help.
its work good.

Robert, thank you for emailing me, i appriciate your help.

Best Regards,

Moti Mor.

 

0 Kudos
Message 5 of 7
(6,153 Views)

Hi,

 

I would like to know if NI has already integrate RAW Bayer Decoding for Frame Grabber in any of the latest release of NI-IMAQ?? If yes, which NI-IMAQ version onwards?? Is it configurable in MAX, like for firewire cameras??

 

Thank you & Regards

0 Kudos
Message 6 of 7
(5,372 Views)

Hi ltok,

At this point it has not been integrated into MAX.  There are no plans for adding Bayer decoding into MAX in the next year.

Adam H
National Instruments
Applications Engineer
0 Kudos
Message 7 of 7
(5,341 Views)