Learn R Programming

ANTsR (version 1.0)

reorientImage: reorient image by its principal axis

Description

align along a specific axis

Usage

reorientImage(img, axis1, axis2 = NA, doreflection = 0, doscale = 0,
  txfn = NA)

Arguments

img

antsImage

axis1

vector of size dim, might need to play w/axis sign

axis2

vector of size dim for 3D

doreflection

boolean

doscale

scalar value, 1 allows automated estimate of scaling

txfn

file name for transformation

Value

reoriented image

Examples

Run this code
# NOT RUN {
fi<-antsImageRead( getANTsRData("r16"))
reofi<-reorientImage(fi,c(1,0))
# }

Run the code above in your browser using DataLab