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 ビュー (過去 30 日間)

採用された回答

Image Analyst
Image Analyst 2014 年 12 月 26 日
Just threshold the red channel and call bwlabel(). See attached code.
  4 件のコメント
soundouss sassi
soundouss sassi 2017 年 9 月 30 日
What if we want to do the same thing (black background) but have a pseudo color front image?
Image Analyst
Image Analyst 2017 年 9 月 30 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by