Learn R Programming

imager (version 0.45.8)

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
cimg.limit.openmp()
renorm(0:10)
renorm(-5:5) #Same as above

Run the code above in your browser using DataLab