Learn R Programming

IFC (version 0.1.1)

cpp_normalize: Matrix Normalization

Description

Normalizes a finite matrix to [0,1]

Arguments

mat

a finite NumericMatrix.

input_range

a finite NumericVector, sets the range of the input intensity values. Default is c(0,4095). values outside this range are clipped.

full_range

if full_range is TRUE, then input_range will be set to 'c(0,4095)' and gamma forced to 1. Default is false.

force_range

if force_range is TRUE, then input_range will be adjusted to mat range in [-4095, +inf] and gamma forced to 1. Default is false. Note that this parameter takes the precedence over 'input_range' and 'full_range'.

gamma

correction. Default is 1, for no correction.