Learn R Programming

ANTsR (version 1.0)

extractSlice: extract a slice from an image

Description

extract a slice from an image and return an image of dimensionality, d-1

Usage

extractSlice(image, slice, direction)

Arguments

image

antsImage to crop

slice

which slice, integer

direction

which axis, integer

Value

antsImage of dimension - 1

Examples

Run this code
# NOT RUN {
fi <- makeImage( c(10,10,10), rnorm(1000) )
slice <- extractSlice( fi, 1, 1 )
# }

Run the code above in your browser using DataLab