Machine Vision Functions
Machine Vision functions allow you to perform common machine vision inspection tasks, including detecting the presence or absence of parts in an image and measuring the dimensions of parts to see if they meet specifications.
The Machine Vision functions are open source, which allows you to use the source code as examples for particular applications and to examine the operation of the code at run-time. The Machine Vision functions have a separate function panel from the other NI Vision functions (NIMachineVision.fp).
To load the Machine Vision functions, select Instrument»Load from the LabWindows/CVI project window, browse to the <CVI>\toolslib\vision directory, and select nimachinevision.fp. You can now access all of the function panels from the Instrument menu. Because the functions are open source, you can view the source by examining the NIMachineVision.c file.
Note Do not make changes directly to the file because future installations may overwrite your changes. Instead, copy the function you want to modify to another source file and modify it there. |
The following table lists the Machine Vision functions. The functions in the Machine Vision class are grouped according to the types of operations they perform. The first column contains the name of the class. The second column contains names of function subclasses. The third column contains names of individual function panels. Each Machine Vision function panel represents one function.
Coordinate Transform Functions
Coordinate Transform functions allow you to find various types of coordinate transforms in an image. Use these functions to find a coordinate transform using either edge detection or pattern matching.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Coordinate Transform | Find Transform Pattern | imaqFindTransformPattern |
Count and Measure Objects Functions
Count and Measure Objects functions allow you to count and measure objects in an image.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Count and Measure Objects | Count Objects | imaqCountObjects |
Machine Vision | Count and Measure Objects | Dispose Object Report | imaqDisposeObjectReport |
Find Patterns Functions
Find Patterns functions allow you to find a pattern in an image.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Find Patterns | Find Pattern | imaqFindPattern |
Locate Edges Functions
Locate Edges functions allow you to find straight or circular edges in an image.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Locate Edges | Dispose Circular Edge Report | imaqDisposeCircularEdgeReport |
Machine Vision | Locate Edges | Dispose Straight Edge Report | imaqDisposeStraightEdgeReport |
Machine Vision | Locate Edges | Find Circular Edge | imaqFindCircularEdge |
Machine Vision | Locate Edges | Find Concentric Edge | imaqFindConcentricEdge |
Measure Distances Functions
Measure Distances functions allow you to measure distances in an image, such as the minimum or maximum horizontal separation between two vertically oriented edges.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Measure Distances | Clamp Max | imaqClampMax |
Machine Vision | Measure Distances | Clamp Min | imaqClampMin |
Measure Intensities Functions
Measure Intensities functions allow you to measure the intensity of a specific region of an image.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Measure Intensities | Light Meter Line | imaqLightMeterLine |
Machine Vision | Measure Intensities | Light Meter Point | imaqLightMeterPoint |
Machine Vision | Measure Intensities | Light Meter Rect | imaqLightMeterRect |
Select Region of Interest Functions
Select Region of Interest functions allow you to select a specific region of an image.
Class | Subclass | LabWindows/CVI Equivalent | Function Name |
---|---|---|---|
Machine Vision | Select Region of Interest | Select Annulus | imaqSelectAnnulus |
Machine Vision | Select Region of Interest | Select Line | imaqSelectLine |
Machine Vision | Select Region of Interest | Select Point | imaqSelectPoint |
Machine Vision | Select Region of Interest | Select Rect | imaqSelectRect |