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

multichannelToVector(multichannelimage, mask)

Arguments

multichannelimage

input multichannel image

mask

mask of same dimensionality as multichannelimage

Value

vector is output

Author

Avants BB

Examples


# see vectorToMultichannel