Learn R Programming

ANTsR (version 0.4.0)

multichanneltovector: Convert multichannel antsImage to a vector.

Description

Employs a mask to flatten each channel of a multi-channel image into a contiguous piece of a vector.

Usage

multichanneltovector(multichannelimage, mask)

Arguments

multichannelimage

input multichannel image

mask

mask of same dimensionality as multichannelimage

Value

vector is output

Examples

Run this code
# NOT RUN {
# see vectortomultichannel

# }

Run the code above in your browser using DataLab