07-19-2010 04:11 PM
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.
How to retrieve the coordinates of the center then?
Please let me know if something isn't clear/correct.
Thanks
Luckyloic
07-19-2010 10:49 PM
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.
07-20-2010 11:51 AM
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
07-20-2010 09:01 PM
you may try "IMAQ LowPass", "IMAQ Threshold" then "IMAQ Clamp Vertical Min". adjust the parameters as appropriate.