View source: R/croppingAndPaddingUtilities.R
| padImageByFactor | R Documentation | 
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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.