Distance measurement using canny edge detector.
I would like to know, can canny edge detector be used to measure the real distance between two parallel edges, say my project is to measure the distance between the rail tracks, which has to have an accuracy in micro meters. My question is, is there any possible algorithms in opencv which can get the absolute distance measurement in micrometers, the term micrometer is of most importance.I look forward for an answer.I am able to detect the edges but mere edge detection doesn't give me a solution for my problem.Please let me know if it is possible I can go forward with confidence.
Thanks a lot in advance opencv.org
What about using Hough lines or line segment detector to detect the rail tracks?
If you'll upload some example images, we'll have a better understanding of the problem.
"micrometer precision" sounds unrealistic, unless you are talking about images from a microscope.
Thank you berek, microscope is not in the scope even if it is possible to measure in millimeter precision ,fair enough for me to proceed and I need a portable device to port the algorithm, I has thought about working with beaglebone-xm board which is supported by opencv and the maximum compatibility of camera is 5 MP on that board, well, I went through stereo vision principle too and found it quite applicable for my application could you please give me your input in that regard.
Thanking you in advance !
GiLevi please go through the binary image I had uploaded just before, waiting for your valuable comment thank you!
When you say micrometer, you really mean that? Like, 0.001 mm accuracy? Never heard of such an accurate vision system. I guess you would need to work with incredibly high resolution images, and there would be no way you could process edges on such a big image on real time. Also, there are some other possible error sources that may further decrease accuracy... for example, which points in the edges would you use to calculate the distance? Could you ensure that they would be always parallel? If you find a solution, please give us updates on your progress.
@pedrobatista thank you for raising extremely good questions that really matters in my project. well,micrometer sounds nearly impossible since I have to use microscopic lenses, I think I should step back to millimeter accuracy and I am working and trying to fix the issues, I will definitely let you know if I get any useful leads thank you so much