This example gives an in-depth explanation of Vision ROI descriptors. It details how each ROI type descriptors are represented and defined in LabVIEW.
The example has a tab for each ROI type: Point, Line, Rectangle, Oval, Polygon, Freehand, Annulus, Broken Line, Freehand, Rotated Rectangle and Draw.
Each tab shows the descriptor for the ROI. The descriptor contains the following things:
The last tab allows you to draw an ROI and look at how the descriptor is changed. Use that tab to understand the difference between Freehand ROI, Broken Line ROI, Freehand Line ROI and Polygon ROI. Those four ROI types differ more in how they are drawn on the IMAQ Image Control rather than how they are defined in the ROI descriptor.
LabVIEW Full Development System 2014 or later
Vision Development Module 2014 or later
Define Regions of Interest: http://zone.ni.com/reference/en-XX/help/370281P-01/nivisionlvbasics/define_regions_of_interest/
Front Panel:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.