Fetch the original orientation of the image and label
Change the orientation of the image and label to the orientation specified by -change-orient
Open the viewer
Change the orientation of the image and label back to the original orientation
This works fine if all the steps are executed. However, when the correction process is interrupted, for example, by pressing ctrl + C during steps 2 and 3, the orientation of the image and label will stay changed. This might be suboptimal as we are manipulating the original image.
The recently added
-change-orient
flag (https://github.com/spinalcordtoolbox/manual-correction/pull/100) works as follows:-change-orient
This works fine if all the steps are executed. However, when the correction process is interrupted, for example, by pressing
ctrl
+C
during steps 2 and 3, the orientation of the image and label will stay changed. This might be suboptimal as we are manipulating the original image.For now, I have cross-refed this issue to the
-change-orient
help (https://github.com/spinalcordtoolbox/manual-correction/commit/9a57a8e9564e26defb8bee2e94e92ba417268ea7). A long-term solution might involve creating a tmp directory, copying the original files and reorienting these copies.