Simple wrapper for setting non-finite values to zero

# S4 method for antsImage
finite_img(img, replace = 0)

Arguments

img

character path of image or an object of class nifti, or list of images

replace

Value to replace non-finite values to

Value

image object