abpN4: N4 with previously set parameters based on ants brain...

Description Usage Arguments Value Author(s) Examples

Description

Truncate outlier intensities and bias correct with N4 with or without mask and weight images.

Usage

1
2
abpN4( img = inimg , intensityTruncation=c( 0.025, 0.975, 256 )  ,
   mask = NA , weightimg=NA, usen3 = FALSE )

Arguments

image

image to be bias corrected

intensityTruncation

Params to TruncateImageIntensity in ImageMath

mask

optional antsImage mask

weightimage

optional antsImage weighting

usen3

Use N3 instead of N4

Value

outputs a bias corrected image. 1 – Failure

Author(s)

Tustison N, Avants BB

Examples

1
2
3
4
5
6
## Not run: 
fn<-getANTsRData('r16') 
img<-antsImageRead(fn,2)
img2<-abpN4( img )

## End(Not run)

stnava/itkImageR documentation built on May 30, 2019, 7:21 p.m.