Learn R Programming

ANTsR (version 1.0)

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

proj<-projectImageAlongAxis(  img4d, refimg3d, projtype=0,  axis=3 )

Arguments

img4d

input image

refimg3d

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 {
mask4dproj<-projectImageAlongAxis( mask4d, mask3d, axis=3, projtype=0 )
# }

Run the code above in your browser using DataLab