multichannelToVector: Convert multichannel 'antsImage' to a vector.

View source: R/multichannelPCA.R

multichannelToVectorR Documentation

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

Author(s)

Avants BB

Examples


# see vectorToMultichannel


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.