New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qform/sform differ #7
Comments
@joshuacwnewton I'm a bit lost with this issue-- didn't we force the copy of the sform/qform to avoid this crash? Or if not, shouldn't we output a more helpful message, such as: "To fix the problem, run sct_image -i PAST-IMAGE-NAME -set-sform-to-qform"? |
To temporarily overcome the issue i did this:
|
We do output a message, but it was written using a separate I agree that the log isn't clear enough the way it is now. |
Ahh, that's a useful screenshot! Because we use the absolute paths, the message is very verbose, like a wall of text. It is easy to gloss over and ignore, I think. So, some work could be done to make it more readable. |
suggestion:
|
- Output files into 'template' folder. Fixes #5 - Instantiate new nibabel object: by default the qform_code and sform_code are 0,2 - Uses the same diagonal affine matrix for both qform/sform. Fixes #7 - Now, the translation (4th column) is only zero. Previously, it was [0, 0, 33]. There was no good reason for it. - Convert dtype to UINT16 as it takes less space and precision is not an issue here. Related to #1 - Save with conventional name. Fixes #9
Causing the following crash:
Suggested fix: match qform/sform and update this template.
Related to spinalcordtoolbox/spinalcordtoolbox#3174
The text was updated successfully, but these errors were encountered: