View source: R/croppingAndPaddingUtilities.R
cropImageCenter | R Documentation |
Crop the center of an image.
cropImageCenter(image, cropSize)
image |
Input ANTs image |
cropSize |
width, height, depth (if 3-D), and time (if 4-D) of the cropped image. |
a cropped image
Tustison NJ
library( ANTsR )
image <- antsImageRead( getANTsRData( "r16" ) )
croppedImage <- cropImageCenter( image, c( 64, 64 ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.