scaleImage {PET}R Documentation

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.

Author(s)

Joern Schulz, jschulz78@web.de.

Examples

(A <- matrix(-9:10,nrow=4))
scaleImage(A)
rm(A)

[Package PET version 0.5.1 Index]