Skip to content
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

Fix corrupted raw nrrd file output on Windows #843

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Jul 31, 2024

On Windows, when NRRD file was written into .nrrd format with raw pixels then the image was corrupted.

The root cause was that the file was opened in text mode and therefore each 0a byte was converted to 0d0a resulting in an incorrect byte stream.

On Windows, when NRRD file was written into .nrrd format with raw pixels then the image was corrupted.

The root cause was that the file was opened in text mode and therefore each 0a byte was converted to 0d0a resulting in an incorrect byte stream.
@neurolabusc neurolabusc merged commit 15dacce into rordenlab:development Aug 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants