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일)
이전 댓글 표시
댓글 수: 0
채택된 답변
Image Analyst
2014년 12월 26일
Just threshold the red channel and call bwlabel(). See attached code.
댓글 수: 4
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
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 Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!