Paints in the image with the mean/median from fill_mask

inpaint(img, input_mask, fill_mask, func = c("mean", "median"), ...)

Arguments

img

image of class nifti or character

input_mask

mask to be painted in.

fill_mask

image mask to take the function (e.g. mean/median) of the image

func

Function to apply on the values. do.call will be called on them

...

Arguments to be passed to func.

Value

List of output image (outimg) and statistic filled in (statistic)