cropImageCenter: Crop the center of an image.

View source: R/croppingAndPaddingUtilities.R

cropImageCenterR Documentation

Crop the center of an image.

Description

Crop the center of an image.

Usage

cropImageCenter(image, cropSize)

Arguments

image

Input ANTs image

cropSize

width, height, depth (if 3-D), and time (if 4-D) of the cropped image.

Value

a cropped image

Author(s)

Tustison NJ

Examples


library( ANTsR )

image <- antsImageRead( getANTsRData( "r16" ) )
croppedImage <- cropImageCenter( image, c( 64, 64 ) )


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