cropping method specialized for our data augmenation approach

specialCrop(x, pt, domainer = NULL)

Arguments

x

input antsImage

pt

point in physical space around which we crop

domainer

vector of dimensionality equal to the image indicating the size of cropped region

Value

cropped region

Author

Avants BB

Examples

library( ANTsR ) specialCrop( ri(1), c(60,66), c(32,32) )
#> antsImage #> Pixel Type : float #> Components Per Pixel: 1 #> Dimensions : 32x32 #> Voxel Spacing : 1x1 #> Origin : 44 50 #> Direction : 1 0 0 1 #>