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
Normalize(ImObj, inputRange, autoRange = F, step = 0.005, verbose = T)

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, [email protected]

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 April 20, 2018, 12:11 p.m.