extractSlice.Rd
extract a slice from an image and return an image of dimensionality, d-1
extractSlice(image, slice, direction)
antsImage to crop
which slice, integer
which axis, integer
antsImage of dimension - 1
fi <- makeImage( c(10,10,10), rnorm(1000) ) slice <- extractSlice( fi, 1, 1 )
Brian B. Avants, Nicholas J. Tustison