Image-Py / sknw

build net work from skeleton image (2D-3D)
BSD 3-Clause "New" or "Revised" License
222 stars 47 forks source link

Nodes not detected in the rectangles of the second level of this particular image #14

Closed sakshamgupta1074 closed 3 years ago

sakshamgupta1074 commented 3 years ago

Input Image- colored_black

Output Image- knw_output

shiva2410 commented 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.

yxdragon commented 3 years ago

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) image

another trick with sknw is do a binary_outline, then use sknw to build graph. image and when two node has two path conected eachother, the two node means one!

sakshamgupta1074 commented 3 years ago

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?

yxdragon commented 3 years ago

hi, reload it again

yxdragon commented 3 years ago

hi, reload it again, and you can try imagepy, binary filter and sknw graph is built-in image

sakshamgupta1074 commented 3 years ago

Thanks a lot, finally got the desired output!!