Pad image of size (x, y, z) to (x', y', z')} where \code{(x', y', z') is a divisible by a user-specified factor.

padImageByFactor(image, factor)

Arguments

image

Input ANTs image

factor

padding factor. Can be an integer or vector of size equal to the image dimensionality.

Value

a padded image

Author

Tustison NJ, Avants BB

Examples

library( ANTsR ) image <- antsImageRead( getANTsRData( "r16" ) ) image <- cropImage( image ) paddedImage <- padImageByFactor( image, 4 )