Learn R Programming

ANTsR (version 0.7.2.0)

imageDomainToSpatialMatrix: Image domain to spatial position

Description

Transform a d-dimensional image into a d by p matrix that encodes the spatial coordinates of the image domain.

Usage

imageDomainToSpatialMatrix(image, mask)

Arguments

image

input image

mask

optional input mask

Value

matrix is output

Examples

Run this code
# NOT RUN {
img = antsImageRead( getANTsRData( 'r16' ) )
spmat = imageDomainToSpatialMatrix( img )

# }

Run the code above in your browser using DataLab