Ha! I had a side project during my PhD to build a segmenting and straightening program for this project!
Source code is here: https://github.com/fwilliams/unwind
Paper is here: https://arxiv.org/abs/1904.04890
It got accepted to Chi 2020 which was cancelled so the paper never got presented, sadly!