removes the outermost branches of thin objects in image by setting their values to black.
removes branches that are at most n pixels long.
removes n pixels from each branch.
treats values above t as foreground.
Details 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.
Basic Examples (4)
Prune the outermost branches:
Prune branches that are no longer than 35 pixels:
Prune 35 pixels from branches:
Prune all branches: