imageDomainToSpatialMatrix.Rd
Transform a d-dimensional image into a d by p matrix that encodes the spatial coordinates of the image domain.
imageDomainToSpatialMatrix(image, mask)
image | input image |
---|---|
mask | optional input mask |
matrix is output
Avants BB
img = antsImageRead( getANTsRData( 'r16' ) ) spmat = imageDomainToSpatialMatrix( img )