LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

draw two lines till maximum picture length

Solved!
Go to solution

Hello 

 

Attached is the Line coordinates from edge detection. How can i draw these two lines in a imageso that the line extends and intercepts until the maximum length of the image. ? i.e first extract the intersection point of these two lines and compare whether it is smaller than the actual length of the image ( for example for a 1040 X 740 image, the intersection point should be behind / less than 1040)

 

any ideas?

 

Thanks

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 5
(3,146 Views)

attachemnet

Line coordinate.JPG

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,108 Views)

Hello Nghtcwrlr,

to support you in this topic it would be helpful to have some more informations.

Please describe your mean a bit more detailed and answer some questions:

- Where do you want to draw these lines? In a graph or a real picture (file-format, png, tiff?)

LabVIEW gives you either the tools of the graph-palette or these from the audio&graphics palette to realize it.

- What is the goal?

- Why do you want to use the intersection point for checking the borders of the lines.

I think the borders are given from the size of the picture and you can compare the coordinates of the lines with the borders without using the intersection point.
If you draw the lines in the picture with the "draw line" tool of the audio&graphics palette, the line automatically stops at the end of the picture.

Greetings, JoLe

 

National Instruments
Applications Engineering
www.ni.com/support

0 Kudos
Message 3 of 5
(3,087 Views)

Hallo Jo Le

 

Thanks for your reply. I was trying to draw an overlay.. I used IMAQ Overlay function and now it works.

 

But i have another question now. I have the line coordinates for 2 lines and the intersection point. How can i extend both lines in both directions?  See the attachment. I need to find the Blue marked points. I cannot find an Extrapolation function. Any ideas ?

Points.PNG

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 5
(3,070 Views)
Solution
Accepted by topic author Nghtcrwlr

I found the extrapolating function... I installed VIPM and installed the MGI package.

MGI.PNG

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 5
(3,055 Views)