Example Code

Semitransparent IMAQ Overlay

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 overlay an IMAQ image with another image semitransparently.

 

Description

This example allows for a semitransparent IMAQ overlay.  IMAQ overlay functions do not currently have support for transparency, so this VI manipulates the pixels to give a look of semitransparency.  It performs a weighted average between the overlay image and the IMAQ image. The level of transparency is determined by the transparency factor input.

 

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. Run the VI
  2. (Optional) Change the multiplier settings of 'Transparency Factor' and 'Coordinates of Overlay'

 

Additional Information or References

IMAQ Semitransparent Overlay LV2012 NIVerified.vi - Front Panel.png

 

 

IMAQ Semitransparent Overlay LV2012 NIVerified.vi - Block Diagram.png 

transparent overlay image.vi - 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.**

Justin D.

Applications Engineer
National Instruments

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