Truncate outlier intensities and bias correct with the N4 algorithm.
abpN4(img, intensityTruncation = c(0.025, 0.975, 256), mask = NA,
usen3 = FALSE)
image to be bias corrected
quantiles for image truncation.
optional antsImage mask
Use N3 algorithm instead of N4
outputs a bias corrected image. 1 indicates failure.
# NOT RUN {
img <- antsImageRead(getANTsRData("r16"))
img2 <- abpN4( img )
# }
Run the code above in your browser using DataLab