在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:JuliaNeuroscience/NIfTI.jl开源软件地址:https://github.com/JuliaNeuroscience/NIfTI.jl开源编程语言:Julia 100.0%开源软件介绍:NIfTI.jlUsageTo read a NIfTI file: using NIfTI
ni = niread("my.nii")
ni = niread("my.nii.gz") # gzipped NIfTI files are detected automatically The header is in To mmap the NIfTI file: ni = niread("my.nii", mmap=true) To get the TR and voxel size: vsize = voxel_size(ni.header) # In mm
tr = time_step(ni.header) # In ms To get the value of the volume along a given dimension: d = vox(ni, x, y, z, t) # Scaled by slope and intercept given in header, zero-based indexes
d = ni[x, y, z, t] # Scaled by slope and intercept given in header, one-based indexes
d = ni.raw[x, y, z, t] # Unscaled, one-based indexes Colons works everywhere, even with To write a volume: niwrite("my.nii", ni) It is also possible to construct a new volume from scratch; see the
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论