How to create a linkage between different blob?
Afficher commentaires plus anciens
For example I using watershed and get different color piece.
I want to create a matrix to show the linkage.
1 1 1 1 1 1 1 1 1 1 1
1 2 2 1 3 3 1 4 4 0 1
1 2 1 3 3 1 0 4 4 0 1
1 1 1 1 1 1 1 1 1 1 1
so when loop vertical and horizontal I wish to get the result like matrix.jpg
I want check before 1 and after 1,
if check got 2,3 so return 1 to matrix(3,2)=1 matrix(2,3)=1
if check got 3,4 so return 1 to matrix(3,4)=1 matrix(4,3)=1
if 0 then ignore.
How to do this?
6 commentaires
Image Analyst
le 1 Déc 2015
I have no idea what you're asking and I've read it multiple times.
Tan Wen Kun
le 2 Déc 2015
Modifié(e) : Tan Wen Kun
le 2 Déc 2015
Walter Roberson
le 2 Déc 2015
I would have understood better if your table had showed 1 at entries (1,3) and (3,1)
Walter Roberson
le 2 Déc 2015
With the updated table then I am fairly sure glcm can be used.
Tan Wen Kun
le 2 Déc 2015
Modifié(e) : Tan Wen Kun
le 2 Déc 2015
Walter Roberson
le 2 Déc 2015
You need to define when two colors are "nearly the same" or not. It is not an easy question, especially when you are working with the darker colors. For example, is [10,0,0] "nearly the same" as [0,0,0] because the values are within 10, or is [10,0,0] definitely "red" whereas [0,0,0] is "black" ?
You should look for some of what Image Analyst has posted about "Delta E"
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


