Using the Utility with an Existing Image

NI IMAQ White Balancing Utility

Using the Utility with an Existing Image

Complete the following steps to open an existing image and find the correct gain settings for an image:

  1. Launch the NI-IMAQ White Balancing Utility from Programs»National Instruments»Vision»Bayer White Balancing Utility.
  2. Click the Browse button .
  3. Select the image you want to open.
  4. Click OK to open the selected image.
  5. Set the appropriate Bit Depth value for the image.

    Note   Images that are eight bits are automatically detected and the Bit Depth is grayed out. Until the correct bit depth is set, images that are greater than eight bits may appear very light or very dark. An incorrect bit depth causes incorrect gain settings.
  6. Select the Bayer Pattern tab and click the appropriate Bayer Encoding Pattern radio button for the image.

    Note  The Bayer CFA pattern can appear in one of the following four variations, depending on the current left and top offsets of the acquisition window:
            
    GBGB
    RGRG
    GRGR
    BGBG
    BGBG
    GRGR
    RGRG
    GBGB
  7. Select the Gains tab.
  8. Set the desired white level. The default white level value is 220.
  9. Click the ROI button and select a white region of interest on the image.
  10. Click Auto Calculate Gains to calculate the RGB gain settings.

    Note  You also can use the individual Gain controls to manually adjust the white balance.
  11. Select the Parameters tab and record the displayed values to use in your application.

    Use these calculated parameters with the imgBayerColorDecode and imgCalculateBayerColorLUT functions or IMAQ Create Bayer LUT and IMAQ Bayer Color Decode VIs.

For more information on finding the correct gain settings, refer to About Bayer Cameras and NI-IMAQ White Balancing Utility FAQs.