powered by
Transform a d-dimensional image into a d by p matrix that encodes the spatial coordinates of the image domain.
imageDomainToSpatialMatrix(image, mask)
input image
optional input mask
matrix is output
# NOT RUN { img = antsImageRead( getANTsRData( 'r16' ) ) spmat = imageDomainToSpatialMatrix( img ) # }
Run the code above in your browser using DataLab