How to find branch point from binary skeletonize image
问题 I use Python OpenCV to skeletonize an image like this: and I want to find the branch point of the skeleton I have no idea how to do it. Any thoughts? 回答1: The main idea here is to look in the neighborhood. You can use a 8-conected neighborhood for every pixels ([1 1 1; 1 1 1; 1 1 1], and the center is the pixel for which the neighborhood being explored!). At every branch point, the degree of the pixel will be > 2, while regular pixels will have a degree of 2 (i.e., connected to 2 pixels in