thinning: Thinning and skeletonization

Description Usage Arguments Value Author(s) References Examples

View source: R/thinning.R

Description

These functions are for thinning, skeletonization, and analysis of thinned binary images. skeletonize skeletonizes a binary image using morphological operations. Topology may not be preserved. thinning thins a binary image using a method of Gonzalez and Woods (see reference). Topology is preserved. ending detects end points from a thinned image. branch detects branch points from a thinned image. isolated detects isolated points from a thinned image. pruning prunes (removes branches) a thinned image.

Usage

1
2
3
4
5
6
skeletonize(x)
thinning(x)
ending(x)
branch(x)
isolated(x)
pruning(x, n = 20)

Arguments

img

A binary image of Image class or matrix.

n

Number of pixels to prune.

Value

Return a matrix or an Image class object.

Author(s)

Yuichiro Hourai, yhourai@gmail.com

Takeo Katsuki, takeo.katsuki@gmail.com

References

Gonzales, Rafael C.; Woods, Richard E. (2001), Digital Image Processing

Examples

1
  demo(ThinningDemo)

tkatsuki/dipr documentation built on April 19, 2021, 7:18 p.m.