-
Notifications
You must be signed in to change notification settings - Fork 51
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
Byteskip minus1 fixing #74
Changes from all commits
7339cff
a54994b
eef5b62
f0fa781
2bbe06a
7cc511b
dae4782
4a144ef
f82bfcb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
NRRD0004 | ||
# Complete NRRD file format specification at: | ||
# http://teem.sourceforge.net/nrrd/format.html | ||
type: short | ||
dimension: 3 | ||
space: left-posterior-superior | ||
sizes: 30 30 30 | ||
byte skip: -5 | ||
space directions: (1,0,0) (0,1,0) (0,0,1) | ||
kinds: domain domain domain | ||
endian: little | ||
encoding: raw | ||
space origin: (0,0,0) | ||
data file: BallBinary30x30x30.raw |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
NRRD0004 | ||
# Complete NRRD file format specification at: | ||
# http://teem.sourceforge.net/nrrd/format.html | ||
type: short | ||
dimension: 3 | ||
space: left-posterior-superior | ||
sizes: 30 30 30 | ||
byte skip: -1 | ||
space directions: (1,0,0) (0,1,0) (0,0,1) | ||
kinds: domain domain domain | ||
endian: little | ||
encoding: raw | ||
space origin: (0,0,0) | ||
data file: BallBinary30x30x30.raw |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
NRRD0004 | ||
# Complete NRRD file format specification at: | ||
# http://teem.sourceforge.net/nrrd/format.html | ||
type: short | ||
dimension: 3 | ||
space: left-posterior-superior | ||
sizes: 30 30 30 | ||
byte skip: -1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The nifti file has the following header at the beginning before accessing image data:
When we add |
||
space directions: (1,0,0) (0,1,0) (0,0,1) | ||
kinds: domain domain domain | ||
endian: little | ||
encoding: gzip | ||
space origin: (0,0,0) | ||
data file: BallBinary30x30x30.nii.gz |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
NRRD0004 | ||
# Complete NRRD file format specification at: | ||
# http://teem.sourceforge.net/nrrd/format.html | ||
type: short | ||
dimension: 3 | ||
space: left-posterior-superior | ||
sizes: 30 30 30 | ||
# byte skip: -1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
space directions: (1,0,0) (0,1,0) (0,0,1) | ||
kinds: domain domain domain | ||
endian: little | ||
encoding: gzip | ||
space origin: (0,0,0) | ||
data file: BallBinary30x30x30.nii.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also added a sanity check for line skip as noted here