Calculate the edge of a transparent object

2 views (last 30 days)
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
Vijay
Vijay on 18 Dec 2014
I am also facing same problem with transparent plastic part
Image Analyst
Image Analyst on 20 Dec 2014
Start your own discussion, and attach your image, at least the best image you can capture.

Sign in to comment.

Answers (1)

Image Analyst
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().

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!