Hi all!
I am trying to calculate the warping field from my T1 image to the template.
Since the automatic vertebrae labeling failed, I manually labeled the vertebrae.
When I enter all the disc labellings (3,4,5,6 and 7), I get an error, there are too many labellings.
Generate labels from template vertebral labeling
Check if provided labels are available in the template
Traceback (most recent call last):
File "/home/affneu/evefra/sct_5.8/spinalcordtoolbox/scripts/sct_register_to_template.py", line 817, in <module>
main(sys.argv[1:])
File "/home/affneu/evefra/sct_5.8/spinalcordtoolbox/scripts/sct_register_to_template.py", line 438, in main
if labels[-1].value > labels_template[-1].value:
IndexError: list index out of range
I decided to only label three disc (e.g 3,4 and 7) and try coregistering again. But I constantly get this error, no matter which disc I label.
ERROR: Labels {6} were lost during straightening transform. This can be caused by the labels being outside the ROI of the spinal cord segmentation. Please make sure all labels are within the ROI of the spinal cord segmentation.