You can write a script in Slicer to export the segmentations with respect to a reference geometry, e.g. like this.