rankIntensity: rank intensity transformation for an image

View source: R/rankIntensity.R

rankIntensityR Documentation

rank intensity transformation for an image

Description

Rank transform the intensity of an image to reduce the impact of outliers; useful when using correlation-based metrics for registration and possibly for segmentation tasks. best used with a mask.

Usage

rankIntensity(x, mask, getMask = TRUE, method = "max")

Arguments

x

input image

mask

optional mask

getMask

boolean only used if mask is not present

method

optional method passed to ties.method in rank

Value

image is output

Author(s)

Avants BB

Examples


fi <- makeImage(c(10, 10, 10), rnorm(1000))
rfi <- rankIntensity(fi)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.