normalize | R Documentation |
This function normalizes an image matrix so that the minimum value is 0 and the maximum value is 1.
normalize(img)
img |
target image |
Image matrix in which minimum value is 0 and maximum value is 1.
data(twelve)
x <- RGB2gray(twelve, method = "RMY")
x <- normalize(x)
plot(as.raster(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.