scaleImage: Scales an Image

Description Usage Arguments Value Author(s) Examples

View source: R/eval.r

Description

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

Usage

1
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

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

PET documentation built on May 2, 2019, 2:43 a.m.