I need to find the black spot present in the component image and produce output based on the presence of black spot in the component .. please help me with what methods should i use and code to do it

2 visualizzazioni (ultimi 30 giorni)

Risposta accettata

Image Analyst
Image Analyst il 26 Dic 2014
Just threshold the red channel and call bwlabel(). See attached code.
  4 Commenti
Image Analyst
Image Analyst il 30 Set 2017
That would be an indexed image, if it's pseudocolored. But basically it's the same concept. Flat field correct the image to compensate for lens shading, then identify the background (hopefully it's smooth), perhaps by thresholding, or thresholding after some processing, like running it through stdfilt() to identify smooth and not-smooth regions.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by