The code is available [here](https://github.com/spinalcordtoolbox/spinalcordtoolbox/tree/master/dev/atlas).