denoiseImage.Rd
Denoise an image using a spatially adaptive filter originally described in J. V. Manjon, P. Coupe, Luis Marti-Bonmati, D. L. Collins, and M. Robles. Adaptive Non-Local Means Denoising of MR Images With Spatially Varying Noise Levels, Journal of Magnetic Resonance Imaging, 31:192-203, June 2010.
denoiseImage(
img,
mask,
shrinkFactor = 1,
p = 1,
r = 3,
noiseModel = c("Rician", "Gaussian"),
verbose = FALSE
)
scalar image to denoise.
optional to limit the denoise region.
downsampling level performed within the algorithm.
patch radius for local sample. can be a vector.
search radius from which to choose extra local samples. can be a vector.
either Rician or Gaussian.
boolean
antsImage denoised version of image
img <- antsImageRead(getANTsRData("rand")) %>% resampleImage(c(32, 32))
dimg <- denoiseImage(img, img * 0 + 1)
dimg2 <- denoiseImage(img)