matrixToImages: Convert rows of a matrix to images

Description Usage Arguments Author(s) See Also Examples

Description

Unmasks rows of a matrix and writes as images.

Usage

1
matrixToImages(dataMatrix, mask, outputRoot)

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.

outputRoot

A string that is prepended to output image names. Output images will be numbered by row number in the input matrix, starting with 001.

Author(s)

Cook PA

See Also

imagesToMatrix, getMask

Examples

1
2
3
4
## Not run: 
  mat = matrixToImages(aMat, mask, "aMat_")

## End(Not run)

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.