NIfTI.jl
NIfTI.jl copied to clipboard
Julia module for reading/writing NIfTI MRI files
The current implementation of `esize` makes an `@assert` check that the size is _not_ divisible by 16, which I believe is the opposite of what is intended. Minimal example: dset...
Added convenience function for creating new volumes, analogous to [nilearn's image.new_img_like](https://nilearn.github.io/modules/generated/nilearn.image.new_img_like.html). This is perhaps too trivial to add as a function, but `new_img_like` is something that I reach for regularly...
When creating a Integer valued nifti: `ni = NIVolume(Int16.(round.(rand(2,2,2))))` its type is `NIVolume{Float32,3,Array{Int16,3}}` I am not sure why, but it may have to do with the return type of getindex...
Hi When I was using `niwrite` to save `*nii.gz` ir `*.nii` files, they seemed to be corrupted consistently. The version infos are shown below: ```julia (GMMFusion.jl) pkg> status NIfTI Status...
Hi all, over in the NIPY world, we've just decided to deprecate (u)int64 support in NIfTI: https://github.com/nipy/nibabel/issues/1089 Basically nobody else (AFNI, FSL, SPM) supports them, and there's no compelling use...
Is there a way to reorient the NIfTI volumes using the affine matrix `getaffine` and axcodes like RAS? I was thinking of something like https://nipy.org/nibabel/reference/nibabel.orientations.html#nibabel.orientations.ornt_transform
Why does the constructor not refer to the type of the element of `raw`? The lines https://github.com/JuliaNeuroscience/NIfTI.jl/blob/704f7c8576abe244dff3ec31a72be393b11e10d9/src/NIfTI.jl#L152, https://github.com/JuliaNeuroscience/NIfTI.jl/blob/704f7c8576abe244dff3ec31a72be393b11e10d9/src/NIfTI.jl#L153 create the volume of type `Float32` instead of `T`. Shouldn't this be...
I am currently analyzing a lung CT data set. A simple task is to obtain the pixel spacing of the image for statistics. When I use niread(), I have to...
should do the trick for #26