standardize | R Documentation |
Standardizes images in order to compare different images. Mean of standardized image is 0.5, standard deviation is sd.
standardize(img, mask = array(TRUE, dim(img)), log = FALSE, N = 32, sd = 1/6)
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. |
Multi-dimensional array of standardized image.
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.