Overview
This VI demonstrates how to convert an image from color (RGB) to a grayscale image.
Description
This simple program converts a color image to grayscale by two methods: 1) Converting the RGB image to a HSL image and extracting the luminance plane 2) Extracting the red color plane from the RGB image. The attached image can be saved and used to demonstrate the functionality of this VI. The file path of the saved image should be in the File Path control on the front panel.
Steps to Implement or Execute Code
- Specify the File Path on the front panel to your desired image
- Run the VI
Requirements
Software
LabVIEW 8.0 "or compatible"
IMAQ (part of Vision Acquisition Software 8.0 "or compatible") - Compatibility Link
Vision Development Module "or compatible" - Compatibility Link
VI Snippet

Additional Information or References
Additional Images

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**