detect scratches in image

4 views (last 30 days)
mehroz irshad
mehroz irshad on 19 Nov 2015
Commented: Image Analyst on 20 Nov 2015
this is the input image i want to detect scratches in this image but i don't know how to proceed please guide me. i want output image like this
  2 Comments
Walter Roberson
Walter Roberson on 20 Nov 2015
You appear to have marked blobs, not scratches. Scratches are long thin marks such as appear near the bottom left of the bright area.
mehroz irshad
mehroz irshad on 20 Nov 2015
so how can i detect those blobs.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 20 Nov 2015
Try a tophat or bottomhat filter, imtophat() or imbothat().
  3 Comments
Walter Roberson
Walter Roberson on 20 Nov 2015
original = rgb2gray( imread('fivTest.png') );
Image Analyst
Image Analyst on 20 Nov 2015
You should also get a better photo. Your setup is horrible. Have you considered using more uniform illumination, board illumination (no line or point sources of light), crossed polarizers (to knock out that specular reflections right where you want to analyze), etc. It's always better to start with a good image than to try to fix us a crappy image afterwards in software.

Sign in to comment.

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!