We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
While using the @itk-wasm/image-io typescript "demo webpage" the direction array of an input image is different than the output image.
console.log(image.direction)
out.nii
With this image: labelmap-nii.zip
Input direction array is "0": 1, "1": -1.9901096072372604e-10, "2": 4.9618989722737154e-11, "3": 2.0510340648094427e-10, "4": 0.9702957283983676, "5": -0.24192188394878414, "6": 1.3830191008187543e-17, "7": 0.2419218870873018, "8": 0.970295729180888
"0": 1, "1": -1.9901096072372604e-10, "2": 4.9618989722737154e-11, "3": 2.0510340648094427e-10, "4": 0.9702957283983676, "5": -0.24192188394878414, "6": 1.3830191008187543e-17, "7": 0.2419218870873018, "8": 0.970295729180888
After writing to .nii or .nrrd, readImage gives direction array "0": 1, "1": 2.051034067230632e-10, "2": 1.3704920054353578e-17, "3": -1.9901096048879907e-10, "4": 0.9702957283983676, "5": 0.24192188394878414, "6": 4.9618989472755004e-11, "7": -0.2419218870873018, "8": 0.970295729180888
.nii
.nrrd
"0": 1, "1": 2.051034067230632e-10, "2": 1.3704920054353578e-17, "3": -1.9901096048879907e-10, "4": 0.9702957283983676, "5": 0.24192188394878414, "6": 4.9618989472755004e-11, "7": -0.2419218870873018, "8": 0.970295729180888
Indexes 5 and 7 are negated.
The text was updated successfully, but these errors were encountered:
fix(write-image): avoid transposing direction matrix
ad9ca85
Fixes #1011
chore(release): 1.0.0-b.158 [skip ci]
c27fe8a
# [1.0.0-b.158](itk-wasm-v1.0.0-b.157...itk-wasm-v1.0.0-b.158) (2023-12-06) ### Bug Fixes * **write-image:** avoid transposing direction matrix ([ad9ca85](ad9ca85)), closes [#1011](#1011) ### Features * **image-io:** export extensionToImageIo in index ([b9fffea](b9fffea))
🎉 This issue has been resolved in version 1.0.0-b.158 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
While using the @itk-wasm/image-io typescript "demo webpage" the direction array of an input image is different than the output image.
Steps
console.log(image.direction)
, run readImage, note direction array.out.nii
, "Run".out.nii
, note direction array. Expect array to be similar to input image direction.With this image:
labelmap-nii.zip
Input direction array is
"0": 1, "1": -1.9901096072372604e-10, "2": 4.9618989722737154e-11, "3": 2.0510340648094427e-10, "4": 0.9702957283983676, "5": -0.24192188394878414, "6": 1.3830191008187543e-17, "7": 0.2419218870873018, "8": 0.970295729180888
After writing to
.nii
or.nrrd
, readImage gives direction array"0": 1, "1": 2.051034067230632e-10, "2": 1.3704920054353578e-17, "3": -1.9901096048879907e-10, "4": 0.9702957283983676, "5": 0.24192188394878414, "6": 4.9618989472755004e-11, "7": -0.2419218870873018, "8": 0.970295729180888
Indexes 5 and 7 are negated.
The text was updated successfully, but these errors were encountered: