normalize {EBImage} | R Documentation |
Linearly scale the intensity values of an image to a specified range.
normalize(x, separate=TRUE, ft=c(0,1))
x |
An |
separate |
If |
ft |
A numeric vector of 2 values, target minimum and maximum intensity values after normalization. |
An Image
object or an array, containing the transformed version
of x
.
Oleg Sklyar, osklyar@ebi.ac.uk, 2006-2007
x = readImage(system.file('images', 'shapes.png', package='EBImage')) x = x[110:512,1:130] y = bwlabel(x) if (interactive()) display(x, title='Original') print(range(y)) y = normalize(y) print(range(y)) if (interactive()) display(y, title='Segmented')