How to find adjacent object of an labeled image?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Casio Uploader
il 6 Giu 2018
Modificato: Casio Uploader
il 9 Giu 2018
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191059/image.jpeg)
For the case of 7. Input 7, Output 3,4,6,8,9,10
0 Commenti
Risposta accettata
Image Analyst
il 6 Giu 2018
This can be done with graycomatrix(). Trust me. Please think about it and try it yourself first.
1 Commento
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Computer Vision with Simulink in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!