Code for calculating mean absolute surface distance between two faces in T1w MRI images.
./v1contains the original code used in the paper../v2contains an updated version which improves mesh manipulation and adds visualization for quality control.
If any part of the code is useful for your research, please consider citing the following paper:
@article{GAO2025111112,
title = {Pitfalls of defacing whole-head MRI: re-identification risk with diffusion models and compromised research potential},
author = {Chenyu Gao and Kaiwen Xu and Michael E. Kim and Lianrui Zuo and Zhiyuan Li and Derek B. Archer and Timothy J. Hohman and Ann Zenobia Moore and Luigi Ferrucci and Lori L. Beason-Held and Susan M. Resnick and Christos Davatzikos and Jerry L. Prince and Bennett A. Landman},
journal = {Computers in Biology and Medicine},
volume = {197},
pages = {111112},
year = {2025},
issn = {0010-4825},
doi = {https://doi.org/10.1016/j.compbiomed.2025.111112},
url = {https://www.sciencedirect.com/science/article/pii/S0010482525014659}
}