label two objects that share part of the same boundary separately
Mostra commenti meno recenti
I have a matrix like this:
m = [0,1,1,1,0;1,0,0,0,1;0,1,1,1,0;0,1,0,1,0;0,0,1,0,0];
And I want to label the interior separately, which results in a matrix like this:
m1 = [0,1,1,1,0;1,2,2,2,1;0,1,1,1,0;0,1,3,1,0;0,0,1,0,0];
But I'm not sure how to do that. Any suggestion will be appreciated! Thank you!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Ground Truth Labeling in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!