Learn R Programming

tractor.base (version 3.5.0)

Read, Manipulate and Visualise Magnetic Resonance Images

Description

Functions for working with magnetic resonance images. Reading and writing of popular file formats (DICOM, Analyze, NIfTI-1, NIfTI-2, MGH); interactive and non-interactive visualisation; flexible image manipulation; metadata and sparse image handling.

Copy Link

Version

Install

install.packages('tractor.base')

Monthly Downloads

1,023

Version

3.5.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Jon Clayden

Last Published

October 29th, 2025

Functions in tractor.base (3.5.0)

asMriImage

Creating MriImage objects from data
locateExecutable

Find or run an external executable file
fillShells

Assign image volumes to shells
equivalent

Test two numeric vectors for equivalence
allEqual

Test whether all elements of a vector are equal
deduplicate

Concatenate and deduplicate vectors
emptyMatrix

The empty matrix
getColourScale

Obtaining colour scales
embrace

Combine similar strings into one
asDiffusionScheme

Create a DiffusionScheme object from data
implode

Create a character string by concatenating the elements of a vector
mergeMriImages

Merging MriImage objects
imageFiles

Image file sets
[,SparseArray,ANY,ANY-method

Indexing methods
fx

Shorthand anonymous functions
createNeighbourhoodInfo

Image neighbourhoods
infix

Resolve a variable to a default when NULL
indexList

Extract one or more elements from a list
identifyImageFileNames

Resolve image paths
loso

Lists of serialisable objects
nilObject

The nil object
promote

Promote a vector to a single-column or single-row matrix
readImageFile

Reading and writing image files
readDicomFile

Read a DICOM file into a DicomMetadata object
readDicomDirectory

Read a directory of DICOM files
pluralise

Number agreement with a vector
printLabelledValues

Pretty print labelled information
newSparseArrayWithData

Create a SparseArray object
readDiffusionScheme

Read and write diffusion schemes
resolvePath

Functions for file name and path manipulation
createSliceGraphic

Visualise MriImage objects
resolveVector

Miscellaneous vector functions
augmentedInfoPanel

A simple interactive viewer for MriImage objects
threadSafeTempFile

Obtain thread-safe temporary file names
where

Compact conditional values
isDeserialisable

Reference object serialisation and deserialisation
sortDicomDirectories

Sort a directory of DICOM files into series
SparseArray-class

The SparseArray class
DiffusionScheme-class

The DiffusionScheme class
MriImage-class

The MriImage class
Optional

Optional types
DicomMetadata-class

The DicomMetadata class
FileSet-class

The FileSet class
ImageFileSet-class

The ImageFileSet class
SerialisableObject-class

The SerialisableObject class
FileMap-class

The FileMap class
TractorObject-class

The TractorObject class