First, you should try to improve the image quality : the scratch is difficult to see, even by eye. May be you could improve the lighting, using 2 sources disposed at a relative angle of 90°.
Then, image enhancement is straight forward ;):
- use a laplacian filter to amplify the lines (disk edge, scratch and noise...),
- threshold the image (that's the most critical step !!!),
- remove the smaller objects (noise),
- apply a close operation (dilation+erosion) to connect the scratch fragments,
- select the particles according to their compactness factor (ratio between enveloppe area size and actual area.
If you have NI Vision Assistant, run the attached script. Otherwise, I'll try later to send you the corresponding vi (I have problems with files larger than 26 ko).
Happy wiring !
CC
Chilly Charly (aka CC)