Pruning
Details and Options
Examples
open all close allBasic Examples (5)
Pruning[[image]]Prune branches that are no longer than 35 pixels:
Pruning[[image], 35]Prune 35 pixels from branches:
Pruning[``[image]````, ``{35}]Pruning[[image], Infinity]Treat all values above .7 as foreground:
Pruning[[image], Infinity, 0.5]Scope (1)
Applications (3)
Count the legs of a centipede:
skeleton = Thinning[[image]]Compute the difference between skeleton and pruned skeleton:
legs = ImageSubtract[skeleton, Pruning[skeleton, {5}]]Count of legs would be equivalent to the number of pruned branches:
Max@MorphologicalComponents[legs]Pruning[Thinning[[image]], Infinity]NestList[Pruning, [image], 5]//ListAnimateRelated Guides
History
Text
Wolfram Research (2010), Pruning, Wolfram Language function, https://reference.wolfram.com/language/ref/Pruning.html.
CMS
Wolfram Language. 2010. "Pruning." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Pruning.html.
APA
Wolfram Language. (2010). Pruning. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Pruning.html
BibTeX
@misc{reference.wolfram_2026_pruning, author="Wolfram Research", title="{Pruning}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/Pruning.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_pruning, organization={Wolfram Research}, title={Pruning}, year={2010}, url={https://reference.wolfram.com/language/ref/Pruning.html}, note=[Accessed: 12-June-2026]}