Learn R Programming

ANTsR (version 0.3.1)

projectImageAlongAxis: Simple projectImageAlongAxis function.

Description

Will turn an N-D image into an N-1-D image by summation (0), max-intensity (1) or min-intensity (2) projection along an orthogonal axis.

Usage

projectImageAlongAxis(imageND, referenceImageNDminus1, projtype = 0,
  axis = NA)

Arguments

imageND

input image

referenceImageNDminus1

down-dimensional image to help define physical #' space

projtype

projection type 0, 1 or 2

axis

should be less than image dimension and greater than or equal to 0

Value

image of n-dimensions-1 is output

Examples

Run this code
# NOT RUN {
img<-makeImage(c(5,5,5,5),rnorm(5^4))
img3d<-makeImage(c(5,5,5),rnorm(5^3))
mask4dproj<-projectImageAlongAxis( img, img3d, axis=3, projtype=0 )
# }

Run the code above in your browser using DataLab