Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

draw the maximum line between boundaries

Hello

Sorry for my low level in english

 

I would like to find a way to detect automatically the horizontal line passing through the center and both ends (right and left) of this figure.

The center being the point of intersection of lines in the middle of this  figure and not the center of the whole image.

How to retrieve the coordinates of the center then?

 

Please let me know if something isn't clear/correct.

Thanks

 

Luckyloic

 



0 Kudos
Message 1 of 4
(3,194 Views)

Due to limited info, I think you may try to connect the lines by smoothing out the edge map and theshold the result. Then use a size filter to get rid of small isolated noise. After that, scan the image vertically from left to right. Use outside-in clamp at each scan to find the smallest distance. You'll get the intersection point as required.    

0 Kudos
Message 2 of 4
(3,178 Views)

Thanks for your answer.

How to scan the image vertically from left to right, is there a function? do you think of a for loop?

To find the smallest distance, I have to use IMAQ clamp vertical max?

I guess your solution is effiecient but please let me know about the name of the functions you think I have to use beause I am a novice in Labview.

 

Thanks a lot

 

0 Kudos
Message 3 of 4
(3,153 Views)

you may try "IMAQ LowPass", "IMAQ Threshold" then "IMAQ Clamp Vertical Min". adjust the parameters as appropriate.

0 Kudos
Message 4 of 4
(3,144 Views)