neurojson / jnifti Goto Github PK
View Code? Open in Web Editor NEWAn extensible file format for storage of neuroimaging data:
An extensible file format for storage of neuroimaging data:
>> jnii = loadjnifti('colin27_zlib.bnii')
jnii =
struct with fields:
NIFTIHeader: [1×1 struct]
NIFTIData: [181×217×181 uint8]
>> jnii.NIFTIHeader.Affine
ans =
3×4 uint8 matrix
1 0 0 0
1 0 0 0
1 0 0 0
I guess that the the srow_x
, srow_y
and srow_z
arrays are used to make the Affine matrix. According to https://brainder.org/2012/09/23/the-nifti-file-format/ these arrays should be float (i.e., single precision).
Looking more critically at the correspondence between nifti and jnifti, I would actually say that there should not be a 3x4 Affine array, but that it should have the 1x4 srow_x
, srow_y
and srow_z
arrays.
this is what I expect
>> mri = ft_read_mri('~/matlab/fieldtrip/template/anatomy/single_subj_T1_1mm.nii')
the coordinate system appears to be 'scanras'
mri =
struct with fields:
dim: [181 217 181]
anatomy: [181×217×181 double]
hdr: [1×1 struct]
transform: [4×4 double]
unit: 'mm'
>> mri.transform
ans =
1 0 0 -91
0 1 0 -127
0 0 1 -73
0 0 0 1
and this is what I get
>> mri = ft_read_mri('colin27_zlib.jnii')
mri =
struct with fields:
hdr: [1×1 struct]
anatomy: [181×217×181 uint8]
dim: [181 217 181]
unit: 'mm'
coordsys: 'scanras'
transform: [4×4 double]
>> mri.transform
ans =
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
This is on-going.
NeuroFedora pagure tracker:
https://pagure.io/neuro-sig/NeuroFedora/issue/298
Package spec file:
https://github.com/fangq/fedorapkg/tree/jnifti
Redhat new package review request:
https://bugzilla.redhat.com/show_bug.cgi?id=1758007
Are there plans to integrate the niftiread, niftiwrite and niftiinfo routines in GNU Octave Image toolbox?
https://savannah.gnu.org/patch/?9853
>> jnii = loadjnifti('colin27_zlib.bnii')
jnii =
struct with fields:
NIFTIHeader: [1×1 struct]
NIFTIData: [181×217×181 uint8]
>> jnii.NIFTIHeader.Affine
ans =
3×4 uint8 matrix
1 0 0 0
1 0 0 0
1 0 0 0
I had expected it to be eye(3,4)
, consistent with the colin27_zlib.jnii
sample.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.