Learn R Programming

⚠️There's a newer version (1.33.0) of this package.Take me there.

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

810

Version

1.32.3

License

GPL-2

Maintainer

John Muschelli

Last Published

October 23rd, 2022

Functions in neurobase (1.32.3)

copyNIfTIHeader

Copy NIfTI Header to an array
colorbar

Add a colorbar to an ortho2 object
cut.nifti

Perform Cut on an image
hist.nifti

Histogram of Values in an Image
datatype

Change Data type for img
flip_img

Flip NifTI Image
getEmptyImageDimensions

Get Empty Image Dimensions
double_ortho

Double Orthographic Display
file_imgext

Get Image file extension
dropEmptyImageDimensions

Drop Empty Image Dimensions
images2matrix

Transform set of images to matrix
finite_img-methods

Finite Image
fast_dice_tab

Fast Dice Tabulation
fast_readnii

Reading NIfTI images through RNifti
img_list_to_ts

Image List to Time Series
ensure_array

Ensure an array output
emptyImageDimensionsMask

Make Mask from Empty Image Dimensions
maskEmptyImageDimensions-methods

Apply Masking from Empty Image Dimensions
mask_img

Mask Image
img_indices

Retrieve Image Indices
img_colour_df

Convert Image to Data.frame with Colors
quantile.nifti

Sample Quantiles
parse_img_ext

Parse Image Extensions
ortho_diff

Plot differences for Prediction and Gold Standard
ortho2

Orthographic Display, added options
multi_overlay

Create Multi-Image Plot with Overlays
minmax_img-methods

Normalize Image using Range
img_ts_to_list

Image Time Series to list
img_ts_to_matrix

Image Time Series to Matrix
newnii

Resets image parameters for a copied nifti object
img_ts_to_df

Image Time Series to Data.frame
niftiarr

Make new nifti from array
nii.stub

Grab nii file stubname
mask_vals

Extract or Replace Values Inside a Mask
orient_rpi

Reorient an Image to RPI orientation
mean.nifti

Mean of Values in an Image
replace_dropped_dimensions

Remake Dropped Dimensions
quantile_img

Create Quantile Image
random_nifti

Create Random `nifti` object
remap_filename

Build Filename (usually for images)
remake_img

Remake Image from Vector
read_rpi

Read NIfTI file reoriented to RPI
window_img

nifti image windower
writeNIfTI2

writeNIfTI with default non-reorientation
replace_outside_surface

Replace Values Outside Surface of image
reverse_orient_rpi

Reverse Reorientation an Image to RPI orientation
rescale_img

Image Rescaler
robust_window

Window image based on quantiles of Image
same_dims

Check if Objects have Same Dimensions
write_nifti

General NIfTI Writer
subset_dti-methods

Subset DTI data based on b-values #'
replaceEmptyImageDimensions-methods

Replace Subsetting from Empty Image Dimensions
tempimg

Create temporary nii.gz file
xyz

Image Center of Gravity Wrapper
zscore_img

Get Z-score over a margin of an img
randomize_mask

Randomize Image based on Mask
readNIfTI2

readNIfTI with default non-reorientation
separate_img-methods

Separate Labeled Image into Multiple Binary Images
zlimmer

Find Image z-limits
slice_colour_df

Slice a Image Color Data.frame
zero_pad

Zero pads an image
checkimg-methods

Force object to filename
breaker

Find Breaks for nifti Image Plotting
checknii-methods

Force object to filename with .nii extension
check_mask_fail

Check Mask is Binary, Fail otherwise
check_mask

Check Mask is Binary
applyEmptyImageDimensions-methods

Apply Subsetting from Empty Image Dimensions
check_nifti-methods

Check if nifti image or read in a nifti image
check_outfile

Check output filename
boxplot.nifti

Boxplot of Values in an Image
check_nifti_header-methods

Check if nifti image or read in a nifti header
cog

Image Center of Gravity
dicer

Calculate Dice from a Table
checkniigz-methods

Force object to filename with .nii.gz extension
density.nifti

Density of Values in an Image