Learn R Programming

ANTsR (version 1.0)

matrixToImages: Convert rows of a matrix to images

Description

Unmasks rows of a matrix and writes as images.

Usage

matrixToImages(dataMatrix, mask)

Arguments

dataMatrix

A matrix such as that created by imagesToMatrix.

mask

An antsImage containing a binary mask. Rows of the matrix are unmasked and written as images. The mask defines the output image space.

See Also

imagesToMatrix, getMask

Examples

Run this code
# NOT RUN {
  # mat = matrixToImages( aMat, mask )
# }

Run the code above in your browser using DataLab