How to convert binary image to graph?!

Asked by Mariam Sheha about 21 hours ago
Latest activity Commented on by Image Analyst about 2 hours ago

Hi every body...

Hi everybody,

Can you please help me to convert binary image results from Laplacian of Gaussian (LOG) filter. to graph?!

as that attached figure?! http://imageshack.us/photo/my-images/41/sww.png/

I don't know what function can perform like such operation, would you please help me;

Thanks A lot.....

http://imageshack.us/photo/my-images/41/sww.png

0 Comments

Mariam Sheha

2 Answers

Answer by Image Analyst about 21 hours ago

Neither do I. You'd have to supply more information. Why do you want to do that anyway?

2 Comments

Mariam Sheha about 17 hours ago

would please think with me about that,

let's assume that we got the connecting component of the binary image through (cc = bwconncomp(bw, 4);) then i wana to graph those connected points using that function ([S, C] = graphconncomp(S);)... how can i do that?!...

About what i want to do, Look i am trying to detect some cyclic structure and meshes present in am image through different structure operations , simple representation for work structure represented at that image (stopped at : the convertion from binary to graph step): http://imageshack.us/content_round.php?page=done&l=img208/1244/tdh1.png

Thanks in advance

Image Analyst about 10 hours ago

It's not clear from the figure. You'd have to read the paper more carefully.

Image Analyst
Answer by Youssef KHMOU about 9 hours ago

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 .

1 Comment

Image Analyst about 2 hours ago

The graph seems like it used random locations from only the boundary. I have no idea why -- but he may need to call bwboundaries() or bwperim() to get the boundary.

Youssef  KHMOU

Contact us