How to create a linkage between different blob?
Mostrar comentarios más antiguos
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 comentarios
Image Analyst
el 1 de Dic. de 2015
I have no idea what you're asking and I've read it multiple times.
Tan Wen Kun
el 2 de Dic. de 2015
Editada: Tan Wen Kun
el 2 de Dic. de 2015
Walter Roberson
el 2 de Dic. de 2015
I would have understood better if your table had showed 1 at entries (1,3) and (3,1)
Walter Roberson
el 2 de Dic. de 2015
With the updated table then I am fairly sure glcm can be used.
Tan Wen Kun
el 2 de Dic. de 2015
Editada: Tan Wen Kun
el 2 de Dic. de 2015
Walter Roberson
el 2 de Dic. de 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"
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


