Branchpoint detection has long been facilitated by |bwmorph|. However, bwmorph yields false positives in many cases. Often, detecting true T- and Y- branchpoints will provide a better result.
There are 12 candidates that represent all of the "T" or "Y" branchpoints in a 3x3 matrix. This code uses a lookup table to detect them in skeletonized binary images.
detectBranchpoints is a standalone function that operates on skeletonized (or "infinitely thinned") binary images. It is designed for use with the Image Processing Toolbox.
Please address questions to: Brett Shoelson, PhD [email protected] 08/06/2020
Copyright 2020 The MathWorks, Inc.