Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I determine the end points of a line region in an image?

If I use the "Line tool" to create a line region on an image, how do I determine the start and end points of that line? Or, how do I get that line as a CWIMAQLine object in my program?
 
Thanks!
 
 
0 Kudos
Message 1 of 3
(3,009 Views)
Steverino -

Assuming you're using Visual Basic, you can do something like this:

Dim Line As CWIMAQLine
Set Line = CWIMAQViewer1.Regions(1)

Then you can access the start and end of the line with Line.Start and Line.End in the usual way.

Greg Stoll
IMAQ R & D
National Instruments
Greg Stoll
LabVIEW R&D
0 Kudos
Message 2 of 3
(3,003 Views)
Awesome!
 
Thanks!
0 Kudos
Message 3 of 3
(3,000 Views)