The example demonstrates how to create a polygon Region of Interest (ROI) programmatically.
The example shows how to programmatically create an image that is not necessarily rectangle-shaped.
By default, images are always rectangle-shaped. To work around this one can create a mask from a Region of Interest (ROI) that is applied onto the image to apply non-rectangle image shapes.
The example provides to possibility to define any ROI type programmatically that is later used to mask the image to the desired shape.
LabVIEW 2012 Base Development System (or compatible)
Vision Development Module 2012 (or compatible)
No hardware is necessary to use this example VI
Steps to Implement or Execute Code
Open the attached file
Run the VI
Select the type of ROI with the tab control
Configure the settings for the respective ROI type
Additional Information or References
**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.**
Customer Education Product Support Engineer National Instruments Certified LabVIEW Developer