Learn R Programming

PET (version 0.5.1)

scaleImage: Scales an Image

Description

Scales the minimum of an image to \(0\) and the mean or the maximum to \(1\).

Usage

scaleImage(image, mode = "mean")

Arguments

image

The raw image data.

mode

mode specifies if mean or maximum will be scaled to \(1\). Defaults to mode="mean". Alternative choice is "max".

Value

Returns the scaled data.

Examples

Run this code
# NOT RUN {
(A <- matrix(-9:10,nrow=4))
scaleImage(A)
rm(A)
# }

Run the code above in your browser using DataLab