neuroim2: Data Structures for Brain Imaging Data

A collection of data structures and methods for handling volumetric brain imaging data, with a focus on functional magnetic resonance imaging (fMRI). Provides efficient representations for three-dimensional and four-dimensional neuroimaging data through sparse and dense array implementations, memory-mapped file access for large datasets, and spatial transformation capabilities. Implements methods for image resampling, spatial filtering, region of interest analysis, and connected component labeling. General introduction to fMRI analysis can be found in Poldrack et al. (2024, "Handbook of functional MRI data analysis", <ISBN:9781108795760>).

Version: 0.19.1
Depends: R (≥ 4.3.0), Matrix
Imports: purrr, mmap, Rcpp, RcppParallel, RNifti, dbscan, stringr, methods, bigstatsr, RNiftyReg, future, future.apply, deflist, cli, ggplot2, magrittr, grid, patchwork
LinkingTo: Rcpp, RcppArmadillo, RcppParallel
Suggests: testthat, covr, knitr, pkgdown, ragg, roxygen2, rmarkdown, albersdown, Gmedian, R.utils, spelling, systemfonts, vdiffr, xml2
Published: 2026-10-07
DOI: 10.32614/CRAN.package.neuroim2
Author: Bradley R Buchsbaum [aut, cre, cph]
Maintainer: Bradley R Buchsbaum <brad.buchsbaum at gmail.com>
BugReports: https://github.com/bbuchsbaum/neuroim2/issues
License: MIT + file LICENSE
URL: https://github.com/bbuchsbaum/neuroim2, https://bbuchsbaum.github.io/neuroim2/
NeedsCompilation: yes
Language: en-US
Materials: NEWS
CRAN checks: neuroim2 results

Documentation:

Reference manual: neuroim2.html , neuroim2.pdf
Vignettes: Large data (source, R code)
neuroim2: a tour (source, R code)
Reading and writing images (source, R code)
Regions and searchlights (source, R code)
Resampling and orientation (source, R code)
Smoothing and filtering (source, R code)
Spaces and coordinates (source, R code)
Visualization (source, R code)
Volumes and vectors (source, R code)

Downloads:

Package source: neuroim2_0.19.1.tar.gz
Windows binaries: r-devel: neuroim2_0.13.0.zip, r-release: neuroim2_0.13.0.zip, r-oldrel: neuroim2_0.13.0.zip
macOS binaries: r-release (arm64): neuroim2_0.13.0.tgz, r-oldrel (arm64): neuroim2_0.13.0.tgz, r-release (x86_64): neuroim2_0.13.0.tgz, r-oldrel (x86_64): neuroim2_0.13.0.tgz
Old sources: neuroim2 archive

Reverse dependencies:

Reverse suggests: bidser

Linking:

Please use the canonical form https://CRAN.R-project.org/package=neuroim2 to link to this page.