Example Code

Extract Color Plane of an image without using the NI Vision Development Module

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

  • LabVIEW

Code and Documents

Attachment

Description

Overview

This example demonstrates how to filter colors of an image without using the NI Vision Development Module.

 

Description

The VI loads a JPEG image from file and converts the image to a 2D array. The RGB values of the pixels are splitten and filtered according to the color selection in the Front Panel. The original image and the filtered image are displayed in the Front Panel.

If the NI Vision Development Module is availible, the VI ExtractSingleColorPlane can be used.

Example: How to extract color planes and grayscale images using LabVIEW and VDM

 

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

Comments
A_Patel
NI Employee (retired)
on

That is really cool. Great job Hunter. Best LabVIEW progammer ever.

National Instruments
Applications Engineer