Learn R Programming

neurobase

The goal of neurobase is to add functionality to oro.nifti and it is the baseline package for Neuroconductor.

Installation

You can install neurobase from github with:

# install.packages("devtools")
devtools::install_github("muschellij2/neurobase")

Copy Link

Version

Install

install.packages('neurobase')

Monthly Downloads

5,509

Version

1.34.0

License

GPL-2

Maintainer

John Muschelli

Last Published

October 17th, 2025

Functions in neurobase (1.34.0)

finite_img-methods

Finite Image
getEmptyImageDimensions

Get Empty Image Dimensions
density.nifti

Density of Values in an Image
cut.nifti

Perform Cut on an image
dropEmptyImageDimensions

Drop Empty Image Dimensions
images2matrix

Transform set of images to matrix
file_imgext

Get Image file extension
ensure_array

Ensure an array output
fast_readnii

Reading NIfTI images through RNifti
maskEmptyImageDimensions-methods

Apply Masking from Empty Image Dimensions
mask_img

Mask Image
mask_vals

Extract or Replace Values Inside a Mask
img_ts_to_matrix

Image Time Series to Matrix
img_ts_to_list

Image Time Series to list
img_ts_to_df

Image Time Series to Data.frame
img_list_to_ts

Image List to Time Series
mean.nifti

Mean of Values in an Image
img_indices

Retrieve Image Indices
nii.stub

Grab nii file stubname
niftiarr

Make new nifti from array
img_colour_df

Convert Image to Data.frame with Colors
ortho2

Orthographic Display, added options
orient_rpi

Reorient an Image to RPI orientation
multi_overlay

Create Multi-Image Plot with Overlays
minmax_img-methods

Normalize Image using Range
ortho_diff

Plot differences for Prediction and Gold Standard
quantile_img

Create Quantile Image
random_nifti

Create Random `nifti` object
parse_img_ext

Parse Image Extensions
replace_outside_surface

Replace Values Outside Surface of image
newnii

Resets image parameters for a copied nifti object
replaceEmptyImageDimensions-methods

Replace Subsetting from Empty Image Dimensions
remap_filename

Build Filename (usually for images)
quantile.nifti

Sample Quantiles
randomize_mask

Randomize Image based on Mask
readNIfTI2

readNIfTI with default non-reorientation
replace_dropped_dimensions

Remake Dropped Dimensions
slice_colour_df

Slice a Image Color Data.frame
separate_img-methods

Separate Labeled Image into Multiple Binary Images
window_img

nifti image windower
same_dims

Check if Objects have Same Dimensions
write_nifti

General NIfTI Writer
xyz

Image Center of Gravity Wrapper
writeNIfTI2

writeNIfTI with default non-reorientation
zscore_img

Get Z-score over a margin of an img
reverse_orient_rpi

Reverse Reorientation an Image to RPI orientation
remake_img

Remake Image from Vector
robust_window

Window image based on quantiles of Image
read_rpi

Read NIfTI file reoriented to RPI
tempimg

Create temporary nii.gz file
rescale_img

Image Rescaler
subset_dti-methods

Subset DTI data based on b-values #'
zero_pad

Zero pads an image
zlimmer

Find Image z-limits
check_nifti_header-methods

Check if nifti image or read in a nifti header
check_mask_fail

Check Mask is Binary, Fail otherwise
check_outfile

Check output filename
applyEmptyImageDimensions-methods

Apply Subsetting from Empty Image Dimensions
checkimg-methods

Force object to filename
boxplot.nifti

Boxplot of Values in an Image
breaker

Find Breaks for nifti Image Plotting
check_mask

Check Mask is Binary
checkniigz-methods

Force object to filename with .nii.gz extension
check_nifti-methods

Check if nifti image or read in a nifti image
checknii-methods

Force object to filename with .nii extension
colorbar

Add a colorbar to an ortho2 object
copyNIfTIHeader

Copy NIfTI Header to an array
double_ortho

Double Orthographic Display
fast_dice_tab

Fast Dice Tabulation
flip_img

Flip NIfTI Image
dicer

Calculate Dice from a Table
datatype

Change Data type for img
emptyImageDimensionsMask

Make Mask from Empty Image Dimensions
cog

Image Center of Gravity
hist.nifti

Histogram of Values in an Image