Package: RNifti 1.7.0

RNifti: Fast R and C++ Access to NIfTI Images

Provides very fast read and write access to images stored in the NIfTI-1, NIfTI-2 and ANALYZE-7.5 formats, with seamless synchronisation of in-memory image objects between compiled C and interpreted R code. Also provides a simple image viewer, and a C/C++ API that can be used by other packages. Not to be confused with 'RNiftyReg', which performs image registration and applies spatial transformations.

Authors:Jon Clayden [cre, aut], Bob Cox [aut], Mark Jenkinson [aut], Matt Hall [ctb], Rick Reynolds [ctb], Kate Fissell [ctb], Jean-loup Gailly [cph], Mark Adler [cph]

RNifti_1.7.0.tar.gz
RNifti_1.7.0.zip(r-4.5)RNifti_1.7.0.zip(r-4.4)RNifti_1.7.0.zip(r-4.3)
RNifti_1.7.0.tgz(r-4.4-x86_64)RNifti_1.7.0.tgz(r-4.4-arm64)RNifti_1.7.0.tgz(r-4.3-x86_64)RNifti_1.7.0.tgz(r-4.3-arm64)
RNifti_1.7.0.tar.gz(r-4.5-noble)RNifti_1.7.0.tar.gz(r-4.4-noble)
RNifti_1.7.0.tgz(r-4.4-emscripten)RNifti_1.7.0.tgz(r-4.3-emscripten)
RNifti.pdf |RNifti.html
RNifti/json (API)
NEWS

# Install 'RNifti' in R:
install.packages('RNifti', repos = c('https://jonclayden.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jonclayden/rnifti/issues

Uses libs:
  • zlib– Compression library
  • c++– GNU Standard C++ Library v3

On CRAN:

medical-imagingnifti-format

36 exports 45 stars 10.45 score 1 dependencies 53 dependents 3 mentions 432 scripts 3.0k downloads

Last updated 29 days agofrom:3ecea987b0. Checks:OK: 8 NOTE: 1. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 06 2024
R-4.5-win-x86_64NOTESep 06 2024
R-4.5-linux-x86_64OKSep 06 2024
R-4.4-win-x86_64OKSep 06 2024
R-4.4-mac-x86_64OKSep 06 2024
R-4.4-mac-aarch64OKSep 06 2024
R-4.3-win-x86_64OKSep 06 2024
R-4.3-mac-x86_64OKSep 06 2024
R-4.3-mac-aarch64OKSep 06 2024

Exports:analyzeHeaderasNiftichannelsdefaultInfoPaneldumpNiftiextensionextension<-ExtensionCodesextensionsextensions<-lyrndimniftiHeaderniftiVersionorientationorientation<-originpixdimpixdim<-pixunitspixunits<-qform<-readAnalyzereadNiftiretrieveNiftirgbArrayrotationsform<-timeSeriesPanelupdateNiftiviewvoxelToWorldworldToVoxelwriteAnalyzewriteNiftixform

Dependencies:Rcpp

Readme and manuals

Help Manual

Help pageTopics
Access to metadata elements$.niftiImage $<-.niftiImage
Create or modify an NIfTI image objectasNifti asNifti.default retrieveNifti updateNifti
Extract channels from RGB datachannels
Info panels for the built-in viewerdefaultInfoPanel timeSeriesPanel
Internal imagesas.array.internalImage dim.internalImage dim<-.internalImage internalImage [.internalImage [<-.internalImage
NIfTI extension codesExtensionCodes
NIfTI extensionsextension extension<- extensions extensions<-
Number of dimensionsndim
Dump or construct a raw NIfTI or ANALYZE headeranalyzeHeader dumpNifti niftiHeader print.analyzeHeader print.niftiHeader
Check the format version of a fileniftiVersion
Pixel dimensions and unitspixdim pixdim.default pixdim<- pixdim<-.default pixunits pixunits.default pixunits<- pixunits<-.default
Read NIfTI or ANALYZE format filesreadAnalyze readNifti
RGB arraysas.character.rgbArray as.raster.rgbArray rgbArray [.rgbArray
A basic 3D image viewerlyr view
Transform points between voxel and ``world'' coordinatesorigin voxelToWorld worldToVoxel
Write a NIfTI or ANALYZE format filewriteAnalyze writeNifti
Obtain or replace the ``xform'' transforms for an imageorientation orientation<- qform<- rotation sform<- xform