Normalize: Image normalization

Description Usage Arguments Value Author(s) Examples

View source: R/Normalize.R

Description

Normalize image pixel intensities between 0 and 1

Usage

1
2
Normalize(ImObj, inputRange, autoRange = T, step = 5 * 10^-3,
  verbose = F)

Arguments

ImObj

An array, a matrix or an image

inputRange

The targeted min and max pixel intensities

autoRange

A boolean indicating if inputRange should be calculated automatically

step

A numeric value, indicating probs from quantile option for inputRange automated calculation

verbose

logical. Shall normalization range be displayed?

Value

An array, a matrix or an image with values ranged from 0 to 1

Author(s)

Allan Sauvat, allan.sauvat@gustaveroussy.fr

Examples

1
2
3
4
Mat = replicate(100, rnorm(100))
Mat.norm = Normalize(Mat);Mat.autoNorm = Normalize(Mat,autoRange=T)
plot(density(Mat));
plot(density(Mat.norm));points(density(Mat.autoNorm),type='l',col='blue')

Ahlallan/MetaxpR documentation built on March 18, 2020, 6:05 a.m.