nifti.io Medical Imaging Processing Toolkit User Manual

A R package for reading and writing NIfTI-1.1 files with voxel-level operations and data frame conversion.


nifti.io Medical Imaging Processing Toolkit User Manual - cover page
Brand
nifti.io
Document type
User Manual
Language
Chinese
Pages
10
File format
PDF
File size
95 KB
Published
22 November, 2026
Updated
22 November, 2026
MD5 checksum
E1CFC0CA02E473259F836C2B312EB12F

About this manual

This manual describes the nifti.io R package for handling NIfTI-1.1 files. It provides functions to retrieve header information, read volumes and voxels, and write data frames to NIfTI files. The package supports operations like initializing empty files, reading specific volumes or voxel coordinates, and writing data to specified locations. It is designed for scientific use in neuroimaging and requires unzipped files for proper operation.

The package includes examples for common tasks such as getting image dimensions, spacing, and orientation, initializing new files, and writing model coefficients to NIfTI files. It is maintained by Timothy R. Koscik and licensed under MIT. This manual is written in Chinese.

What's inside

  • info.nii
  • init.nii
  • read.nii.volume
  • read.nii.voxel
  • table.to.nii
  • write.nii.volume
  • write.nii.voxel

Frequently asked questions

How do I get the number of voxels in a NIfTI file?

Use info.nii(nii.file, field = "dimensions") to retrieve the number of voxels.

How do I read a specific voxel value at coordinates?

Use read.nii.voxel(nii.file, coords) where coords is a numeric vector like c(x,y,z,t).

How do I write a data frame to a NIfTI file?

Use table.to.nii(in.table, coords, save.dir, ...) to write a data frame to a specified coordinate in a NIfTI file.

Download PDF (95 KB)