Example Code

Crop Images with NI Vision Acquisition Software

Code and Documents

Attachment

Overview

This simple subVI can be used to crop Images in NI's VAS. While this is a built in function in NI's Vision Development Module, it is easy to achieve using the cheaper VAS toolkit. Context Help describes the inputs/outputs for this subVI.

Description

Hardware and Software Requirements

Software: NI Vision Acquisition Software (VAS) February 2016 (may work with earlier versions)

Software: LabVIEW 2015 (may work with earlier versions)

Steps to Implement or Execute Code


A tip for implementation is to pull the Global Rectangle from an Image Indicator on your front panel. The user can draw a rectangle on the image and use that to crop another copy of the image for saving to disk. If saving a video, make sure to lock the cropped image size once you start saving, otherwise you will experience an error in mismatched frame size.

Additional Information or References

Contributor: MDI-AJT



Notes for Branch AE:
Please reply to This Post within 24 hours
The US AE is expected to reply to all of your posts within 24 hours. Having this expectation will keep the escalation moving quickly and toward a fast resolution.

You can also use other communication channels: Phone, Skype, etc. to discuss the issue with the US AE. This can help with troubleshooting and quick diagnosis of the issue.

Click here to provide kudos for a post on this page

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

Contributors