02-11-2010 05:12 PM
I am trying to detect scratches on a camera lens. I am looking at a grid target
and trying to find out iof there are any discontinuities on the grid which shows
scratches. I am attaching the picture that I am lookinh at wher i created a
discontinuity. I am attaching the VI as wll as the image. I just want to show the
scratch on the output. Take a look at what I did with the code.
02-11-2010 10:01 PM
02-12-2010 08:42 AM
Yes it a crack when you look at the image. The camera I am working is an endoscope camera.
So instead of breaking the lens I created a crack on the target. What I am unable to get is to detect
only the crack. I dont think think it will work if we look at a dark image, I am sure. How can I just simply
show the detected crack as a result and say fail. The project is to detect cracks & scratches and if there
is any discoloration in the image acquired.
02-12-2010 10:42 PM
A crack/scratch in the camera lens or the object being viewed? I don't think the image would look anything like what you posted either way. If the camera lens is damaged, it is unlikely to show up as a discrete discontinuity. You either won't see it at all, or it will be a blurring or distortion of the image. If you are looking at cracks in the object, they will likely be black lines (depending on lighting) but the background will not likely shift.
Before you start trying to analyze an image, I think you need to put more thought into what that image will really look like.
Bruce
02-17-2010 08:36 AM
I got what you guys have suggested. Even considering the crack in the
target, is there any way we could detect what I have shiown in the image
above. I thought of using golden template but was not satisfied with the results.
I am kind of stuck with ideas on what is my next step.
02-18-2010 12:49 AM
02-18-2010 04:29 PM
Muks
Yes I want to detect the line. I want to see the crack
or the distiotion in the image. I am attaching the grid
without any distortion. I mena a regular grdi bar is
attached to this post.
Yesh
02-18-2010 04:35 PM
Sorry for that
I attached the wrong picture in the aboce post. I am also attachedinh the reference image
I printed for the target..
02-18-2010 11:50 PM
02-19-2010 01:35 AM
Try this