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)
| image | Input ANTs image |
|---|---|
| factor | padding factor. Can be an integer or vector of size equal to the image dimensionality. |
a padded image
Tustison NJ, Avants BB
library( ANTsR ) image <- antsImageRead( getANTsRData( "r16" ) ) image <- cropImage( image ) paddedImage <- padImageByFactor( image, 4 )