Learn R Programming

imager (version 0.42.19)

renorm: Renormalise image

Description

Pixel data is usually expressed on a 0...255 scale for displaying. This function performs a linear renormalisation to range min...max

Usage

renorm(x, min = 0, max = 255)

Arguments

x

numeric data

min

min of the range

max

max of the range

Author

Simon Barthelme

Examples

Run this code
renorm(0:10)
renorm(-5:5) #Same as above

Run the code above in your browser using DataLab