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.8.5
Depends: R (≥ 4.3.0), Matrix
Imports: purrr, assertthat, mmap, Rcpp, RcppParallel, RNifti, dbscan, stringr, methods, bigstatsr, RNiftyReg, future.apply, deflist, crayon, ggplot2, magrittr, grid
LinkingTo: Rcpp, RcppArmadillo, RcppParallel
Suggests: testthat, covr, knitr, roxygen2, rmarkdown, Gmedian, R.utils, spelling, xml2
Published: 2026-01-14
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: neuroim2 Cookbook (source, R code)
Working with 3D Image Volumes (source, R code)
Working with 4D NeuroVectors (NeuroVec) (source, R code)
Overview: Getting Started with neuroim2 (source, R code)
Resampling, downsampling, and reorientation (source, R code)
Smoothing and filtering with neuroim2 (source, R code)
ClusteredNeuroVec: Parcel-based 4D Analysis (source, R code)
Slice visualization with neuroim2 (source, R code)
Pipelines: Split, Map, and Reduce (source, R code)
Regions of Interest (ROI) (source, R code)

Downloads:

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

Linking:

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