How to find adjacent object of an labeled image?
조회 수: 1 (최근 30일)
이전 댓글 표시
Consider the attached labeled image of 10 objects. Each object is denoted by a numeric value 1-10.
I want to count adjacent objects for each that it shares a border with. For example for object 2 it shares the border with 1 and 3. So input will be 2 and output will be 1 and 3.
For the case of 7. Input 7, Output 3,4,6,8,9,10
댓글 수: 0
채택된 답변
Image Analyst
2018년 6월 6일
This can be done with graycomatrix(). Trust me. Please think about it and try it yourself first.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!