padImageByFactor: Pad an image based on a factor.

View source: R/croppingAndPaddingUtilities.R

padImageByFactorR Documentation

Pad an image based on a factor.

Description

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

Usage

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(s)

Tustison NJ, Avants BB

Examples


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


ANTsX/ANTsRNet documentation built on Nov. 21, 2024, 4:07 a.m.