Documentation ¶
Overview ¶
Package afmm contains an implementation of the augmented fast marching method for skeletons and centerlines of binary images
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AFMM ¶
AFMM is a modification of FMM where, alongside distance, we propagate the pixel this distance stems from. By probing discontinuities in this new field, we are able to find the centerline/skeleton. It returns the discontinuity magnitude from which small boundary defects can be thresholded. It also returns the distance transform as FMM
func FMM ¶
FMM computes the distance transform of the binary mask provided as argument, i.e., computes how far a non-background pixel (white) is from a background pixel (black)
func Skeletonize ¶
Skeletonize takes an image.Image representing a binary mask and a threshold value, t, and returns an image.Image of the centerline or skeleton of this mask. Black pixels represent the background, and white pixels represent the object being skeletonized. Boundary defects less than t pixels are ignored. Improve the output by tuning t to the image.
Types ¶
This section is empty.