Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Builder has a "Find Straight Edge" function. Shows a VB function of CWMV.FindStraightEdge. Where & how use Find Straight Edge in VB code?

Is to only method to "find straight edge" in code by doing multiple find edges, and building a line from the points?
0 Kudos
Message 1 of 3
(3,169 Views)
The Find Straight Edge method is located in the CWMachineVision object and documentation on it can be found in the IMAQ Vision for Visual Basic function reference manual, which installs with Vision. The method's abstract is:

CWMachineVision.FindStraightEdge (SourceImage, SearchRotatedRectangle, ScanDirection, FindStraightEdgeReport, CommonEdgeOptions, CoordinateTransformation)

The manaul also gives some example code on how to use this method.

Kyle V
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,169 Views)
Can you advice on how to read and set the filterWidth setting? I use the CommonEdgeOptions variable, but I kept getting "Object doesn't support this property or method" error message.

Thanks,
Simon Teng
0 Kudos
Message 3 of 3
(3,169 Views)