How to convert binary image to graph?!
Show older comments
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.....
Answers (2)
Youssef Khmou
on 1 Jul 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 Comments
Image Analyst
on 2 Jul 2013
Edited: Image Analyst
on 3 Jul 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
on 3 Jul 2013
Image Analyst
on 3 Jul 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
on 1 Jul 2013
0 votes
Neither do I. You'd have to supply more information. Why do you want to do that anyway?
2 Comments
Mariam Sheha
on 1 Jul 2013
Edited: Image Analyst
on 1 Jul 2013
Image Analyst
on 1 Jul 2013
It's not clear from the figure. You'd have to read the paper more carefully.
Categories
Find more on Get Started with Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!