powered by
the inverse function for cropImage
cropImage
decropImage(croppedImage, fullImage)
cropped antsImage
antsImage to put back into
decroppedImage
# NOT RUN { fi <- antsImageRead( getANTsRData("r16")) mask <- getMask( fi ) cropped <- cropImage( fi, mask, 1 ) cropped <- smoothImage( cropped, 1) decropped <- decropImage( cropped , fi ) # }
Run the code above in your browser using DataLab