standardize {bioimagetools}R Documentation

Standardize images

Description

Standardizes images in order to compare different images. Mean of standardized image is 0.5, standard deviation is sd.

Usage

standardize(img, mask = array(TRUE, dim(img)), log = FALSE, N = 32, sd = 1/6)

Arguments

img

is a 2d/3d array representing an image.

mask

a mask.

log

Logical. Transform to log scale before standardization?

N

number of classes.

sd

standard deviation.

Value

Multi-dimensional array of standardized image.

Examples

#simuliere Daten zum Testen
test2<-runif(128*128,0,1)
test2<-sort(test2)
test2<-array(test2,c(128,128))
img(test2)
# Standardisiere test2 in 32 Klassen
std<-standardize(test2,N=32,sd=4)

[Package bioimagetools version 1.1.8 Index]