A Low-Cost Shape-from-Focus Workflow for 3D Geometric Morphometrics: Proof of Concept Using Trypoxylus dichotomus (Linnaeus, 1771) (Coleoptera: Scarabaeidae) Genitalia
DOI:
https://doi.org/10.37486/2675-1305.ec07033Keywords:
landmark dimensionality, size proxy, morphology, allometryAbstract
Two-dimensional (2D) photography is widely used in geometric morphometrics (GM), but loss of information and orientation errors remain concerns in volumetric structures. Three-dimensional (3D) imaging provides more accurate shape representations for such structures, but it typically requires expensive equipment. We developed a low-cost automated workflow based on a shape-from-focus (SFF) algorithm to reconstruct partial 3D surfaces from uniformly stepped focus stacks. As a proof of concept, we applied this method to the male genitalia of Trypoxylus dichotomus (Linnaeus, 1771) (Coleoptera: Scarabaeidae), comparing 2D and 3D landmark analyses. The reconstructed 3D models yielded reliable regions for landmark and semilandmark placement. Both 2D and 3D analyses revealed consistent hypoallometric scaling, but the choice of size proxy (3D centroid size versus linear length) had a greater impact on allometric inference than the dimensionality of landmarks. The SFF workflow provides a rapid and inexpensive alternative for generating 3D models suitable for GM, and highlights the importance of validating 2D measures against centroid-based proxies.
Downloads
References
Adams, D. C.; Collyer, M.; Kaliontzopoulou, A.; Sherratt, E. (2016) Geomorph: Software for geometric morphometric analyses. https://hdl.handle.net/1959.11/21330
Bartol, K.; Bojanić, D.; Petković, T.; Pribanić, T. (2021) A review of body measurement using 3D scanning. IEEE Access, 9: 67281-67301. doi: 10.1109/ACCESS.2021.3076595
Bradski, G. (2000). The OpenCV library. Dr. Dobb’s Journal of Software Tools.
Buser, T. J., Sidlauskas, B. L.; Summers, A. P. (2018) 2D or Not 2D? Testing the Utility of 2D Vs. 3D Landmark Data in Geometric Morphometrics of the Sculpin Subfamily Oligocottinae (Pisces; Cottoidea). The Anatomical Record, 301(5): 806-818. doi: 10.1002/ar.23752
Cardini, A. (2014) Missing the third dimension in geometric morphometrics: how to assess if 2D images really are a good proxy for 3D structures? Hystrix the Italian Journal of Mammalogy, 25(2): 9. doi: 10.4404/hystrix-25.2-10993
Falkingham, P. L. (2012) Acquisition of high resolution three-dimensional models using free, open-source, photogrammetric software. Palaeontologia Electronica, 15: 15.1.1T. doi: 10.26879/264
Harris, C. R.; Millman, K. J.; van der Walt, S. J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N. J., et al. (2020) Array programming with NumPy. Nature, 585(7825): 357-362. doi: 10.1038/s41586-020-2649-2
Hunter, J. D. (2007) Matplotlib: A 2D Graphics Environment. Computing in Science & Engineering, 9(3): 90-95. doi: 10.1109/mcse.2007.55
Kendall, D. G. (1977) The diffusion of shape. Advances in Applied Probability, 9(3):, 428-430. doi: 10.2307/1426091
Klingenberg, C. P. (2016) Size, shape, and form: concepts of allometry in geometric morphometrics. Development Genes and Evolution, 226(3): 113-137. 10.1007/s00427-016-0539-2
Medina, J. J.; Maley, J. M.; Sannapareddy, S.; Medina, N. N.; Gilman, C. M.; McCormack, J. E. (2020) A rapid and cost-effective pipeline for digitization of museum specimens with 3D photogrammetry. PLOS One, 15(8): e0236417. doi: 10.1371/journal.pone.0236417
Noguchi, M.; Nayar, S. K. (1994) Microscopic shape from focus using active illumination. In Proceedings of 12th International Conference on Pattern Recognition, 1: 147-152. doi: 10.1109/ICPR.1994.576247
Pertuz, S.; Puig, D.; Garcia, M. A. (2013) Analysis of focus measure operators for shape-from-focus. Pattern Recognition, 46(5): 1415-1432. doi: 10.1016/j.patcog.2012.11.011
R Core Team (2022) R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.r-project.org/
Wasiljew, B. D.; Pfaender, J.; Wipfler, B.; Utama, I. V.; Herder, F. (2020) Do we need the third dimension? Quantifying the effect of the z-axis in 3D geometric morphometrics based on sailfin silversides (Telmatherinidae). Journal of Fish Biology, 97(2): 537-545. doi: 10.1111/jfb.14410
Zelditch, M. L.; Swiderski, D. L.; Sheets, H. D. (2012) Geometric morphometrics for biologists: A primer. Elsevier Academic Press.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Author(s)

This work is licensed under a Creative Commons Attribution 4.0 International License.
© The author(s) - Published by Sociedade Entomológica do Brasil
