decropImage: decrop a sub-image back into the full image

View source: R/cropImage.R

decropImageR Documentation

decrop a sub-image back into the full image

Description

the inverse function for cropImage

Usage

decropImage(croppedImage, fullImage)

Arguments

croppedImage

cropped antsImage

fullImage

antsImage to put back into

Value

decroppedImage

Author(s)

Brian B. Avants, Nicholas J. Tustison

Examples


fi <- antsImageRead(getANTsRData("r16"))
mask <- getMask(fi)
cropped <- cropImage(fi, mask, 1)
cropped <- smoothImage(cropped, 1)
decropped <- decropImage(cropped, fi)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.