Example Code

Overlay a User Defined Grid of Regions of Interest (ROIs) On an Image

Code and Documents

Attachment

Download All

Overview

This VI demonstrates a way to overlay a grid of rectangular ROIs onto an image.

 

Description

This example shows a way to overlay a grid of rectangular ROIs onto an image. It allows the user to define the number of rows and columns for the grid, and then defines and overlays the ROIs automatically. Using the selected image's size, and the user's row and column number inputs, the program determines the coordinates necessary for the top left, and bottom right locations of each rectangular ROI. It then converts this rectangle into an ROI and overlays it on the image.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI " ROI Grid Overlay 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet

Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Matt J - NI Tools Network

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