padOrCropImageToSize: Pad or crop image to a specified size

View source: R/croppingAndPaddingUtilities.R

padOrCropImageToSizeR Documentation

Pad or crop image to a specified size

Description

Pad or crop image to a specified size

Usage

padOrCropImageToSize(image, size)

Arguments

image

Input ANTs image

size

size of the output image.

Value

a padded/cropped image

Author(s)

Tustison NJ

Examples


library( ANTsR )

image <- antsImageRead( getANTsRData( "r16" ) )
paddedImage <- padOrCropImageToSize( image, c( 333, 333 ) )


ANTsX/ANTsRNet documentation built on April 28, 2024, 12:16 p.m.