Example Code

Programmatically Select ROI on Image by Clicking and Dragging Mouse

Code and Documents

Attachment

Introduction

This VI shows you how to use the ROI tools of the Front Panel Image Control to create an ROI. Then you can programmatically take the coordinates from this ROI to process your image further.  In this example, the coordinates from the ROI are used to overlay a rectangle onto the original image.

Steps to Complete

Open the attached VI and follow the instructions on the front panel.

Additional Notes

This VI was written in LabVIEW 8.6 and using the Vision Development Module 8.6.

Hope this helps.
-Ben

WaterlooLabs

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

Comments
mrutm
Member
Member
on

There was no VI

DAKBIAS
Licínio
Member
Member
on

Hello Ben,

 

Thank you for this VI. It is usefull.

 

Licínio

 

Contributors