how to trace black and white region separately in an binary image
조회 수: 1 (최근 30일)
이전 댓글 표시
SARAH LONER
2019년 12월 3일
답변: Constantino Carlos Reyes-Aldasoro
2019년 12월 3일
hai i have binary image (capture 1) and i need to trace all white region in vertical and all black region in horizontal lik the image i attached.(capture 2) and from that i need to detect fault in both hozintal and vertical (capture 3). kindly suggest me
댓글 수: 0
채택된 답변
Constantino Carlos Reyes-Aldasoro
2019년 12월 3일
generate 2 images, one at which you threshold for bright values, and one for which you threshold for dark values. Once you have that you can label the regions with bwlabel. Find the locations with regionprops. The links would follow the coordinates of the regions detected previously. Once you have those links and difference between the coordinates you can look for variations in the distances of neighbouring elements. If there are no defects, all the distances should be regular, with defects there will be smaller and larger distances.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!