the inverse function for cropImage

decropImage(croppedImage, fullImage)

Arguments

croppedImage

cropped antsImage

fullImage

antsImage to put back into

Value

decroppedImage

Author

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)