Closed jcohenadad closed 1 year ago
As per https://github.com/spinalcordtoolbox/PAM50/issues/28#issuecomment-1771540105, a suggestion would be to have:
14, point-wise spinal level labels, PAM50_label_spinal_levels.nii.gz
15, spinal cord mask with spinal levels, PAM50_spinal_levels.nii.gz
Oops! on 38f6ce3418aebcee1458594f22646dc94ca889f6 I noticed a value=1 at the very bottom:
It extends for 9 slices. Probably related to the code, which rounds segment length and then accumulate errors going caudally: https://github.com/spinalcordtoolbox/PAM50/blob/38f6ce3418aebcee1458594f22646dc94ca889f6/scripts/generate_spinal_levels.py#L94
We can merge and fix https://github.com/spinalcordtoolbox/spinalcordtoolbox/issues/4248 afterwards
This PR updates the spinal levels with an improved version. See full context in #16.
As the new spinal levels are integer (vs. the previous spinal levels which were probabilistic), they are contained within a single file located under
PAM50/template
(previouslyPAM50/spinal_levels
). The following changes are therefore necessary:PAM50_spinal_levels.nii.gz
underPAM50/template
PAM50/spinal_levels
sct_warp_template
, remove the option-s
because the spinal levels will be warped by default alongside all files underPAM50/template
Fixes #16
Related: https://github.com/spinalcordtoolbox/PAM50/pull/21