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 个评论
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 CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by