08-21-2009 12:17 PM
One suggestion would be switching to a grayscale camera. There is no reason for a color camera to be used in this application. It would improve the details in the image.
Will real cracks look like this? These look like a notch was cut in the rail with a radial saw.
Brighter lighting might improve the contrast between the rails and the cracks. It looks like the cracks will be black no matter what, so with high enough contrast you could pick them out fairly easily. Using a vertical edge detection matrix in the convolution vi would probably highlight the edges nicely. Something like:
1 1 1 1 1 1 1
1 1 1 1 1 1 1
1 1 1 1 1 1 1
0 0 0 0 0 0 0
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
-1 -1 -1 -1 -1 -1 -1
This would highlight the top edge of the crack without highlighting much else. Perhaps after that you could use a fixed threshold and see if any crack segments show up.
Bruce
08-26-2009 01:41 AM
Hi sailesh,
I tried something on your images. You can optimize it further.
10-07-2009 10:07 AM
10-21-2009 03:06 AM
12-13-2014 06:47 AM
I need to extract the crack alone in the image of a cracked egg, please kindly help me on this .