Calculate the edge of a transparent object
2 views (last 30 days)
Show older comments
Hi! I'm trying to calculate the profile of a lens. I took the picture of the profile and now i'm trying to find the edge of the lens with a matlab code. I tryed to use edge detection algorithm but the problem is that the shades on the lens make it difficult.
I attach the picture
Does anybody can help me? Thank you in advance :)
4 Comments
Image Analyst
on 20 Dec 2014
Start your own discussion, and attach your image, at least the best image you can capture.
Answers (1)
Image Analyst
on 22 Mar 2014
I'd say put more work into getting a better photo such as having a darker background, more "edge on" viewing angle, darker base that it's laying on, etc. Then it would be a lot easier and could be automated. For now, I'd suggest you use imfreehand() to hand-trace the lens. Let me know if you want a demo of imfreehand().
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!