powered by
Scales the minimum of an image to \(0\) and the mean or the maximum to \(1\).
scaleImage(image, mode = "mean")
The raw image data.
mode specifies if mean or maximum will be scaled to \(1\). Defaults to mode="mean". Alternative choice is "max".
mode
mode="mean"
"max"
Returns the scaled data.
# NOT RUN { (A <- matrix(-9:10,nrow=4)) scaleImage(A) rm(A) # }
Run the code above in your browser using DataLab