Example Code

RGB Color Spectrum Splitter VI

Code and Documents

Attachment

This VI takes a camera image and splits it into 3 component images (Red, Green and Blue). It then displays these images as an intensity image in their own color, rather than greyscale.

It shows how to use the IMAQ ArrayToColorImage and IMAQ ColorImageToArray, as well as the Split Number and Join Number functions.

It also provides a fun function to combine individual color spectrums to create secondary color images (Magenta, Cyan, Yellow).

National Instruments
Staff Certification Engineer

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

Contributors