Example Code

IMAQ RGB Hue and Color Manipulation

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

The example demonstrates how to extract color planes from an image and how to manipulate them.

 

Description

This example extracts the red, green and blue hue planes from a 32 bit RGB image. Once extracted, these hue planes are multiplied by user controlled values and recombined to create a new 32 bit RGB image.

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)
  • Vision Development Module 2012 (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Open the attached file
  2. Run the VI
  3. Change the multiplier settings and check how the extracted hue planes and the resulting image change
  4. (Optional) Click Reset to set the multipliers for all color planes to 1

 

Additional Information or References

IMAQ Image extract and manipulate color planes - Front Panel.png

 

IMAQ Image extract and manipulate color planes - Block Diagram.png

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**


Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
FilipeV
Member
Member
on

Excelent tutorial. Where do I get that "IMAQ ExtractColorPlanes? I can't find it anywhere LabVIEW. I use the 2011 version and have Vision installed. Thanks in advance.