How to convert binary image to graph?!
Mostrar comentarios más antiguos
Hi every body...
Hi everybody,
Can you please help me to convert binary image results from Laplacian of Gaussian (LOG) filter. to graph?!
I don't know what function can perform like such operation, would you please help me;
Thanks A lot.....
Respuestas (2)
Youssef Khmou
el 1 de Jul. de 2013
hi,
You can convert the image to graph by simply plot the result as vector or matrix :
I=imread('circuit.tif');
figure, plot(I);
figure, plot(I(:)), title(' Mapping operator');
BB=im2bw(I);
figure, plot(BB);
F=sparse(BB);
figure, spy(F);
Many other possibilities do exist, try those above and see .
3 comentarios
Image Analyst
el 2 de Jul. de 2013
Editada: Image Analyst
el 3 de Jul. de 2013
The graph seems like it used random locations from only the boundary. I have no idea why -- but she may need to call bwboundaries() or bwperim() to get the boundary.
Mariam Sheha
el 3 de Jul. de 2013
Image Analyst
el 3 de Jul. de 2013
It looks like the log filter is just one big region. Not sure why there are multiple regions. Then they somehow get random (or so it appears) points from the perimeter and then the next step is somehow they have multiple small regions outlined in green. I have no idea how they went from the log image to the graph to the cyclic subgraphs (multi-region) images. Maybe you do. Why are there multiple regions?
Image Analyst
el 1 de Jul. de 2013
0 votos
Neither do I. You'd have to supply more information. Why do you want to do that anyway?
2 comentarios
Mariam Sheha
el 1 de Jul. de 2013
Editada: Image Analyst
el 1 de Jul. de 2013
Image Analyst
el 1 de Jul. de 2013
It's not clear from the figure. You'd have to read the paper more carefully.
Categorías
Más información sobre Get Started with Image Processing Toolbox 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!
