imager (version 0.42.7)

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

Examples

Run this code
# NOT RUN {
renorm(0:10)
renorm(-5:5) #Same as above
# }

Run the code above in your browser using DataCamp Workspace