Closed sakshamgupta1074 closed 3 years ago
Hello, I am facing the same issue mentioned above. Nodes are not created in the rectangles of the second level. I am trying to get a graph out of this image please suggest to me how to do it.
Hi, node in skeleton image means one pixel has more than 2 neighbours. So In your case, you should use binary_erosion and label to define every block, then trace the path (like sknw do, but you need write it yourself)
another trick with sknw is do a binary_outline, then use sknw to build graph.
and when two node has two path conected eachother, the two node means one!
Hello, thanks for the quick response. I am still not able to get the desired output even after creating the binary outline of the image. Also, your image is not visible on the comment for the another trick. Can you please elaborate the process?
hi, reload it again
hi, reload it again, and you can try imagepy, binary filter and sknw graph is built-in
Thanks a lot, finally got the desired output!!
Input Image-![colored_black](https://user-images.githubusercontent.com/39915573/103932954-a0ab2d00-5148-11eb-8c3d-f0ac05a1332e.jpg)
Output Image-![knw_output](https://user-images.githubusercontent.com/39915573/103932997-b0c30c80-5148-11eb-95a6-18ff71a1c691.png)