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.

Details and OptionsDetails and Options

  • Morphological pruning is typically applied after morphological thinning.
  • Pruning works with binary, grayscale, and multichannel images, as well as real matrices.
  • Pruning takes a Padding option that specifies the values to assume for pixels outside the image. The default setting is Padding->0.
Introduced in 2010
(8.0)