This is the Matlab code for extracting geometric and topological features used in the study described in: Kshitiz Dhakal, Qian Zhu, Bo Zhang, Mao Li, Song Li. (2020). Analysis of shoot architecture traits in edamame reveals potential strategies to improve harvest efficiency.