run {imbibe}R Documentation

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"))

Arguments

pipe

An operation pipeline.

precision

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

Value

An image

Examples

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

[Package imbibe version 0.1.1 Index]