Learn R Programming

ANTsR (version 1.0)

abpN4: MR image bias correction based on the N4 algorithm.

Description

Truncate outlier intensities and bias correct with the N4 algorithm.

Usage

abpN4(img, intensityTruncation = c(0.025, 0.975, 256), mask = NA,
  usen3 = FALSE)

Arguments

img

image to be bias corrected

intensityTruncation

quantiles for image truncation.

mask

optional antsImage mask

usen3

Use N3 algorithm instead of N4

Value

outputs a bias corrected image. 1 indicates failure.

Examples

Run this code
# NOT RUN {
img <- antsImageRead(getANTsRData("r16"))
img2 <- abpN4( img )
# }

Run the code above in your browser using DataLab