Learn R Programming

imbibe (version 0.1.1)

run: Run a pipeline and return an image result

Description

Run a pipeline and return an image result

Usage

run(pipe, precision = getOption("imbibe.precision", "double"))

Value

An image

Arguments

pipe

An operation pipeline.

precision

The internal precision used for calculations. May be "double", "float" or "single"; the latter two are equivalent.

Examples

Run this code
im <- RNifti::readNifti(system.file("extdata", "example.nii.gz", package="RNifti"))
pipe <- im %>% threshold_below(500) %>% binarise()
run(pipe)

Run the code above in your browser using DataLab