WLJS LogoWLJS Notebook

Pruning

Pruning[image] removes the outermost branches of thin objects in image by setting their values to black.

  • Pruning[image, n] removes branches that are at most n pixels long.
  • Pruning[image, {n}] removes n pixels from each branch.
  • Pruning[image, n, t] treats values above t as foreground.

Examples

Pruning[Thinning[Binarize[img]], 10]

Please visit the official Wolfram Language Reference for more details.

On this page