Example Code

Create a Mirror Image of a Picture without the 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

Overview

The example demonstrates how to create a mirror image without the Vision Development Module.

 

Description
With the Vision Development Module, we can easily create a symmetry image using the IMAQ Symmetry function.  However, we can also perform this action by using standard LabVIEW picture functions.

Therefore, the image is converted in an array of pixels and rearranged and converted pack.

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)

 Hardware

  • No hardware is necessary to use this example VI

 

Steps to Implement or Execute Code

  1. Run the VI

 

Additional Information or References

Mirror Image LV2012 NIVerified.vi - Front Panel.png

 

 

Mirror Image LV2012 NIVerified.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.**

Cole R.
National Instruments
Software Engineer

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

Comments
Technico
Member
Member
on

Hi,

an easier solution would be to use the reverse function which is almost 40% faster:

Mirror-Easy.PNG

BTW: there is a bug in your code: you forgot to add a '-1' (see below)

Mirror-Fix.PNG

azadplc007
Member
Member
on

if i am choosing Video.... it ll do work????